Evgeny Astigeevich via llvm-dev
llvm-dev at lists.llvm.org
Thu Jul 20 06:32:43 PDT 2017
What do you mean 'identifiable'? You have Module, Function, BasicBlock etc. You can access Values and Users. They form a data-flow graph. You can store pointers to Values and Users if you wish. If you want a name for any Value there is ValueSymbolTable (http://www.llvm.org/docs/ProgrammersManual.html#advanced-topics) which provides a symbol table that the Function and Module classes use for naming value definitions. You should take into account that some Values might not have names and passes can change names of Values.
From: llvm-dev <llvm-dev-bounces at lists.llvm.org> on behalf of Anastasiya Ruzhanskaya via llvm-dev <llvm-dev at lists.llvm.org>
Sent: Thursday, July 20, 2017 2:21:44 PM
To: LLVM Developers Mailing List
Subject: [llvm-dev] Value
I am trying to write my own pass for some purposes, and found out that there is no way to work with such variables as %1 and so on. How they are identifiable? Only by the Value object, without any possibility for visual representation as for example %a, %b values?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the llvm-dev