diff options
| author | Anton Korobeynikov <asl@math.spbu.ru> | 2010-03-06 20:07:32 +0000 |
|---|---|---|
| committer | Anton Korobeynikov <asl@math.spbu.ru> | 2010-03-06 20:07:32 +0000 |
| commit | c9c8b2713c1e683e814d1e6cd16d9447825400e4 (patch) | |
| tree | 9786b6d4a6e3f39d286376ebf4d98ed0de4804de /llvm/lib | |
| parent | bf16a17fc146f16c0961078e474164928b78d204 (diff) | |
| download | bcm5719-llvm-c9c8b2713c1e683e814d1e6cd16d9447825400e4.tar.gz bcm5719-llvm-c9c8b2713c1e683e814d1e6cd16d9447825400e4.zip | |
Describe what's going on with mingw alloca and why do we need separate instruction.
llvm-svn: 97888
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/Target/X86/X86InstrInfo.td | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/llvm/lib/Target/X86/X86InstrInfo.td b/llvm/lib/Target/X86/X86InstrInfo.td index 9953b052cf6..8a6ff54c771 100644 --- a/llvm/lib/Target/X86/X86InstrInfo.td +++ b/llvm/lib/Target/X86/X86InstrInfo.td @@ -533,8 +533,16 @@ def VASTART_SAVE_XMM_REGS : I<0, Pseudo, imm:$regsavefi, imm:$offset)]>; +// Dynamic stack allocation yields _alloca call for Cygwin/Mingw targets. Calls +// to _alloca is needed to probe the stack when allocating more than 4k bytes in +// one go. Touching the stack at 4K increments is necessary to ensure that the +// guard pages used by the OS virtual memory manager are allocated in correct +// sequence. +// The main point of having separate instruction are extra unmodelled effects +// (compared to ordinary calls) like stack pointer change. + def MINGW_ALLOCA : I<0, Pseudo, (outs), (ins), - "call __alloca", + "# dynamic stack allocation", [(X86MingwAlloca)]>; } |

