reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced
    1
    2
    3
    4
    5
    6
    7
    8
    9
   10
   11
   12
   13
   14
   15
   16
   17
   18
   19
; RUN: llc < %s -mtriple=i686-pc-win32 | FileCheck %s

; Allocas with unknown size in the entry block are dynamic.
define void @foo(i32 %n) {
  %m = alloca i32, i32 %n
  ret void
}
; CHECK-LABEL: _foo:
; CHECK: calll __chkstk
; CHECK: retl

; Use of inalloca implies that that the alloca is not static.
define void @bar() {
  %m = alloca inalloca i32
  ret void
}
; CHECK-LABEL: _bar:
; CHECK: pushl %eax
; CHECK: retl