Add an inalloca flag to allocas
authorReid Kleckner <reid@kleckner.net>
Fri, 17 Jan 2014 23:58:17 +0000 (23:58 +0000)
committerReid Kleckner <reid@kleckner.net>
Fri, 17 Jan 2014 23:58:17 +0000 (23:58 +0000)
commit3cbfa1617f0d935d68bf519afb5720df066849c2
treebbd9321083451c055f56f050fe08c56d5a35d9f6
parent01d9f5972a0d7b0d88f815e6f7424f5f7b5bdb04
Add an inalloca flag to allocas

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
docs/LangRef.rst
include/llvm/IR/Argument.h
include/llvm/IR/Instructions.h
lib/AsmParser/LLParser.cpp
lib/AsmParser/LLParser.h
lib/IR/Function.cpp
lib/IR/Instructions.cpp
test/Assembler/inalloca.ll [new file with mode: 0644]
test/Verifier/inalloca-vararg.ll
test/Verifier/inalloca2.ll