Displaying 2 results from an estimated 2 matches for "xgettyp".
Did you mean:
xgettype
2011 Mar 14
2
[LLVMdev] How to load a data from the address of unsiged long type
...three kind of code:
1. Code:
Value* addr = CONST(0xc0008000);
Value* data = new LoadInst(addr, "", false, bb);
Error:
Segmentation fault
2. Code( use BotVastInst to vern):
Value* addr = CONST(0xc0008000);
a = new BitCastInst(a, PointerType::get(XgetType(Int32Ty), 0), "", bb);
Value* data = new LoadInst(addr, "", false, bb);
Error:
Bitcast requires types of same width
3. Code:
Type const *intptr_type =
cpu->dyncom_engine->exec_engine->getTargetData()->getIntPtrType(_CTX());
Value*...
2011 Mar 14
0
[LLVMdev] How to load a data from the address of unsiged long type
...Value* addr = CONST(0xc0008000);
> Value* data = new LoadInst(addr, "", false, bb);
> Error:
> Segmentation fault
> 2. Code( use BotVastInst to vern):
> Value* addr = CONST(0xc0008000);
> a = new BitCastInst(a, PointerType::get(XgetType(Int32Ty), 0), "", bb);
> Value* data = new LoadInst(addr, "", false, bb);
> Error:
> Bitcast requires types of same width
> 3. Code:
> Type const *intptr_type =
> cpu->dyncom_engine->exec_engine->getTargetData()->get...