LLVM 19.0.0git
Classes | Public Member Functions | Static Public Member Functions | Friends | List of all members
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, 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 1590 of file SLPVectorizer.cpp.

Constructor & Destructor Documentation

◆ VLOperands()

llvm::slpvectorizer::BoUpSLP::VLOperands::VLOperands ( ArrayRef< Value * >  RootVL,
const BoUpSLP R 
)
inline

Initialize with all the operands of the instruction vector RootVL.

Definition at line 2081 of file SLPVectorizer.cpp.

References DL.

Member Function Documentation

◆ dump()

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

Debug print.

Definition at line 2286 of file SLPVectorizer.cpp.

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

◆ dumpMode()

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

Debug print.

Definition at line 2259 of file SLPVectorizer.cpp.

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

◆ getModeStr()

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

Definition at line 2237 of file SLPVectorizer.cpp.

References 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 2089 of file SLPVectorizer.cpp.

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

◆ print()

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

Definition at line 2267 of file SLPVectorizer.cpp.

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

Referenced by dump().

◆ printMode()

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

Definition at line 2253 of file SLPVectorizer.cpp.

References getModeStr(), and OS.

Referenced by dumpMode().

◆ reorder()

void llvm::slpvectorizer::BoUpSLP::VLOperands::reorder ( )
inline

Friends And Related Function Documentation

◆ operator<<

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

Definition at line 2263 of file SLPVectorizer.cpp.


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