class Combiner
Declaration
class Combiner { /* full declaration omitted */ };
Declared at: llvm/include/llvm/CodeGen/GlobalISel/Combiner.h:27
Member Variables
- protected llvm::CombinerInfo& CInfo
- protected llvm::MachineRegisterInfo* MRI = nullptr
- protected const llvm::TargetPassConfig* TPC
- protected std::unique_ptr<MachineIRBuilder> Builder
Method Overview
- public Combiner(llvm::CombinerInfo & CombinerInfo, const llvm::TargetPassConfig * TPC)
- public bool combineMachineInstrs(llvm::MachineFunction & MF, llvm::GISelCSEInfo * CSEInfo)
Methods
¶Combiner(llvm::CombinerInfo& CombinerInfo,
const llvm::TargetPassConfig* TPC)
Combiner(llvm::CombinerInfo& CombinerInfo,
const llvm::TargetPassConfig* TPC)
Declared at: llvm/include/llvm/CodeGen/GlobalISel/Combiner.h:29
Parameters
- llvm::CombinerInfo& CombinerInfo
- const llvm::TargetPassConfig* TPC
¶bool combineMachineInstrs(
llvm::MachineFunction& MF,
llvm::GISelCSEInfo* CSEInfo)
bool combineMachineInstrs(
llvm::MachineFunction& MF,
llvm::GISelCSEInfo* CSEInfo)
Description
If CSEInfo is not null, then the Combiner will setup observer for CSEInfo and instantiate a CSEMIRBuilder. Pass nullptr if CSE is not needed.
Declared at: llvm/include/llvm/CodeGen/GlobalISel/Combiner.h:34
Parameters
- llvm::MachineFunction& MF
- llvm::GISelCSEInfo* CSEInfo