search for: llvmint64typeincontext

Displaying 1 result from an estimated 1 matches for "llvmint64typeincontext".

Did you mean: llvmint32typeincontext
2012 Sep 27
0
[LLVMdev] Possible bug or misunderstanding of feature LLVMConstIntOfString
Hi All I am a novice LLVM user trying to use LLVMConstIntOfString using the c api to get a integer of arbitrary size from a hexadecimal string. Example code follows: LLVMContextRef context = LLVMContextCreate(); LLVMValueRef value = LLVMConstIntOfString(LLVMInt64TypeInContext(context), "0x0000000f0000ffff", 16); This is working properly as expected. However I have noticed that if the bits are not prefixed with enough zeros to correspond to 32 or 64 bits this gives me: For 0x0fff := 0xffffffff0fff (incorrect) For 0xfff := 0xfffffffffff (incorrect) For 0x00000...