LLVM 22.0.0git
llvm::slpvectorizer::BoUpSLP::VLOperands Class Reference

A helper data structure to hold the operands of a vector of instructions. More...

Public Member Functions

 VLOperands (ArrayRef< Value * > RootVL, ArrayRef< ValueList > Operands, const InstructionsState &S, const BoUpSLP &R)
 Initialize with all the operands of the instruction vector RootVL.
ValueList getVL (unsigned OpIdx) const
 \Returns a value vector with the operands across all lanes for the opearnd at OpIdx.
void reorder ()
LLVM_DUMP_METHOD raw_ostreamprint (raw_ostream &OS) const
LLVM_DUMP_METHOD void dump () const
 Debug print.

Static Public Member Functions

static LLVM_DUMP_METHOD StringRef getModeStr (ReorderingMode RMode)
static LLVM_DUMP_METHOD raw_ostreamprintMode (ReorderingMode RMode, raw_ostream &OS)
static LLVM_DUMP_METHOD void dumpMode (ReorderingMode RMode)
 Debug print.

Friends

raw_ostreamoperator<< (raw_ostream &OS, ReorderingMode RMode)

Detailed Description

A helper data structure to hold the operands of a vector of instructions.

This supports a fixed vector length for all operand vectors.

Definition at line 2623 of file SLPVectorizer.cpp.

Constructor & Destructor Documentation

◆ VLOperands()

llvm::slpvectorizer::BoUpSLP::VLOperands::VLOperands ( ArrayRef< Value * > RootVL,
ArrayRef< ValueList > Operands,
const InstructionsState & S,
const BoUpSLP & R )
inline

Initialize with all the operands of the instruction vector RootVL.

Definition at line 3224 of file SLPVectorizer.cpp.

References llvm::slpvectorizer::BoUpSLP::BoUpSLP(), getParent(), and Operands.

Member Function Documentation

◆ dump()

LLVM_DUMP_METHOD void llvm::slpvectorizer::BoUpSLP::VLOperands::dump ( ) const
inline

Debug print.

Definition at line 3436 of file SLPVectorizer.cpp.

References llvm::dbgs(), LLVM_DUMP_METHOD, and print().

◆ dumpMode()

LLVM_DUMP_METHOD void llvm::slpvectorizer::BoUpSLP::VLOperands::dumpMode ( ReorderingMode RMode)
inlinestatic

Debug print.

Definition at line 3409 of file SLPVectorizer.cpp.

References llvm::dbgs(), LLVM_DUMP_METHOD, and printMode().

◆ getModeStr()

LLVM_DUMP_METHOD StringRef llvm::slpvectorizer::BoUpSLP::VLOperands::getModeStr ( ReorderingMode RMode)
inlinestatic

Definition at line 3387 of file SLPVectorizer.cpp.

References LLVM_DUMP_METHOD, and llvm_unreachable.

Referenced by printMode().

◆ getVL()

ValueList llvm::slpvectorizer::BoUpSLP::VLOperands::getVL ( unsigned OpIdx) const
inline

\Returns a value vector with the operands across all lanes for the opearnd at OpIdx.

Definition at line 3234 of file SLPVectorizer.cpp.

References assert(), OpIdx, and llvm::size().

◆ print()

LLVM_DUMP_METHOD raw_ostream & llvm::slpvectorizer::BoUpSLP::VLOperands::print ( raw_ostream & OS) const
inline

Definition at line 3417 of file SLPVectorizer.cpp.

References llvm::raw_ostream::indent(), and LLVM_DUMP_METHOD.

Referenced by dump().

◆ printMode()

LLVM_DUMP_METHOD raw_ostream & llvm::slpvectorizer::BoUpSLP::VLOperands::printMode ( ReorderingMode RMode,
raw_ostream & OS )
inlinestatic

Definition at line 3403 of file SLPVectorizer.cpp.

References getModeStr(), and LLVM_DUMP_METHOD.

Referenced by dumpMode(), and operator<<.

◆ reorder()

◆ operator<<

raw_ostream & operator<< ( raw_ostream & OS,
ReorderingMode RMode )
friend

Definition at line 3413 of file SLPVectorizer.cpp.

References printMode().


The documentation for this class was generated from the following file: