Displaying 1 result from an estimated 1 matches for "v_restore".
Did you mean:
_restore
2016 Apr 27
2
[Sparc] builtin setjmp / longjmp - need help to get past last problem
...;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();
+ MachineFunction::iterator It = ++MBB->getIter...