[LLVMdev] How to extract loop body into a new function?

Shah, Mrunal J mrunal.shah at gatech.edu
Sat Dec 6 17:30:33 PST 2008


Hi All,

I am having trouble extracting loop body into a new function. The ExtractLoop() or ExtractBasicBlock() extracts the entire loop along with the header into a new function. All I want is to extract the body of the loop into a new function(without the header). 
Is this possible?

Thanks,
Mrunal



More information about the llvm-dev mailing list