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

1

2

3

4

5

6

7

8

11#include "llvm/Config/llvm-config.h"

19

20using namespace llvm;

21

22namespace llvm {

23

27

28}

29

31

33 "Dominance Frontier Construction", true, true)

36 "Dominance Frontier Construction", true, true)

37

40

42 DF.releaseMemory();

43}

44

50

55

59

60#if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP)

64#endif

65

66

68 FunctionAnalysisManager::Invalidator &) {

69

70

74}

75

76AnalysisKey DominanceFrontierAnalysis::Key;

77

84

87

90 OS << "DominanceFrontier for function: " << F.getName() << "\n";

92

94}

#define LLVM_DUMP_METHOD

Mark debug helper function definitions like dump() that should not be stripped from debug builds.

static RegisterPass< DebugifyFunctionPass > DF("debugify-function", "Attach debug info to a function")

This header defines various interfaces for pass management in LLVM.

#define INITIALIZE_PASS_DEPENDENCY(depName)

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

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

This templated class represents "all analyses that operate over " (e....

PassT::Result & getResult(IRUnitT &IR, ExtraArgTs... ExtraArgs)

Get the result of an analysis pass for a given IR unit.

Represent the analysis usage information of a pass.

AnalysisUsage & addRequired()

void setPreservesAll()

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

Represents analyses that only rely on functions' control flow.

Analysis pass which computes a DominanceFrontier.

DominanceFrontier run(Function &F, FunctionAnalysisManager &AM)

Run the analysis pass over a function and produce a dominator tree.

Definition DominanceFrontier.cpp:78

DominanceFrontierBase - Common base class for computing forward and inverse dominance frontiers for a...

DominanceFrontierPrinterPass(raw_ostream &OS)

Definition DominanceFrontier.cpp:85

PreservedAnalyses run(Function &F, FunctionAnalysisManager &AM)

Definition DominanceFrontier.cpp:89

void dump() const

Definition DominanceFrontier.cpp:61

DominanceFrontierWrapperPass()

Definition DominanceFrontier.cpp:38

bool runOnFunction(Function &) override

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

Definition DominanceFrontier.cpp:45

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

print - Print out the internal state of the pass.

Definition DominanceFrontier.cpp:56

void releaseMemory() override

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

Definition DominanceFrontier.cpp:41

void getAnalysisUsage(AnalysisUsage &AU) const override

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

Definition DominanceFrontier.cpp:51

bool invalidate(Function &F, const PreservedAnalyses &PA, FunctionAnalysisManager::Invalidator &)

Handle invalidation explicitly.

Definition DominanceFrontier.cpp:67

Analysis pass which computes a DominatorTree.

Legacy analysis pass which computes a DominatorTree.

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

print - Print out the internal state of the pass.

DominanceFrontier Class - Concrete subclass of DominanceFrontierBase that is used to compute a forwar...

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

AnalysisType & getAnalysis() const

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

A set of analyses that are preserved following a run of a transformation pass.

static PreservedAnalyses all()

Construct a special preserved set that preserves all passes.

PreservedAnalysisChecker getChecker() const

Build a checker for this PreservedAnalyses and the specified analysis type.

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

This is an optimization pass for GlobalISel generic memory operations.

Printable print(const GCNRegPressure &RP, const GCNSubtarget *ST=nullptr, unsigned DynamicVGPRBlockSize=0)

LLVM_ABI raw_ostream & dbgs()

dbgs() - This returns a reference to a raw_ostream for debugging messages.

AnalysisManager< Function > FunctionAnalysisManager

Convenience typedef for the Function analysis manager.

A special type used by analysis passes to provide an address that identifies that particular analysis...