[LLVMdev] Getting load/store byte size

Duncan Sands baldrick at free.fr
Thu Feb 17 10:31:20 PST 2011


Hi nullnull,

> I'm instrumenting memory loads and stores in a LLVM module pass. In this work, I
> need to do
> (1) Getting memory address of the operand, (Looks I've done correctly)
> (2) Getting memory read/write size, (Question)

use getTypeStoreSize defined in TargetData.

Ciao, Duncan.



More information about the llvm-dev mailing list