<div> </div>
<div> Hi,</div>
<div> </div>
<div> How to correlate the LLVM IR-leve instructions and memory values </div>
<div> with the machine instructions and memory locations?</div>
<div> </div>
<div> For example, if CMP instruction in machine ISA is selected for the ICMP instruction in LLVA,</div>
<div> 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.</div>
<div> </div>
<div> Similarly, by implementing an LLVM IR-level pass, is it feasible to get the runtime memory address </div>
<div> of a LLVM IR-level variable in global area? Assume the data segment base address is given.</div>
<div> </div>
<div> In the LLVM library, there are already some classes starting with Machine but I was not able to find</div>
<div> any existing methods that would give the above information.</div>
<div> </div>
<div> Thanks in advance.</div>
<div> </div>
<div> Best,</div>
<div> Keun Soo </div>
<div> </div>
<div> </div>