HOW TO ACCESS THE LHS PART OF LOAD/ALLOCA INSTRUCTION.

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

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