diff options
author | Torok Edwin <edwintorok@gmail.com> | 2011-10-06 12:39:34 +0000 |
---|---|---|
committer | Torok Edwin <edwintorok@gmail.com> | 2011-10-06 12:39:34 +0000 |
commit | 05dc9d621386c78b42d6fa3e67a44c5c465446fe (patch) | |
tree | 7b39f0a63888c585db9abda2a86a92a05ba2402e /llvm/include/llvm-c/Core.h | |
parent | 1db48c00552fba0387be8784c471aed1b7b50be9 (diff) | |
download | bcm5719-llvm-05dc9d621386c78b42d6fa3e67a44c5c465446fe.tar.gz bcm5719-llvm-05dc9d621386c78b42d6fa3e67a44c5c465446fe.zip |
Don't require C bindings opcode numbers to be kept in sync.
They are not in sync now, for example Bitcast would show up as LLVMCall.
So instead introduce 2 functions that map to and from the opcodes in the C
bindings.
llvm-svn: 141290
Diffstat (limited to 'llvm/include/llvm-c/Core.h')
-rw-r--r-- | llvm/include/llvm-c/Core.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/llvm/include/llvm-c/Core.h b/llvm/include/llvm-c/Core.h index 2bb7323cdee..10e9a80bcb5 100644 --- a/llvm/include/llvm-c/Core.h +++ b/llvm/include/llvm-c/Core.h @@ -179,8 +179,8 @@ typedef enum { LLVMPHI = 44, LLVMCall = 45, LLVMSelect = 46, - /* UserOp1 */ - /* UserOp2 */ + LLVMUserOp1 = 47, + LLVMUserOp2 = 48, LLVMVAArg = 49, LLVMExtractElement = 50, LLVMInsertElement = 51, @@ -195,7 +195,9 @@ typedef enum { /* Exception Handling Operators */ LLVMResume = 58, - LLVMLandingPad = 59 + LLVMLandingPad = 59, + LLVMUnwind = 60 + } LLVMOpcode; |