[llvm-dev] Unique ID for Instruction

Kai Wang via llvm-dev llvm-dev at lists.llvm.org
Tue Jan 26 09:23:12 PST 2016


Hi all,

I'm wondering whether we can easily retrieve an LLVM instruction ID that
uniquely identifies the instruction.  In my case, I want to generate a
graph based on some particular instructions while nodes represent variables
and edges represent instructions. Basically I want to encode some kind of
instruction location info into nodes or edges so that I can also map nodes
and edges in the graph back to instructions.

I know instruction address is unique, but it's changing for every run. I
can not map nodes and edges in the graph back to instructions.

Any suggestions?
Thank you.

-- 
Regards,
Kai
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20160126/e8246dc3/attachment.html>


More information about the llvm-dev mailing list