Anastasiya Ruzhanskaya via llvm-dev
llvm-dev at lists.llvm.org
Thu Jul 20 07:02:26 PDT 2017
Thank you! I wanted to use the right part of the instruction ,
%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 :
%1 = alloca i32, align 4 - I also wanted to use %1 and in this case the
only possibility is Instruction object.
2017-07-20 15:32 GMT+02:00 Evgeny Astigeevich <Evgeny.Astigeevich at arm.com>:
> 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.
> 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
> 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