LLVM: lib/Analysis/LazyBranchProbabilityInfo.cpp Source File (original) (raw)

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

21

22using namespace llvm;

23

24#define DEBUG_TYPE "lazy-branch-prob"

25

27 "Lazy Branch Probability Analysis", true, true)

31 "Lazy Branch Probability Analysis", true, true)

32

34

39

41 const Module *) const {

42 LBPI->getCalculated().print(OS);

43}

44

54

56

61 LBPI = std::make_unique(&F, &LI, &TLI);

62 return false;

63}

64

70

#define INITIALIZE_PASS_DEPENDENCY(depName)

#define INITIALIZE_PASS_END(passName, arg, name, cfg, analysis)

#define INITIALIZE_PASS_BEGIN(passName, arg, name, cfg, analysis)

Represent the analysis usage information of a pass.

void setPreservesAll()

Set by analyses that do not transform their input at all.

AnalysisUsage & addRequiredTransitive()

Legacy analysis pass which computes a DominatorTree.

This is an alternative analysis pass to BranchProbabilityInfoWrapperPass.

void getAnalysisUsage(AnalysisUsage &AU) const override

getAnalysisUsage - This function should be overriden by passes that need analysis information to do t...

Definition LazyBranchProbabilityInfo.cpp:45

bool runOnFunction(Function &F) override

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

Definition LazyBranchProbabilityInfo.cpp:57

void releaseMemory() override

releaseMemory() - This member can be implemented by a pass if it wants to be able to release its memo...

Definition LazyBranchProbabilityInfo.cpp:55

void print(raw_ostream &OS, const Module *M) const override

print - Print out the internal state of the pass.

Definition LazyBranchProbabilityInfo.cpp:40

LazyBranchProbabilityInfoPass()

Definition LazyBranchProbabilityInfo.cpp:35

static void getLazyBPIAnalysisUsage(AnalysisUsage &AU)

Helper for client passes to set up the analysis usage on behalf of this pass.

Definition LazyBranchProbabilityInfo.cpp:65

The legacy pass manager's analysis pass to compute loop information.

A Module instance is used to store all the information related to an LLVM module.

PassRegistry - This class manages the registration and intitialization of the pass subsystem as appli...

static LLVM_ABI PassRegistry * getPassRegistry()

getPassRegistry - Access the global registry object, which is automatically initialized at applicatio...

AnalysisType & getAnalysis() const

getAnalysis() - This function is used by subclasses to get to the analysis information ...

A global registry used in conjunction with static constructors to make pluggable components (like tar...

Provides information about what library functions are available for the current target.

This class implements an extremely fast bulk output stream that can only output to a stream.

unsigned ID

LLVM IR allows to use arbitrary numbers as calling convention identifiers.

This is an optimization pass for GlobalISel generic memory operations.

LLVM_ABI void initializeLazyBranchProbabilityInfoPassPass(PassRegistry &)

void initializeLazyBPIPassPass(PassRegistry &Registry)

Helper for client passes to initialize dependent passes for LBPI.

Definition LazyBranchProbabilityInfo.cpp:71