<div dir="ltr">Hi <div><br></div><div>I want to replace all the return instructions in the program with pop <reg>; jmp <reg>.</div><div><br></div><div>Should I use  IRBuilder in LLVM IR level?</div><div><br></div><div>I found that there is a IRBuilder::CreateIndirectBr</div><div><br></div><div>Or Should I modify the code in lib/Target/X86/X86ISelLowering.cpp in backend ?</div><div><br></div><div>I found that there is a X86TargetLowering::LowerCall</div><div><br></div><div>Which is better?<br></div><div><br></div><div>Thanks</div></div>