[llvm-dev] LLVM CallInst IR to Binary Call Instruction Address Mapping
via llvm-dev
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.
--paulr
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
Hi
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://link.getmailspring.com/link/1548442944.local-d061b65f-6877-v1.5.5-b7939d38@getmailspring.com/0?redirect=mailto%3Amrk15e%40my.fsu.edu&recipient=bGx2bS1kZXZAbGlzdHMubGx2bS5vcmc%3D>
P: 8509993635<tel:8509993635>
W: http://ww2.cs.fsu.edu/~khandake/<https://link.getmailspring.com/link/1548442944.local-d061b65f-6877-v1.5.5-b7939d38@getmailspring.com/1?redirect=http%3A%2F%2Fww2.cs.fsu.edu%2F~khandake%2F&recipient=bGx2bS1kZXZAbGlzdHMubGx2bS5vcmc%3D>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20190128/56556a98/attachment.html>
More information about the llvm-dev
mailing list