From abcd715fdfd786e59f68579f7a68007d46d5218b Mon Sep 17 00:00:00 2001 From: Eli Friedman Date: Wed, 27 Jul 2011 18:59:19 +0000 Subject: [PATCH] The numbering of LLVMOpcode is supposed to be stable; revert my earlier change, and append Fence onto the end. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@136245 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm-c/Core.h | 50 ++++++++++++++++++++++--------------------- 1 file changed, 26 insertions(+), 24 deletions(-) diff --git a/include/llvm-c/Core.h b/include/llvm-c/Core.h index 4288a3d0acd..c9522a6666e 100644 --- a/include/llvm-c/Core.h +++ b/include/llvm-c/Core.h @@ -155,36 +155,38 @@ typedef enum { LLVMLoad = 27, LLVMStore = 28, LLVMGetElementPtr = 29, - LLVMFence = 30, /* Cast Operators */ - LLVMTrunc = 33, - LLVMZExt = 34, - LLVMSExt = 35, - LLVMFPToUI = 36, - LLVMFPToSI = 37, - LLVMUIToFP = 38, - LLVMSIToFP = 39, - LLVMFPTrunc = 40, - LLVMFPExt = 41, - LLVMPtrToInt = 42, - LLVMIntToPtr = 43, - LLVMBitCast = 44, + LLVMTrunc = 30, + LLVMZExt = 31, + LLVMSExt = 32, + LLVMFPToUI = 33, + LLVMFPToSI = 34, + LLVMUIToFP = 35, + LLVMSIToFP = 36, + LLVMFPTrunc = 37, + LLVMFPExt = 38, + LLVMPtrToInt = 39, + LLVMIntToPtr = 40, + LLVMBitCast = 41, /* Other Operators */ - LLVMICmp = 45, - LLVMFCmp = 46, - LLVMPHI = 47, - LLVMCall = 48, - LLVMSelect = 49, + LLVMICmp = 42, + LLVMFCmp = 43, + LLVMPHI = 44, + LLVMCall = 45, + LLVMSelect = 46, /* UserOp1 */ /* UserOp2 */ - LLVMVAArg = 52, - LLVMExtractElement = 53, - LLVMInsertElement = 54, - LLVMShuffleVector = 55, - LLVMExtractValue = 56, - LLVMInsertValue = 57 + LLVMVAArg = 49, + LLVMExtractElement = 50, + LLVMInsertElement = 51, + LLVMShuffleVector = 52, + LLVMExtractValue = 53, + LLVMInsertValue = 54, + + /* Atomic operators */ + LLVMFence = 55 } LLVMOpcode; typedef enum {