mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
3cbfa1617f
Summary: The only current use of this flag is to mark the alloca as dynamic, even if its in the entry block. The stack adjustment for the alloca can never be folded into the prologue because the call may clear it and it has to be allocated at the top of the stack. Reviewers: majnemer CC: llvm-commits Differential Revision: http://llvm-reviews.chandlerc.com/D2571 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@199525 91177308-0d34-0410-b5e6-96231b3b80d8
17 lines
396 B
LLVM
17 lines
396 B
LLVM
; RUN: llvm-as %s -o /dev/null
|
|
|
|
define void @a() {
|
|
entry:
|
|
%0 = alloca i32, inalloca
|
|
%1 = alloca [2 x i32], inalloca
|
|
%2 = alloca i32, inalloca, i32 2
|
|
%3 = alloca i32, inalloca, i32 2, align 16
|
|
%4 = alloca i32, inalloca, i32 2, align 16, !foo !0
|
|
%5 = alloca i32, i32 2, align 16, !foo !0
|
|
%6 = alloca i32, i32 2, align 16
|
|
ret void
|
|
}
|
|
|
|
!0 = metadata !{i32 662302, null}
|
|
!foo = !{ !0 }
|