[LLVMdev] Hello World
rjmccall at apple.com
Thu Jun 24 15:29:30 PDT 2010
On Jun 24, 2010, at 12:16 PM, Félix Cloutier wrote:
The IRBuilder class is more than just a factory; it's actually designed to write instructions sequentially into the current block. However, if you don't give it an insertion point, it will just create the instructions as orphans, and you can land them in basic blocks with the APIs that Eli mentioned.
That said, I *strongly* encourage you to use IRBuilder to create instructions sequentially rather than trying to place them all yourself.
More information about the llvm-dev