17 #ifndef LLVM_CODEGEN_STACKPROTECTOR_H
18 #define LLVM_CODEGEN_STACKPROTECTOR_H
70 unsigned SSPBufferSize;
84 bool InsertStackProtectors();
96 bool ContainsProtectableArray(
Type *Ty,
bool &IsLarge,
bool Strong =
false,
97 bool InStruct =
false)
const;
104 bool RequiresStackProtector();
113 :
FunctionPass(
ID), TM(TM), TLI(nullptr), Trip(TM->getTargetTriple()),
129 #endif // LLVM_CODEGEN_STACKPROTECTOR_H
AnalysisUsage & addPreserved()
Add the specified Pass class to the set of analyses preserved by this pass.
static PassRegistry * getPassRegistry()
getPassRegistry - Access the global registry object, which is automatically initialized at applicatio...
A Module instance is used to store all the information related to an LLVM module. ...
Did not trigger a stack protector.
The address of this allocation is exposed and triggered protection.
SSPLayoutKind
SSPLayoutKind.
Concrete subclass of DominatorTreeBase that is used to compute a normal dominator tree...
bool runOnFunction(Function &Fn) override
runOnFunction - Virtual method overriden by subclasses to do the per-function processing of the pass...
LLVM Basic Block Representation.
The instances of the Type class are immutable: once they are created, they are never changed...
void getAnalysisUsage(AnalysisUsage &AU) const override
getAnalysisUsage - This function should be overriden by passes that need analysis information to do t...
Represent the analysis usage information of a pass.
FunctionPass class - This class is used to implement most global optimizations.
void adjustForColoring(const AllocaInst *From, const AllocaInst *To)
SSPLayoutKind getSSPLayout(const AllocaInst *AI) const
Triple - Helper class for working with autoconf configuration names.
This base class for TargetLowering contains the SelectionDAG-independent parts that can be used from ...
SmallPtrSet - This class implements a set which is optimized for holding SmallSize or less elements...
void initializeStackProtectorPass(PassRegistry &)
ValueMap< const AllocaInst *, SSPLayoutKind > SSPLayoutMap
A mapping of AllocaInsts to their required SSP layout.
Primary interface to the complete machine description for the target machine.
Legacy analysis pass which computes a DominatorTree.
StackProtector(const TargetMachine *TM)
Array or nested array >= SSP-buffer-size.
Array or nested array < SSP-buffer-size.
This file describes how to lower LLVM code to machine code.
AllocaInst - an instruction to allocate memory on the stack.