[LLVMdev] How to create a new Basic block
Tarek Chammah
tchammah at uwaterloo.ca
Sun Nov 14 21:28:39 PST 2010
> Please help me out. I am trying to create an empty basic block between two
> basic blocks. I am using splitedge function. But I am getting the o/p. The
> .ll file is not showing any output.
>
> --
> regards,
> soumya prasad ukil
Hi, AFAIK you'd use the createBasicBlock method of the
llvm::BasicBlock class. If you want to emit it during the code gen
phase the EmitBlock method of the CodeGenFunction class helps.
Thanks,
~Tarek!
More information about the llvm-dev
mailing list