diff options
author | Gordon Henriksen <gordonhenriksen@mac.com> | 2007-10-06 15:11:06 +0000 |
---|---|---|
committer | Gordon Henriksen <gordonhenriksen@mac.com> | 2007-10-06 15:11:06 +0000 |
commit | dcafd87e85c76f066393a8f5a87da871a9c00187 (patch) | |
tree | 35133c2bda61e4ee882053c7f4598872957ac4da /include | |
parent | 07067c0e1150f764978d0bcac432083df8dc7587 (diff) | |
download | external_llvm-dcafd87e85c76f066393a8f5a87da871a9c00187.zip external_llvm-dcafd87e85c76f066393a8f5a87da871a9c00187.tar.gz external_llvm-dcafd87e85c76f066393a8f5a87da871a9c00187.tar.bz2 |
Adopting a uniform naming convention for constant constructors in bindings.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@42697 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm-c/Core.h | 25 |
1 files changed, 12 insertions, 13 deletions
diff --git a/include/llvm-c/Core.h b/include/llvm-c/Core.h index 50f0727..f197d25 100644 --- a/include/llvm-c/Core.h +++ b/include/llvm-c/Core.h @@ -228,27 +228,26 @@ void LLVMSetValueName(LLVMValueRef Val, const char *Name); void LLVMDumpValue(LLVMValueRef Val); /* Operations on constants of any type */ -LLVMValueRef LLVMGetNull(LLVMTypeRef Ty); /* all zeroes */ -LLVMValueRef LLVMGetAllOnes(LLVMTypeRef Ty); /* only for int/vector */ +LLVMValueRef LLVMConstNull(LLVMTypeRef Ty); /* all zeroes */ +LLVMValueRef LLVMConstAllOnes(LLVMTypeRef Ty); /* only for int/vector */ LLVMValueRef LLVMGetUndef(LLVMTypeRef Ty); int LLVMIsConstant(LLVMValueRef Val); int LLVMIsNull(LLVMValueRef Val); int LLVMIsUndef(LLVMValueRef Val); /* Operations on scalar constants */ -LLVMValueRef LLVMGetIntConstant(LLVMTypeRef IntTy, unsigned long long N, - int SignExtend); -LLVMValueRef LLVMGetRealConstant(LLVMTypeRef RealTy, double N); +LLVMValueRef LLVMConstInt(LLVMTypeRef IntTy, unsigned long long N, + int SignExtend); +LLVMValueRef LLVMConstReal(LLVMTypeRef RealTy, double N); /* Operations on composite constants */ -LLVMValueRef LLVMGetStringConstant(const char *Str, unsigned Length, - int DontNullTerminate); -LLVMValueRef LLVMGetArrayConstant(LLVMTypeRef ArrayTy, - LLVMValueRef *ConstantVals, unsigned Length); -LLVMValueRef LLVMGetStructConstant(LLVMValueRef *ConstantVals, unsigned Count, - int packed); -LLVMValueRef LLVMGetVectorConstant(LLVMValueRef *ScalarConstantVals, - unsigned Size); +LLVMValueRef LLVMConstString(const char *Str, unsigned Length, + int DontNullTerminate); +LLVMValueRef LLVMConstArray(LLVMTypeRef ArrayTy, + LLVMValueRef *ConstantVals, unsigned Length); +LLVMValueRef LLVMConstStruct(LLVMValueRef *ConstantVals, unsigned Count, + int packed); +LLVMValueRef LLVMConstVector(LLVMValueRef *ScalarConstantVals, unsigned Size); /* Constant expressions */ LLVMValueRef LLVMSizeOf(LLVMTypeRef Ty); |