[LLVMdev] Probably FAQ: can you insert BRCONDs during TargetLowering::LowerOperation?

Scott Michel scottm at aero.org
Tue Jan 6 17:53:48 PST 2009


It's yet another CellSPU thing: integer division is a long code  
sequence we have to insert that has branches within it (test for 0  
divisor, etc.) Can't really emit the sequence of instructions via  
tblgen (can't have labels or BBs). The other alternative is a custom  
instruction emitter.

Life could be easier if I could insert BRCONDs and other branches  
from within target-dependent lowering -- if I had access to the  
current MBB.

Is this possible or just a FAQ?


-scooter



More information about the llvm-dev mailing list