[llvm-commits] [PATCH][x86] Add support for dynamic stack probing on Windows x64 (Microsoft and MinGW).

Anton Korobeynikov anton at korobeynikov.info
Mon Nov 15 13:54:12 PST 2010


+    BuildMI(*BB, MI, DL, TII->get(X86::WINCALL64pcrel32))
+      .addExternalSymbol("__chkstk")
+      .addReg(X86::RAX, RegState::Implicit)
+      .addReg(X86::RSP, RegState::Define | RegState::Implicit);
Instruction also changes flags, right? If so, then it should impdef
eflags as well.

+    BuildMI(*BB, MI, DL, TII->get(X86::SUB64rr), X86::RSP)
+      .addReg(X86::RSP)
+      .addReg(X86::RAX);
Stack should always be aligned on win64, how this is handled here?

-- 
With best regards, Anton Korobeynikov
Faculty of Mathematics and Mechanics, Saint Petersburg State University



More information about the llvm-commits mailing list