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! : ) -- *with best regards* *Zhang Le* -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20101102/42410258/attachment.html>
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.
Reasonably Related Threads
- [LLVMdev] Questions about LLVM IR encoding
- [LLVMdev] Fwd: Documentation about converting GIMPLE IR to LLVM IR in LLVM-GCC/DragonEgg
- [LLVMdev] How do I find all memory allocations in an llvm ir code file?
- [LLVMdev] RFC: How to represent SEH (__try / __except) in LLVM IR
- [LLVMdev] About user of bitcast/GEP instruction