From b234392bc54f621505d91fe3e6797cfe21d3dea1 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Thu, 26 Jan 2006 23:27:02 +0000 Subject: [PATCH] Add a common INLINEASM opcode llvm-svn: 25667 --- include/llvm/Target/TargetInstrInfo.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/include/llvm/Target/TargetInstrInfo.h b/include/llvm/Target/TargetInstrInfo.h index 8659ef9e39c..b8f925eab21 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; }