search for: getconstantvalu

Displaying 12 results from an estimated 12 matches for "getconstantvalu".

Did you mean: getconstantvalue
2009 Jul 25
3
[LLVMdev] Bug in ExecutionEngine::getConstantValue() -- Instruction::PtrToInt
I think I might have found a bug in the exection engine's 'constants folding'. Basically APInt's parameters are the wrong way round. Line 577 for lib/ExecutionEngine/ExecutionEngine.cpp :- case Instruction::PtrToInt: { GenericValue GV = getConstantValue(Op0); uint32_t PtrWidth = TD->getPointerSizeInBits(); GV.IntVal = APInt(PtrWidth, uintptr_t(GV.PointerVal)); return GV; } Aaron -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20090725...
2009 Jul 25
0
[LLVMdev] Bug in ExecutionEngine::getConstantValue() -- Instruction::PtrToInt
...might have found a bug in the exection engine's 'constants > folding'. > > Basically APInt's parameters are the wrong way round. > > Line 577 for lib/ExecutionEngine/ExecutionEngine.cpp :- > > case Instruction::PtrToInt: { > GenericValue GV = getConstantValue(Op0); > uint32_t PtrWidth = TD->getPointerSizeInBits(); > GV.IntVal = APInt(PtrWidth, uintptr_t(GV.PointerVal)); > return GV; > } > Aaron That looks to be the right order to me: APInt(unsigned numBits, uint64_t val, bool isSigned=false) John. -------------...
2007 Aug 11
1
[LLVMdev] Spelling correction
http://llvm.org/doxygen/classllvm_1_1ExecutionEngine.html "Constant*" misspelled as "Constnat*" at: GenericValue ExecutionEngine::getConstantValue ( const Constant * C ) [protected] Sandro
2020 Jan 03
3
Interpreter crash due to an "Unknown constant pointer type!"
...c-2.27/stdlib/abort.c:81:0 #7 0x0000564bad5ce768 bindingsErrorHandler(void*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, bool) /home/al/llvm-9.0.0.src/lib/Support/ErrorHandling.cpp:218:0 #8 0x0000564bacfc2e5a llvm::ExecutionEngine::getConstantValue(llvm::Constant const*) /home/al/llvm-9.0.0.src/lib/ExecutionEngine/ExecutionEngine.cpp:1013:0 #9 0x0000564bacfeb873 llvm::Interpreter::getOperandValue(llvm::Value*, llvm::ExecutionContext&) /home/al/llvm-9.0.0.src/lib/ExecutionEngine/Interpreter/Execution.cpp:2108:0 #10 0x0000564bacfe548a llv...
2020 Feb 10
2
Interpreter crash due to an "Unknown constant pointer type!"
...e768 bindingsErrorHandler(void*, >> std::__cxx11::basic_string<char, std::char_traits<char>, >> std::allocator<char> > const&, bool) >> /home/al/llvm-9.0.0.src/lib/Support/ErrorHandling.cpp:218:0 >> #8 0x0000564bacfc2e5a >> llvm::ExecutionEngine::getConstantValue(llvm::Constant const*) >> /home/al/llvm-9.0.0.src/lib/ExecutionEngine/ExecutionEngine.cpp:1013:0 >> #9 0x0000564bacfeb873 llvm::Interpreter::getOperandValue(llvm::Value*, >> llvm::ExecutionContext&) >> /home/al/llvm-9.0.0.src/lib/ExecutionEngine/Interpreter/Execution.c...
2020 Feb 01
0
Interpreter crash due to an "Unknown constant pointer type!"
...ndler(void*, >>> std::__cxx11::basic_string<char, std::char_traits<char>, >>> std::allocator<char> > const&, bool) >>> /home/al/llvm-9.0.0.src/lib/Support/ErrorHandling.cpp:218:0 >>> #8 0x0000564bacfc2e5a >>> llvm::ExecutionEngine::getConstantValue(llvm::Constant const*) >>> /home/al/llvm-9.0.0.src/lib/ExecutionEngine/ExecutionEngine.cpp:1013:0 >>> #9 0x0000564bacfeb873 llvm::Interpreter::getOperandValue(llvm::Value*, >>> llvm::ExecutionContext&) >>> /home/al/llvm-9.0.0.src/lib/ExecutionEngine/Interpr...
2007 Jul 03
0
[LLVMdev] Solaris 9 compilation
...escing.cpp:1095: warning: unused variable 'powf' Should we #define powf as pow? Better possibly is to differentiate by a configure test. I can come up with a patch. 5) /home/ggreif/llvm/lib/ExecutionEngine/ExecutionEngine.cpp: In member function `llvm::GenericValue llvm::ExecutionEngine::getConstantValue(const llvm::Constant*)': /home/ggreif/llvm/lib/ExecutionEngine/ExecutionEngine.cpp:497: error: `::fmodf' has not been declared Should we #define fmodf as fmod? Better possibly is to differentiate by a configure test. I can come up with a patch. 6) /home/ggreif/llvm/lib/ExecutionEngine/I...
2019 Dec 24
2
Interpreter crash due to an "Unknown constant pointer type!"
Hi David, In pretty sure that the crash is due to the instruction I have shared in my first email. In order to run pngpixel you just need libpng and zlib.. honest I thought that the .bc had Al the necessary. I'm happy to help you to reproduce it. As a curiosity, why do you think you cannot reproduce it? Unfortunately I won't be able to modify the interpreter soon.. anyway, I'll try to
2014 Sep 02
2
[LLVMdev] Problem linking and JITing code through C++-API
...cf in llvm::JIT::runJITOnFunctionUnlocked(llvm::Function*, llvm::MutexGuard const&) () #9 0x00000000006fead2 in llvm::JIT::getPointerToFunction(llvm::Function*) () #10 0x00000000006fd63f in llvm::JIT::getPointerToBasicBlock(llvm::BasicBlock*) () #11 0x00000000009e14ee in llvm::ExecutionEngine::getConstantValue(llvm::Constant const*) () #12 0x00000000009e265f in llvm::ExecutionEngine::InitializeMemory(llvm::Constant const*, void*) () #13 0x00000000009e27e3 in llvm::ExecutionEngine::InitializeMemory(llvm::Constant const*, void*) () #14 0x00000000009e3628 in llvm::ExecutionEngine::EmitGlobalVariable(llvm::...
2014 Sep 08
2
[LLVMdev] Problem linking and JITing code through C++-API
...locked(llvm::Function*, llvm::MutexGuard > const&) () > #9 0x00000000006fead2 in llvm::JIT::getPointerToFunction(llvm::Function*) > () > #10 0x00000000006fd63f in > llvm::JIT::getPointerToBasicBlock(llvm::BasicBlock*) () > #11 0x00000000009e14ee in > llvm::ExecutionEngine::getConstantValue(llvm::Constant const*) () > #12 0x00000000009e265f in > llvm::ExecutionEngine::InitializeMemory(llvm::Constant const*, void*) () > #13 0x00000000009e27e3 in > llvm::ExecutionEngine::InitializeMemory(llvm::Constant const*, void*) () > #14 0x00000000009e3628 in > llvm::ExecutionEng...
2006 May 09
1
[LLVMdev] Memory leaks in LLVM
...gateZero::get(llvm::Type const*) ( Constants.cpp:866) ==10132== by 0x84914EC: llvm::Constant::getNullValue(llvm::Type const*) ( Constants.cpp:118) ==10132== by 0x83D9BC3: llvm::BytecodeReader::getValue(unsigned, unsigned, bool) (Reader.cpp:441) ==10132== by 0x83DAA61: llvm::BytecodeReader::getConstantValue(unsigned, unsigned) (Reader.cpp:515) ==10132== by 0x83E6ACD: llvm::BytecodeReader::ParseModule() (Reader.cpp :2385) ==10132== by 0x83E74EE: llvm::BytecodeReader::ParseBytecode(unsigned char const*, unsigned, std::string const&) ( Reader.cpp:2469) ==10132== by 0x83E7F4B: (anonymous nam...
2014 Sep 01
2
[LLVMdev] Problem linking and JITing code through C++-API
I have a frontend that generates some LLVM bitcode that needs to be linked with other bitcode (its runtime library), which I generate from C++ source using Clang. If I write the output of my program to disk, link it with llvm-link, and then run it with lli, everything works perfectly. But if I try to perform the linking and running steps in my main program, I get this error during