LLVM  10.0.0svn
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 DataLayout &DL, ScalarEvolution &SE)
 Initialize with all the operands of the instruction vector RootVL. More...
 
ValueList getVL (unsigned OpIdx) const
 a value vector with the operands across all lanes for the opearnd at OpIdx. More...
 
void reorder ()
 
LLVM_DUMP_METHOD raw_ostreamprint (raw_ostream &OS) const
 
LLVM_DUMP_METHOD void dump () const
 Debug print. More...
 

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. More...
 

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

Constructor & Destructor Documentation

◆ VLOperands()

llvm::slpvectorizer::BoUpSLP::VLOperands::VLOperands ( ArrayRef< Value *>  RootVL,
const DataLayout DL,
ScalarEvolution SE 
)
inline

Initialize with all the operands of the instruction vector RootVL.

Definition at line 952 of file SLPVectorizer.cpp.

Member Function Documentation

◆ dump()

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

Debug print.

Definition at line 1120 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 1093 of file SLPVectorizer.cpp.

References llvm::dbgs().

◆ getModeStr()

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

◆ getVL()

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

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

Definition at line 961 of file SLPVectorizer.cpp.

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

Referenced by llvm::slpvectorizer::BoUpSLP::getTreeCost().

◆ print()

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

Definition at line 1101 of file SLPVectorizer.cpp.

References llvm::raw_ostream::indent().

◆ printMode()

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

Definition at line 1087 of file SLPVectorizer.cpp.

◆ 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 1097 of file SLPVectorizer.cpp.


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