LLVM  8.0.1
MachineDominanceFrontier.cpp
Go to the documentation of this file.
1 //===- MachineDominanceFrontier.cpp ---------------------------------------===//
2 //
3 // The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9 
13 #include "llvm/CodeGen/Passes.h"
14 
15 using namespace llvm;
16 
17 namespace llvm {
21 }
22 
23 
25 
26 INITIALIZE_PASS_BEGIN(MachineDominanceFrontier, "machine-domfrontier",
27  "Machine Dominance Frontier Construction", true, true)
30  "Machine Dominance Frontier Construction", true, true)
31 
32 MachineDominanceFrontier::MachineDominanceFrontier()
34  Base() {
36 }
37 
39 
41  releaseMemory();
42  Base.analyze(getAnalysis<MachineDominatorTree>().getBase());
43  return false;
44 }
45 
47  Base.releaseMemory();
48 }
49 
51  AU.setPreservesAll();
54 }
machine domfrontier
static PassRegistry * getPassRegistry()
getPassRegistry - Access the global registry object, which is automatically initialized at applicatio...
This class represents lattice values for constants.
Definition: AllocatorList.h:24
machine Machine Dominance Frontier Construction
DominanceFrontierBase - Common base class for computing forward and inverse dominance frontiers for a...
AnalysisUsage & addRequired()
#define INITIALIZE_PASS_DEPENDENCY(depName)
Definition: PassSupport.h:51
MachineFunctionPass - This class adapts the FunctionPass interface to allow convenient creation of pa...
void initializeMachineDominanceFrontierPass(PassRegistry &)
COFF::MachineTypes Machine
Definition: COFFYAML.cpp:363
void getAnalysisUsage(AnalysisUsage &AU) const override
getAnalysisUsage - Subclasses that override getAnalysisUsage must call this.
Represent the analysis usage information of a pass.
void getAnalysisUsage(AnalysisUsage &AU) const override
getAnalysisUsage - This function should be overriden by passes that need analysis information to do t...
INITIALIZE_PASS_BEGIN(MachineDominanceFrontier, "machine-domfrontier", "Machine Dominance Frontier Construction", true, true) INITIALIZE_PASS_END(MachineDominanceFrontier
INITIALIZE_PASS_END(RegBankSelect, DEBUG_TYPE, "Assign register bank of generic virtual registers", false, false) RegBankSelect
void releaseMemory() override
releaseMemory() - This member can be implemented by a pass if it wants to be able to release its memo...
char & MachineDominanceFrontierID
MachineDominanaceFrontier - This pass is a machine dominators analysis pass.
void setPreservesAll()
Set by analyses that do not transform their input at all.
machine Machine Dominance Frontier true
bool runOnMachineFunction(MachineFunction &F) override
runOnMachineFunction - This method must be overloaded to perform the desired machine code transformat...
ForwardDominanceFrontierBase< MachineBasicBlock > & getBase()
DominatorTree Class - Concrete subclass of DominatorTreeBase that is used to compute a normal dominat...
DominanceFrontier Class - Concrete subclass of DominanceFrontierBase that is used to compute a forwar...