21#ifndef LLVM_CODEGEN_MACHINEPASSMANAGER_H
22#define LLVM_CODEGEN_MACHINEPASSMANAGER_H
40LLVM_ABI bool MachineFunctionAnalysisManagerModuleProxy::Result::invalidate(
42 ModuleAnalysisManager::Invalidator &Inv);
49LLVM_ABI bool MachineFunctionAnalysisManagerFunctionProxy::Result::invalidate(
51 FunctionAnalysisManager::Invalidator &Inv);
98 MachineFunctionAnalysisManager::Invalidator &Inv);
139 PassConceptT::unique_ptr
Pass;
142template <
typename MachineFunctionPassT>
143FunctionToMachineFunctionPassAdaptor
148 PassModelT::create(std::move(
Pass)));
#define LLVM_TEMPLATE_ABI
This header defines various interfaces for pass management in LLVM.
Legalize the Machine IR a function s Machine IR
FunctionAnalysisManager FAM
This header provides internal APIs and implementation details used by the pass management interfaces ...
This file defines the SmallVector class.
A container for analyses that lazily runs them and caches their results.
FunctionAnalysisManager & getManager()
Accessor for the analysis manager.
Result(FunctionAnalysisManager &FAM)
Result & operator=(Result &&RHS)
static LLVM_ABI AnalysisKey Key
FunctionAnalysisManagerMachineFunctionProxy(FunctionAnalysisManager &FAM)
Result run(MachineFunction &, MachineFunctionAnalysisManager &)
Run the analysis pass and create our proxy result object.
FunctionToMachineFunctionPassAdaptor(PassConceptT::unique_ptr Pass)
detail::PassConcept< MachineFunction, MachineFunctionAnalysisManager > PassConceptT
An analysis over an "outer" IR unit that provides access to an analysis manager over an "inner" IR un...
A Module instance is used to store all the information related to an LLVM module.
An analysis over an "inner" IR unit that provides access to an analysis manager over a "outer" IR uni...
Manages a sequence of passes over a particular unit of IR.
PreservedAnalyses run(IRUnitT &IR, AnalysisManagerT &AM, ExtraArgTs... ExtraArgs)
Run all of the passes in this manager over the given unit of IR.
Pass interface - Implemented by all 'passes'.
A set of analyses that are preserved following a run of a transformation pass.
Represent a constant reference to a string, i.e.
Template for the abstract base class used to dispatch over pass objects.
std::unique_ptr< PassConcept, Deleter > unique_ptr
A template wrapper used to implement PassConcept.
An efficient, type-erasing, non-owning reference to a callable.
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.
OuterAnalysisManagerProxy< ModuleAnalysisManager, MachineFunction > ModuleAnalysisManagerMachineFunctionProxy
Provide the ModuleAnalysisManager to Function proxy.
AnalysisManager< MachineFunction > MachineFunctionAnalysisManager
LLVM_ABI PreservedAnalyses getMachineFunctionPassPreservedAnalyses()
Returns the minimum set of Analyses that all machine function passes must preserve.
FunctionToMachineFunctionPassAdaptor createFunctionToMachineFunctionPassAdaptor(MachineFunctionPassT &&Pass)
InnerAnalysisManagerProxy< MachineFunctionAnalysisManager, Function > MachineFunctionAnalysisManagerFunctionProxy
InnerAnalysisManagerProxy< MachineFunctionAnalysisManager, Module > MachineFunctionAnalysisManagerModuleProxy
OutputIt move(R &&Range, OutputIt Out)
Provide wrappers to std::move which take ranges instead of having to pass begin/end explicitly.
PassManager< MachineFunction > MachineFunctionPassManager
Convenience typedef for a pass manager over functions.
AnalysisManager< Function > FunctionAnalysisManager
Convenience typedef for the Function analysis manager.
Implement std::hash so that hash_code can be used in STL containers.
A CRTP mix-in that provides informational APIs needed for analysis passes.
A special type used by analysis passes to provide an address that identifies that particular analysis...
A CRTP mix-in for passes that should not be skipped.