LLVM  9.0.0svn
MachineDominanceFrontier.cpp
Go to the documentation of this file.
1 //===- MachineDominanceFrontier.cpp ---------------------------------------===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
8 
12 #include "llvm/CodeGen/Passes.h"
13 
14 using namespace llvm;
15 
16 namespace llvm {
20 }
21 
22 
24 
25 INITIALIZE_PASS_BEGIN(MachineDominanceFrontier, "machine-domfrontier",
26  "Machine Dominance Frontier Construction", true, true)
29  "Machine Dominance Frontier Construction", true, true)
30 
31 MachineDominanceFrontier::MachineDominanceFrontier()
33  Base() {
35 }
36 
38 
40  releaseMemory();
41  Base.analyze(getAnalysis<MachineDominatorTree>().getBase());
42  return false;
43 }
44 
46  Base.releaseMemory();
47 }
48 
50  AU.setPreservesAll();
53 }
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:23
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:50
MachineFunctionPass - This class adapts the FunctionPass interface to allow convenient creation of pa...
void initializeMachineDominanceFrontierPass(PassRegistry &)
COFF::MachineTypes Machine
Definition: COFFYAML.cpp:365
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...