Create new Function in llvm




|



If I have a set of basic blocks and edges and I need to create for them a new function with new entry and end points.



Could I create this directly in LLVM , just like createFunction(F) then F.insert(bb, edges) which bb is a basic block and edges is the new edges for the new function.



Thanks



|