LLVM 20.0.0git
|
This class provides utilities for finding source registers of specific bit ranges in an artifact. More...
#include "llvm/CodeGen/GlobalISel/LegalizationArtifactCombiner.h"
Public Member Functions | |
ArtifactValueFinder (MachineRegisterInfo &Mri, MachineIRBuilder &Builder, const LegalizerInfo &Info) | |
Register | findValueFromDef (Register DefReg, unsigned StartBit, unsigned Size) |
Try to find a source of the value defined in the def DefReg , starting at position StartBit with size Size . | |
bool | tryCombineUnmergeDefs (GUnmerge &MI, GISelChangeObserver &Observer, SmallVectorImpl< Register > &UpdatedDefs) |
Try to combine the defs of an unmerge MI by attempting to find values that provides the bits for each def reg. | |
GUnmerge * | findUnmergeThatDefinesReg (Register Reg, unsigned Size, unsigned &DefOperandIdx) |
bool | isSequenceFromUnmerge (GMergeLikeInstr &MI, unsigned MergeStartIdx, GUnmerge *Unmerge, unsigned UnmergeIdxStart, unsigned NumElts, unsigned EltSize, bool AllowUndef) |
bool | tryCombineMergeLike (GMergeLikeInstr &MI, SmallVectorImpl< MachineInstr * > &DeadInsts, SmallVectorImpl< Register > &UpdatedDefs, GISelChangeObserver &Observer) |
This class provides utilities for finding source registers of specific bit ranges in an artifact.
The routines can look through the source registers if they're other artifacts to try to find a non-artifact source of a value.
Definition at line 610 of file LegalizationArtifactCombiner.h.
|
inline |
Definition at line 877 of file LegalizationArtifactCombiner.h.
|
inline |
Definition at line 924 of file LegalizationArtifactCombiner.h.
|
inline |
Try to find a source of the value defined in the def DefReg
, starting at position StartBit
with size Size
.
Definition at line 885 of file LegalizationArtifactCombiner.h.
References Register, and Size.
Referenced by llvm::LegalizationArtifactCombiner::tryCombineTrunc().
|
inline |
Definition at line 939 of file LegalizationArtifactCombiner.h.
|
inline |
Definition at line 961 of file LegalizationArtifactCombiner.h.
References llvm::MachineIRBuilder::buildMergeLikeInstr(), llvm::MachineIRBuilder::buildUnmerge(), llvm::getCoverTy(), llvm::LLT::getSizeInBits(), llvm::LLT::isVector(), MI, MRI, llvm::SmallVectorTemplateBase< T, bool >::push_back(), and llvm::MachineIRBuilder::setInstrAndDebugLoc().
Referenced by llvm::LegalizationArtifactCombiner::tryCombineInstruction().
|
inline |
Try to combine the defs of an unmerge MI
by attempting to find values that provides the bits for each def reg.
Definition at line 895 of file LegalizationArtifactCombiner.h.
References llvm::SmallBitVector::all(), llvm::GISelChangeObserver::changedInstr(), llvm::GISelChangeObserver::changingInstr(), llvm::LLT::getSizeInBits(), MI, and MRI.
Referenced by llvm::LegalizationArtifactCombiner::tryCombineUnmergeValues().