Renumber Instruction enums in llvm-c.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@96264 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Bill Wendling 2010-02-15 20:50:51 +00:00
parent 37914c8e83
commit cb0b7be886

View File

@ -123,59 +123,71 @@ typedef enum {
} LLVMAttribute; } LLVMAttribute;
typedef enum { typedef enum {
// Terminator Instructions
LLVMRet = 1, LLVMRet = 1,
LLVMBr = 2, LLVMBr = 2,
LLVMSwitch = 3, LLVMSwitch = 3,
LLVMInvoke = 4, LLVMIndirectBr = 4,
LLVMUnwind = 5, LLVMInvoke = 5,
LLVMUnreachable = 6, LLVMUnwind = 6,
LLVMAdd = 7, LLVMUnreachable = 7,
LLVMFAdd = 8,
LLVMSub = 9, // Standard Binary Operators
LLVMFSub = 10, LLVMAdd = 8,
LLVMMul = 11, LLVMFAdd = 9,
LLVMFMul = 12, LLVMSub = 10,
LLVMUDiv = 13, LLVMFSub = 11,
LLVMSDiv = 14, LLVMMul = 12,
LLVMFDiv = 15, LLVMFMul = 13,
LLVMURem = 16, LLVMUDiv = 14,
LLVMSRem = 17, LLVMSDiv = 15,
LLVMFRem = 18, LLVMFDiv = 16,
LLVMShl = 19, LLVMURem = 17,
LLVMLShr = 20, LLVMSRem = 18,
LLVMAShr = 21, LLVMFRem = 19,
LLVMAnd = 22,
LLVMOr = 23, // Logical Operators
LLVMXor = 24, LLVMShl = 20,
LLVMMalloc = 25, LLVMLShr = 21,
LLVMFree = 26, LLVMAShr = 22,
LLVMAlloca = 27, LLVMAnd = 23,
LLVMLoad = 28, LLVMOr = 24,
LLVMStore = 29, LLVMXor = 25,
LLVMGetElementPtr = 30,
LLVMTrunk = 31, // Memory Operators
LLVMZExt = 32, LLVMAlloca = 26,
LLVMSExt = 33, LLVMLoad = 27,
LLVMFPToUI = 34, LLVMStore = 28,
LLVMFPToSI = 35, LLVMGetElementPtr = 29,
LLVMUIToFP = 36,
LLVMSIToFP = 37, // Cast Operators
LLVMFPTrunc = 38, LLVMTrunk = 30,
LLVMFPExt = 39, LLVMZExt = 31,
LLVMPtrToInt = 40, LLVMSExt = 32,
LLVMIntToPtr = 41, LLVMFPToUI = 33,
LLVMBitCast = 42, LLVMFPToSI = 34,
LLVMICmp = 43, LLVMUIToFP = 35,
LLVMFCmp = 44, LLVMSIToFP = 36,
LLVMPHI = 45, LLVMFPTrunc = 37,
LLVMCall = 46, LLVMFPExt = 38,
LLVMSelect = 47, LLVMPtrToInt = 39,
LLVMVAArg = 50, LLVMIntToPtr = 40,
LLVMExtractElement = 51, LLVMBitCast = 41,
LLVMInsertElement = 52,
LLVMShuffleVector = 53, // Other Operators
LLVMExtractValue = 54, LLVMICmp = 42,
LLVMInsertValue = 55 LLVMFCmp = 43,
LLVMPHI = 44,
LLVMCall = 45,
LLVMSelect = 46,
// UserOp1
// UserOp2
LLVMVAArg = 49,
LLVMExtractElement = 50,
LLVMInsertElement = 51,
LLVMShuffleVector = 52,
LLVMExtractValue = 53,
LLVMInsertValue = 54
} LLVMOpcode; } LLVMOpcode;
typedef enum { typedef enum {