LLVM  12.0.0git
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 //===----------------------------------------------------------------------===//
12 #include "llvm/CodeGen/Passes.h"
13 #include "llvm/InitializePasses.h"
15 using namespace llvm;
17 namespace llvm {
21 }
26 INITIALIZE_PASS_BEGIN(MachineDominanceFrontier, "machine-domfrontier",
27  "Machine Dominance Frontier Construction", true, true)
30  "Machine Dominance Frontier Construction", true, true)
32 MachineDominanceFrontier::MachineDominanceFrontier()
34  Base() {
36 }
41  releaseMemory();
42  Base.analyze(getAnalysis<MachineDominatorTree>().getBase());
43  return false;
44 }
47  Base.releaseMemory();
48 }
51  AU.setPreservesAll();
54 }
machine domfrontier
static PassRegistry * getPassRegistry()
getPassRegistry - Access the global registry object, which is automatically initialized at applicatio...
coro Split coroutine into a set of functions driving its state machine
Definition: CoroSplit.cpp:1806
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()
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...