[LLVMdev] Insert new basic blocks

ning Shi shining.llvm at gmail.com
Wed Jul 24 19:56:46 PDT 2013

You can get the context of the module and the function which you want to
insert the basicblock.
Then you can use
BasicBlock::Create(context, "NameofBasicBlock", F);
to create your basicblock.

2013/7/24 Rasha Omar <rasha.sala7 at gmail.com>

> Using Module Pass
> How could I insert new basic blocks such as
> while(i==1) {}
>  in the IR and also change the predecessors and successors according to
> inserting these basic blocks.
> --
> *Rasha Salah Omar
> Msc Student at E-JUST
> Demonestrator  at Faculty of Computers and Informatics
> Benha University
> *
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20130725/1b862248/attachment.html>

More information about the llvm-dev mailing list