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.