[llvm-dev] HOW TO ACCESS THE LHS PART OF LOAD/ALLOCA INSTRUCTION.
Jeremy Lakeman via llvm-dev
llvm-dev at lists.llvm.org
Tue Feb 14 01:13:38 PST 2017
In memory, "c" is the name of the AllocaInst object. The LoadInst has no
name, so is printed with a sequential number.
Both of which you might discover by enumerating the instructions of the
basic block they exist within.
All Instructions inherit from Value. Anywhere that you need to supply a
Value*, you can supply the result of an Instruction by simply providing the
pointer to the Instruction.
Perhaps you should spend some more time reading the documentation available
online;
http://llvm.org/docs/index.html
On Tue, Feb 14, 2017 at 6:51 PM, binapani via llvm-dev <
llvm-dev at lists.llvm.org> wrote:
> Hello Sir/Madam,
>
> I am implementing Pointer-analysis in LLVM. As I am a novice user of
> LLVM, facing many problems. I have the following doubt.
>
> HOW TO ACCESS THE LHS PART OF LOAD/ALLOCA INSTRUCTION.
>
> Eg:
> %c = alloca i32**, align 8
> %0 = load i32*, i32** %b, align 8
>
> how to access c and address of 0(temporary variable) in case of
> alloca and load instruction respectively ?
>
> Regards,
> Binapani Beria
> _______________________________________________
> LLVM Developers mailing list
> llvm-dev at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20170214/6965817c/attachment.html>
More information about the llvm-dev
mailing list