<div dir="ltr">Thank you! I wanted to use the right part of the instruction ,<br> %a = alloca i32, align 4 - %a here , but I don't quite understand the difference between Instruction object and Value object of a, which is used further , and in this case :<br>%1 = alloca i32, align 4 - I also wanted to use %1 and in this case the only possibility is Instruction object.<br></div><div class="gmail_extra"><br><div class="gmail_quote">2017-07-20 15:32 GMT+02:00 Evgeny Astigeevich <span dir="ltr"><<a href="mailto:Evgeny.Astigeevich@arm.com" target="_blank">Evgeny.Astigeevich@arm.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">



<div>

<div id="m_7856916512580753053divtagdefaultwrapper" style="font-size:11pt;color:#000000;font-family:Calibri,Helvetica,sans-serif" dir="ltr">
<p>Hi Anastasiya,</p>
<p><br>
</p>
<p>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 (<a href="http://www.llvm.org/docs/ProgrammersManual.html#advanced-topics" class="m_7856916512580753053OWAAutoLink" target="_blank">http://www.llvm.org/docs/<wbr>ProgrammersManual.html#<wbr>advanced-topics</a>)
 which provides <span>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.</span></p>
<p><span><br>
</span></p>
<p><span>Thanks,</span></p>
<p><span>Evgeny Astigevich</span></p>
</div>
<hr style="display:inline-block;width:98%">
<div id="m_7856916512580753053divRplyFwdMsg" dir="ltr"><font style="font-size:11pt" face="Calibri, sans-serif" color="#000000"><b>From:</b> llvm-dev <<a href="mailto:llvm-dev-bounces@lists.llvm.org" target="_blank">llvm-dev-bounces@lists.llvm.<wbr>org</a>> on behalf of Anastasiya Ruzhanskaya via llvm-dev <<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a>><br>
<b>Sent:</b> Thursday, July 20, 2017 2:21:44 PM<br>
<b>To:</b> LLVM Developers Mailing List<br>
<b>Subject:</b> [llvm-dev] Value</font>
<div> </div>
</div><span class="">
<div>
<div dir="ltr">
<div>Hello,<br>
</div>
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?</div>
</div>
</span></div>

</blockquote></div><br></div>