[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)
commit3f1c0e35e63969c25de3762eb52b7c22d353a73e
treeacb98ee7055c97e930371dde61671c6577e5e050
parente86109f508ead7dabbc2b8d1aec9595260f9e926
[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

llvm-svn: 193653
llvm/include/llvm/CodeGen/StackProtector.h
llvm/lib/CodeGen/StackProtector.cpp