[LLVMdev] How to correlate LLVA with native ISA
Keun Soo Yim
yim6 at illinois.edu
Mon Dec 8 00:35:43 CST 2008
How to correlate the LLVM IR-leve instructions and memory values
with the machine instructions and memory locations?
For example, if CMP instruction in machine ISA is selected for the ICMP
instruction in LLVA,
with the Instruction datastructure for ICMP, is it possible to get the
memory address of CMP instruction? Assume that the code segment base address
Similarly, by implementing an LLVM IR-level pass, is it feasible to get
the runtime memory address
of a LLVM IR-level variable in global area? Assume the data segment base
address is given.
In the LLVM library, there are already some classes starting with Machine
but I was not able to find
any existing methods that would give the above information.
Thanks in advance.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the LLVMdev