Moving Instructions.

Hi,

Is there a way in which i can move an instruction from one basicblock to another?.(without giving the instruction a new name).
I’m actually trying to move the body of a given loop into a new function. If i would be able to move basicblocks’s that would be ideal. So is there a way to move a basicblock into a function?.

Thanks,
Rohith.

See Instruction.h