[stackprotector] Update the StackProtector pass to perform datalayout analysis.
authorJosh Magee <joshua_magee@playstation.sony.com>
Tue, 29 Oct 2013 21:16:16 +0000 (21:16 +0000)
committerJosh Magee <joshua_magee@playstation.sony.com>
Tue, 29 Oct 2013 21:16:16 +0000 (21:16 +0000)
commit4598b40ce62dceb5ff96bbb7caeebd1ca57ae3fe
tree1db87c37674fd9f505b443391450fa0792707320
parentf7c6da6fe8ba43205d2a1fb1152720bd72e7ea23
[stackprotector] Update the StackProtector pass to perform datalayout analysis.

This modifies the pass to classify every SSP-triggering AllocaInst according to
an SSPLayoutKind (LargeArray, SmallArray, AddrOf).  This analysis is collected
by the pass and made available for use, but no other pass uses it yet.

The next patch will make use of this analysis in PEI and StackSlot
passes.  The end goal is to support ssp-strong stack layout rules.

WIP.

Differential Revision: http://llvm-reviews.chandlerc.com/D1789

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@193653 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/CodeGen/StackProtector.h
lib/CodeGen/StackProtector.cpp