[LLVMdev] How to insert a basic block in an edge

Chayan Sarkar chayan.ju at gmail.com
Sat Jul 17 09:32:52 PDT 2010


Hi all,

Suppose in a CFG bb1 has two succesor bb3 and bb4, and bb3 has two
predecessor bb1 and bb2. Now how can I insert a basic block between
bb1 and bb3 that at the edge bb1-->bb3 .

In general how can I insert a basic block on an edge?

Regards,
Chayan



More information about the llvm-dev mailing list