diff options
| author | Chris Lattner <sabre@nondot.org> | 2005-08-26 20:40:46 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2005-08-26 20:40:46 +0000 |
| commit | 3d9fbefbf790a4d5a45d2bd8a403838965b36845 (patch) | |
| tree | a2f9a9d7a287b26cf2c1cbc2908dbfbb4c5f0eae /llvm | |
| parent | fada82fbb5673a7f3e8116878303c4639f89acab (diff) | |
| download | bcm5719-llvm-3d9fbefbf790a4d5a45d2bd8a403838965b36845.tar.gz bcm5719-llvm-3d9fbefbf790a4d5a45d2bd8a403838965b36845.zip | |
Expose a new flag to TargetInstrInfo
llvm-svn: 23094
Diffstat (limited to 'llvm')
| -rw-r--r-- | llvm/utils/TableGen/CodeGenInstruction.h | 1 | ||||
| -rw-r--r-- | llvm/utils/TableGen/CodeGenTarget.cpp | 1 | ||||
| -rw-r--r-- | llvm/utils/TableGen/InstrInfoEmitter.cpp | 2 |
3 files changed, 4 insertions, 0 deletions
diff --git a/llvm/utils/TableGen/CodeGenInstruction.h b/llvm/utils/TableGen/CodeGenInstruction.h index b140d002110..669280c1bbc 100644 --- a/llvm/utils/TableGen/CodeGenInstruction.h +++ b/llvm/utils/TableGen/CodeGenInstruction.h @@ -81,6 +81,7 @@ namespace llvm { bool isCommutable; bool isTerminator; bool hasDelaySlot; + bool usesCustomDAGSChedInserter; bool hasVariableNumberOfOperands; CodeGenInstruction(Record *R, const std::string &AsmStr); diff --git a/llvm/utils/TableGen/CodeGenTarget.cpp b/llvm/utils/TableGen/CodeGenTarget.cpp index 8e7cbdc9093..282a7ac5304 100644 --- a/llvm/utils/TableGen/CodeGenTarget.cpp +++ b/llvm/utils/TableGen/CodeGenTarget.cpp @@ -250,6 +250,7 @@ CodeGenInstruction::CodeGenInstruction(Record *R, const std::string &AsmStr) isCommutable = R->getValueAsBit("isCommutable"); isTerminator = R->getValueAsBit("isTerminator"); hasDelaySlot = R->getValueAsBit("hasDelaySlot"); + usesCustomDAGSChedInserter = R->getValueAsBit("usesCustomDAGSChedInserter"); hasVariableNumberOfOperands = false; try { diff --git a/llvm/utils/TableGen/InstrInfoEmitter.cpp b/llvm/utils/TableGen/InstrInfoEmitter.cpp index 57f776f4ebe..718491e2b54 100644 --- a/llvm/utils/TableGen/InstrInfoEmitter.cpp +++ b/llvm/utils/TableGen/InstrInfoEmitter.cpp @@ -197,6 +197,8 @@ void InstrInfoEmitter::emitRecord(const CodeGenInstruction &Inst, unsigned Num, if (Inst.isConvertibleToThreeAddress) OS << "|M_CONVERTIBLE_TO_3_ADDR"; if (Inst.isCommutable) OS << "|M_COMMUTABLE"; if (Inst.isTerminator) OS << "|M_TERMINATOR_FLAG"; + if (Inst.usesCustomDAGSChedInserter) + OS << "|M_USES_CUSTOM_DAG_SCHED_INSERTION"; OS << ", 0"; // Emit all of the target-specific flags... |

