13#ifndef LLVM_CODEGEN_GLOBALISEL_INSTRUCTIONSELECT_H
14#define LLVM_CODEGEN_GLOBALISEL_INSTRUCTIONSELECT_H
48 RequiredProperties.setIsSSA().setLegalized();
50 RequiredProperties.setRegBankSelected();
51 return RequiredProperties;
59 bool RequireRegBankSelection =
true,
80 class MIIteratorMaintainer;
95 bool RequireRegBankSelection =
true;
99 bool RequireRegBankSelection =
true);
105 RequiredProperties.setIsSSA().setLegalized();
106 if (RequireRegBankSelection)
107 RequiredProperties.setRegBankSelected();
108 return RequiredProperties;
This header defines various interfaces for pass management in LLVM.
Represent the analysis usage information of a pass.
BlockFrequencyInfo pass uses BlockFrequencyInfoImpl implementation to estimate IR basic block frequen...
void setInstructionSelector(InstructionSelector *NewISel)
bool selectMachineFunction(MachineFunction &MF)
InstructionSelectImpl(CodeGenOptLevel OL)
InstructionSelector * ISel
bool runOnMachineFunction(MachineFunction &MF, function_ref< GISelValueTracking *()> GetVT, function_ref< ProfileSummaryInfo *()> GetPSI, function_ref< BlockFrequencyInfo *()> GetBFI)
bool selectInstr(MachineInstr &MI)
This pass is responsible for selecting generic machine instructions to target-specific instructions.
MachineFunctionProperties getSetProperties() const override
InstructionSelectLegacy(CodeGenOptLevel OL=CodeGenOptLevel::Default, bool RequireRegBankSelection=true, char &PassID=ID)
MachineFunctionProperties getRequiredProperties() const override
bool RequireRegBankSelection
StringRef getPassName() const override
getPassName - Return a nice clean name for a pass.
MachineFunctionProperties getSetProperties() const
MachineFunctionProperties getRequiredProperties() const
PreservedAnalyses run(MachineFunction &MF, MachineFunctionAnalysisManager &MFAM)
InstructionSelectPass(CodeGenOptLevel OL=CodeGenOptLevel::Default, bool RequireRegBankSelection=true)
MachineFunctionPass(char &ID)
Properties which a MachineFunction may have at a given point in time.
Representation of each machine instruction.
A set of analyses that are preserved following a run of a transformation pass.
Analysis providing profile information.
Represent a constant reference to a string, i.e.
An efficient, type-erasing, non-owning reference to a callable.
Pass manager infrastructure for declaring and invalidating analyses.
This is an optimization pass for GlobalISel generic memory operations.
AnalysisManager< MachineFunction > MachineFunctionAnalysisManager
CodeGenOptLevel
Code generation optimization level.
A CRTP mix-in for passes that should not be skipped.