[LLVMdev] How to correlate LLVA with native ISA

Keun Soo Yim
2008-12-08T06:35:43Z

Hi,

 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
is given.

 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.

 Best,
 Keun Soo
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://lists.llvm.org/pipermail/llvm-dev/attachments/20081208/e08b8846/attachment.html>