[llvm-dev] LLVM CallInst IR to Binary Call Instruction Address Mapping
llvm-dev at lists.llvm.org
Mon Jan 28 06:40:22 PST 2019
I have seen this kind of question before, and I believe there isn't any existing way to get that result. This is because the LLVM IR is transformed to Selection DAG, which is transformed to Machine IR, which is then encoded to the target instruction set and written to the object file. Tracking a particular CallInst through all that would require a fair amount of additional bookkeeping information that LLVM does not currently have.
From: llvm-dev [mailto:llvm-dev-bounces at lists.llvm.org] On Behalf Of Mustakimur Rahman Khandaker (Mustakim) via llvm-dev
Sent: Friday, January 25, 2019 2:41 PM
To: llvm-dev at lists.llvm.org
Subject: [llvm-dev] LLVM CallInst IR to Binary Call Instruction Address Mapping
Good day. I have developed a LLVM IR analysis process (input .bc file) which returns me a set of llvm::CallInst. Now, I am willing to convert the llvm::CallInst to its corresponding binary instruction address when the .bc file will converted to binary (I use llc for this purpose). Any suggestion how could I achieve this mapping with perfection (in presence of optimization)?
Mustakimur R. Khandaker
Sent from Mailspring, the best free email app for work
E: mrk15e at my.fsu.edu<https://firstname.lastname@example.org/0?redirect=mailto%3Amrk15e%40my.fsu.edu&recipient=bGx2bS1kZXZAbGlzdHMubGx2bS5vcmc%3D>
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the llvm-dev