LLVM 17.0.0git
|
#include "llvm/CodeGen/GlobalISel/Combiner.h"
Public Member Functions | |
Combiner (CombinerInfo &CombinerInfo, const TargetPassConfig *TPC) | |
bool | combineMachineInstrs (MachineFunction &MF, GISelCSEInfo *CSEInfo) |
If CSEInfo is not null, then the Combiner will setup observer for CSEInfo and instantiate a CSEMIRBuilder. | |
Protected Attributes | |
CombinerInfo & | CInfo |
MachineRegisterInfo * | MRI = nullptr |
const TargetPassConfig * | TPC |
std::unique_ptr< MachineIRBuilder > | Builder |
Definition at line 26 of file Combiner.h.
Combiner::Combiner | ( | CombinerInfo & | CombinerInfo, |
const TargetPassConfig * | TPC | ||
) |
Definition at line 93 of file Combiner.cpp.
References Info.
bool Combiner::combineMachineInstrs | ( | MachineFunction & | MF, |
GISelCSEInfo * | CSEInfo | ||
) |
If CSEInfo is not null, then the Combiner will setup observer for CSEInfo and instantiate a CSEMIRBuilder.
Pass nullptr if CSE is not needed.
Definition at line 98 of file Combiner.cpp.
References llvm::GISelObserverWrapper::addObserver(), assert(), B, Builder, CInfo, llvm::CombinerInfo::combine(), llvm::dbgs(), llvm::GISelWorkList< N >::deferred_insert(), E, llvm::GISelWorkList< N >::empty(), llvm::errs(), llvm::MachineFunctionProperties::FailedISel, llvm::GISelWorkList< N >::finalize(), llvm::MachineFunction::getName(), llvm::MachineFunction::getProperties(), llvm::MachineFunction::getRegInfo(), llvm::MachineFunctionProperties::hasProperty(), llvm::isTriviallyDead(), LLVM_DEBUG, llvm::make_early_inc_range(), MBB, MORE, MRI, llvm::GISelWorkList< N >::pop_back_val(), llvm::post_order(), llvm::reverse(), llvm::salvageDebugInfo(), and llvm::GISelCSEInfo::verify().
|
protected |
Definition at line 40 of file Combiner.h.
Referenced by combineMachineInstrs().
|
protected |
Definition at line 36 of file Combiner.h.
Referenced by combineMachineInstrs().
|
protected |
Definition at line 38 of file Combiner.h.
Referenced by combineMachineInstrs().
|
protected |
Definition at line 39 of file Combiner.h.