search for: inttoptrinstr

Displaying 2 results from an estimated 2 matches for "inttoptrinstr".

Did you mean: inttoptrinst
2011 Mar 26
2
[LLVMdev] How to read memory data througn adress of unsigned long
...stantInt::get(getIntegerType(64), v) #################### Then I try to use LoadInstr to get a load instruction of ir as the following: ############################ Value* data = new LoadInst(addr, "", false, bb); encounter segmentation fault. ######################## I also try to use IntToPtrInstr to do some transform as the following: ################################ Type const *intptr_type = cpu->dyncom_engine->exec_engine->getTargetData()->getIntPtrType(_CTX()); Value* ptr = new IntToPtrInst(v, intptr_type, "", bb); Value* data = new LoadInst(ptr,...
2011 Mar 26
0
[LLVMdev] How to read memory data througn adress of unsigned long
...; > encounter segmentation fault. > ######################## > Perhaps you should use a debug build of LLVM so you get an assert message instead of a segfault. Here you're trying to load from an integer without first casting it to a pointer, which you do next. > I also try to use IntToPtrInstr to do some transform as the following: > ################################ >      Type const *intptr_type = > cpu->dyncom_engine->exec_engine->getTargetData()->getIntPtrType(_CTX()); >       Value* ptr = new IntToPtrInst(v, intptr_type, "", bb); >       Value* da...