[llvm-dev] Method to map LLVM IR var name to pc address?

Kenneth Adam Miller via llvm-dev llvm-dev at lists.llvm.org
Tue Jun 11 13:55:31 PDT 2019


I forgot to mention that I have access to the LLVM IR, and that's what I'm
feeding into the compiler to have different passes run on. I mean function
local variable names at the LLVM IR level.

On Mon, Jun 10, 2019 at 2:27 PM Kenneth Adam Miller <
kennethadammiller at gmail.com> wrote:

> Hello,
>
> I have a problem where an two existing LLVM analyses, one at the IR level,
> with variable names, and another at the machine code level. I need to map
> the IR information down to the resulting binary. I don't want to try and
> write a custom algorithm to fit the results of the analysis to the machine
> code because across variable renaming and machine code specifics, that
> introduces too much room for error and unnecessary additional difficulty. I
> do understand that you can specify interaction between passes and I do not
> want that for this reason.
>
> Instead, I would like to be able to know where particular variable is
> defined at in the final binary in order to map the IR to the result. Does
> anybody know of a way to do this?
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20190611/b6e7763c/attachment-0001.html>


More information about the llvm-dev mailing list