class StackProtector

Declaration

class StackProtector : public FunctionPass { /* full declaration omitted */ };

Description

FunctionPass class - This class is used to implement most global optimizations. Optimizations should subclass this class if they meet the following constraints: 1. Optimizations are organized globally, i.e., a function at a time 2. Optimizing a function does not cause the addition or removal of any functions in the module

Declared at: llvm/include/llvm/CodeGen/StackProtector.h:37

Inherits from: FunctionPass

Member Variables

public static char ID

Method Overview

Inherited from FunctionPass:

Inherited from Pass:

Methods

StackProtector()

Declared at: llvm/include/llvm/CodeGen/StackProtector.h:107

void copyToMachineFrameInfo(
    llvm::MachineFrameInfo& MFI) const

Declared at: llvm/include/llvm/CodeGen/StackProtector.h:116

Parameters

llvm::MachineFrameInfo& MFI

void getAnalysisUsage(
    llvm::AnalysisUsage& AU) const

Description

getAnalysisUsage - This function should be overriden by passes that need analysis information to do their job. If a pass specifies that it uses a particular analysis result to this function, it can then use the getAnalysis <AnalysisType >() function, below.

Declared at: llvm/include/llvm/CodeGen/StackProtector.h:109

Parameters

llvm::AnalysisUsage& AU

bool runOnFunction(llvm::Function& Fn)

Description

runOnFunction - Virtual method overriden by subclasses to do the per-function processing of the pass.

Declared at: llvm/include/llvm/CodeGen/StackProtector.h:114

Parameters

llvm::Function& Fn

bool shouldEmitSDCheck(
    const llvm::BasicBlock& BB) const

Declared at: llvm/include/llvm/CodeGen/StackProtector.h:112

Parameters

const llvm::BasicBlock& BB