Displaying 1 result from an estimated 1 matches for "buildcfi".
2017 Apr 27
4
-msave-args backend support for x86_64
...::end(GPR64ArgRegs64Bit));
+}
+
+
/// emitPrologue - Push callee-saved registers onto the stack, which
/// automatically adjust the stack pointer. Adjust the stack pointer to allocate
/// space for local variables. Also emit labels used by the exception handler to
@@ -1123,6 +1143,36 @@
BuildCFI(MBB, MBBI, DL, MCCFIInstruction::createDefCfaRegister(
nullptr, DwarfFramePtr));
}
+
+ if (SaveArgs) {
+ ArrayRef<MCPhysReg> GPRs =
+ get64BitArgumentGPRs(Fn->getCallingConv(), STI);
+ unsigned arg_size = Fn->arg_size();
+...