diff options
author | Owen Anderson <resistor@mac.com> | 2007-11-12 07:39:39 +0000 |
---|---|---|
committer | Owen Anderson <resistor@mac.com> | 2007-11-12 07:39:39 +0000 |
commit | 20ab29068d8a8ec31f26f022634f1e0bc4b1da56 (patch) | |
tree | 075ab2b15d357226cd3cefa2ca5c9540bdeb3dc8 /utils | |
parent | f2fbca68f868122d6df0bfc9952b4e4c3dfb60b7 (diff) | |
download | external_llvm-20ab29068d8a8ec31f26f022634f1e0bc4b1da56.zip external_llvm-20ab29068d8a8ec31f26f022634f1e0bc4b1da56.tar.gz external_llvm-20ab29068d8a8ec31f26f022634f1e0bc4b1da56.tar.bz2 |
Add a flag for indirect branch instructions.
Target maintainers: please check that the instructions for your target are correctly marked.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44012 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils')
-rw-r--r-- | utils/TableGen/CodeGenInstruction.h | 1 | ||||
-rw-r--r-- | utils/TableGen/CodeGenTarget.cpp | 1 | ||||
-rw-r--r-- | utils/TableGen/InstrInfoEmitter.cpp | 1 |
3 files changed, 3 insertions, 0 deletions
diff --git a/utils/TableGen/CodeGenInstruction.h b/utils/TableGen/CodeGenInstruction.h index 6abe972..245b38e 100644 --- a/utils/TableGen/CodeGenInstruction.h +++ b/utils/TableGen/CodeGenInstruction.h @@ -87,6 +87,7 @@ namespace llvm { // Various boolean values we track for the instruction. bool isReturn; bool isBranch; + bool isIndirectBranch; bool isBarrier; bool isCall; bool isLoad; diff --git a/utils/TableGen/CodeGenTarget.cpp b/utils/TableGen/CodeGenTarget.cpp index ea96cf4..4de05b2 100644 --- a/utils/TableGen/CodeGenTarget.cpp +++ b/utils/TableGen/CodeGenTarget.cpp @@ -379,6 +379,7 @@ CodeGenInstruction::CodeGenInstruction(Record *R, const std::string &AsmStr) isReturn = R->getValueAsBit("isReturn"); isBranch = R->getValueAsBit("isBranch"); + isIndirectBranch = R->getValueAsBit("isIndirectBranch"); isBarrier = R->getValueAsBit("isBarrier"); isCall = R->getValueAsBit("isCall"); isLoad = R->getValueAsBit("isLoad"); diff --git a/utils/TableGen/InstrInfoEmitter.cpp b/utils/TableGen/InstrInfoEmitter.cpp index ca8d30f..d371934 100644 --- a/utils/TableGen/InstrInfoEmitter.cpp +++ b/utils/TableGen/InstrInfoEmitter.cpp @@ -237,6 +237,7 @@ void InstrInfoEmitter::emitRecord(const CodeGenInstruction &Inst, unsigned Num, // Emit all of the target indepedent flags... if (Inst.isReturn) OS << "|M_RET_FLAG"; if (Inst.isBranch) OS << "|M_BRANCH_FLAG"; + if (Inst.isIndirectBranch) OS << "|M_INDIRECT_FLAG"; if (Inst.isBarrier) OS << "|M_BARRIER_FLAG"; if (Inst.hasDelaySlot) OS << "|M_DELAY_SLOT_FLAG"; if (Inst.isCall) OS << "|M_CALL_FLAG"; |