[LLVMdev] Clarification regarding the LLVM IR.

James Courtier-Dutton james.dutton at gmail.com
Sun Aug 18 10:14:47 PDT 2013


Hi,

Looking at the documents, it looks like all instructions, e.g. ADD, SUB
work only on labels/registers and constants.
e.g.
%1 = add nsw i32 %value, 291
The only instructions that can work on the values on the stack or on the
heap are LOAD and STORE.
So the following is not possible:
%local = alloca i32, align 4
%1 = add nsw i32* %local, 291

Is the above correct?

Kind Regards

James
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20130818/f4622ed1/attachment.html>


More information about the llvm-dev mailing list