18#ifndef LLVM_CODEGEN_REGISTERUSAGEINFO_H
19#define LLVM_CODEGEN_REGISTERUSAGEINFO_H
67 std::unique_ptr<PhysicalRegisterUsageInfo> PRUI;
81 return PRUI->doInitialization(M);
103 :
public PassInfoMixin<PhysicalRegisterUsageInfoPrinterPass> {
This file defines the DenseMap class.
This header defines various interfaces for pass management in LLVM.
API to communicate dependencies between analyses during invalidation.
A container for analyses that lazily runs them and caches their results.
ArrayRef - Represent a constant reference to an array (0 or more elements consecutively in memory),...
ImmutablePass class - This class is used to provide information that does not need to be run.
A Module instance is used to store all the information related to an LLVM module.
static PassRegistry * getPassRegistry()
getPassRegistry - Access the global registry object, which is automatically initialized at applicatio...
PhysicalRegisterUsageInfo run(Module &M, ModuleAnalysisManager &)
PhysicalRegisterUsageInfoPrinterPass(raw_ostream &OS)
PreservedAnalyses run(Module &M, ModuleAnalysisManager &AM)
const PhysicalRegisterUsageInfo & getPRUI() const
PhysicalRegisterUsageInfo & getPRUI()
PhysicalRegisterUsageInfoWrapperLegacy()
bool doInitialization(Module &M) override
doInitialization - Virtual method overridden by subclasses to do any necessary initialization before ...
bool doFinalization(Module &M) override
doFinalization - Virtual method overriden by subclasses to do any necessary clean up after all passes...
void print(raw_ostream &OS, const Module *M=nullptr) const override
print - Print out the internal state of the pass.
bool invalidate(Module &M, const PreservedAnalyses &PA, ModuleAnalysisManager::Invalidator &Inv)
bool doFinalization(Module &M)
ArrayRef< uint32_t > getRegUsageInfo(const Function &FP)
To query stored RegMask for given Function *, it will returns ane empty array if function is not know...
bool doInitialization(Module &M)
void setTargetMachine(const TargetMachine &TM)
Set TargetMachine which is used to print analysis.
void print(raw_ostream &OS, const Module *M=nullptr) const
void storeUpdateRegUsageInfo(const Function &FP, ArrayRef< uint32_t > RegMask)
To store RegMask for given Function *.
A set of analyses that are preserved following a run of a transformation pass.
Primary interface to the complete machine description for the target machine.
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.
void initializePhysicalRegisterUsageInfoWrapperLegacyPass(PassRegistry &)
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 to automatically provide informational APIs needed for passes.