Would it be correct to say that the only instructions in LLVM IR that
modify/access memory potentially are the following:
(1) LoadInst : Ref
(2) StoreInst : Mod
(3) VAArgInst : Ref (?)
(4) AllocaInst : Mod
(5) MallocInst : Mod
(6) FreeInst : Mod
(7) CallInst : Mod/Ref ?
Also, my earlier impression was that the GEP instruction only computes
the effective address and does not modify/access any memory location.
Is that true ?
If I have missed other instructions that could alter/modify memory,
please let me know.
Thanks for your time.
- Prakash
_______________________________________________
LLVM Developers mailing list
LLV...@cs.uiuc.edu http://llvm.cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
> (1) LoadInst : Ref
> (2) StoreInst : Mod
> (3) VAArgInst : Ref (?)
> (4) AllocaInst : Mod
> (5) MallocInst : Mod
> (6) FreeInst : Mod
> (7) CallInst : Mod/Ref ?
>
> Also, my earlier impression was that the GEP instruction only computes
> the effective address and does not modify/access any memory location.
> Is that true ?
>
This is correct.
> If I have missed other instructions that could alter/modify memory,
> please let me know.
>
> Thanks for your time.
>
-- John T.
Thanks for the reply. I am planning to use this information as a part
of Analysis, so I guess it should be ok since it is before code
generation.
- Prakash