[LLVMdev] code-altering Passes for llc

Artjom Kochtchi artjom.kochtchi at googlemail.com
Mon Aug 3 03:18:15 PDT 2009



Dan Gohman-2 wrote:
> 
> You don't need a ModulePass to modify a CFG. A MachineFunctionPass
> is fine for this.
> 
Well, okay. But I need to insert some BasicBlock that contains the error
handling (that the runtime check jumpts to on failure). Just putting another
MachineBasicBlock at the beginning of some arbitrary MachineFunction doesn't
seem to be the right way to go, does it?
-- 
View this message in context: http://www.nabble.com/code-altering-Passes-for-llc-tp24778261p24788337.html
Sent from the LLVM - Dev mailing list archive at Nabble.com.




More information about the llvm-dev mailing list