[LLVMdev] LLVM IR
Duncan Sands
baldrick at free.fr
Tue Nov 2 11:02:37 PDT 2010
Hi 张乐,
> I am doing something about LLVM IR.
> I find that in each of the main() function, there is a statement of %"alloca
> point"=bitcast <type> <value> to <type>
> I don't know why there is such a statement and what its meaning is.
> Could someone please tell me?
> Thx an awful lot! : )
is this statement called "alloca point"? This is injected into the IR by
llvm-gcc as a convenience. Only alloca instructions are placed before it.
All other instructions are placed after it. It will be deleted by the
optimizers if you run them and anyway has no effect.
Ciao,
Duncan.
More information about the llvm-dev
mailing list