search for: mainmbb

Displaying 1 result from an estimated 1 matches for "mainmbb".

2016 Apr 27
2
[Sparc] builtin setjmp / longjmp - need help to get past last problem
...RegClass(DstReg); + assert(RC->hasType(MVT::i32) && "Invalid destination!"); + unsigned mainDstReg = MRI.createVirtualRegister(RC); + unsigned restoreDstReg = MRI.createVirtualRegister(RC); + + // For v = setjmp(buf), we generate + // + // thisMBB: + // SjLjSetup mainMBB + // bl mainMBB + // v_restore = 1 + // b sinkMBB + // + // mainMBB: + // buf[LabelOffset] = restoreMBB <-- takes address of restoreMBB + // v_main = 0 + // + // sinkMBB: + // v = phi(main, restore) + + + const BasicBlock *BB = MBB->getBasicBlock(); + MachineFunc...