aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-01-26 23:27:02 +0000
committerChris Lattner <sabre@nondot.org>2006-01-26 23:27:02 +0000
commit4ed88eb8229848cd6add06a1ec90e497e382306f (patch)
tree56025ed4bc30ca4b4c7610853a76e5751fc43101
parentfabcb7abc57253c0e8ba1de1952a6b332ea9cd7b (diff)
Add a common INLINEASM opcode
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25667 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/llvm/Target/TargetInstrInfo.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/include/llvm/Target/TargetInstrInfo.h b/include/llvm/Target/TargetInstrInfo.h
index 8659ef9e39..b8f925eab2 100644
--- a/include/llvm/Target/TargetInstrInfo.h
+++ b/include/llvm/Target/TargetInstrInfo.h
@@ -125,8 +125,11 @@ public:
TargetInstrInfo(const TargetInstrDescriptor *desc, unsigned NumOpcodes);
virtual ~TargetInstrInfo();
- // Invariant: All instruction sets use opcode #0 as the PHI instruction
- enum { PHI = 0 };
+ // Invariant opcodes: All instruction sets have these as their low opcodes.
+ enum {
+ PHI = 0,
+ INLINEASM = 1
+ };
unsigned getNumOpcodes() const { return NumOpcodes; }