[llvm-dev] Value

Evgeny Astigeevich via llvm-dev llvm-dev at lists.llvm.org
Thu Jul 20 06:32:43 PDT 2017


Hi Anastasiya,


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.


Thanks,

Evgeny Astigevich

________________________________
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

Hello,
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...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20170720/80e03594/attachment.html>


More information about the llvm-dev mailing list