search for: load_inst

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

Did you mean: load_idt
2011 Feb 17
2
[LLVMdev] Getting load/store byte size
..., say that I'm reading a local variable 'a': %1 = load i32* %a, align 4 I need to know the address of the variable 'a' and the size. Of course, memory loads/stores could be from general GEP or global variables. Getting the address was easily doable by using "PtrToIntInst(load_inst->getPointerOperand(), ...)". However, getting load/store size wasn't that straight forward. In this example, it should be four bytes. I tried to get the Type* from the getPointerOperand() and tried to retrieve the size of the type, but failed. Question: [1] How can I retrieve the read/...