LLVM  16.0.0git
Public Member Functions | Public Attributes | Friends | List of all members
llvm::slpvectorizer::BoUpSLP::EdgeInfo Struct Reference

This structure holds any data we need about the edges being traversed during buildTree_rec(). More...

Collaboration diagram for llvm::slpvectorizer::BoUpSLP::EdgeInfo:
Collaboration graph
[legend]

Public Member Functions

 EdgeInfo ()=default
 
 EdgeInfo (TreeEntry *UserTE, unsigned EdgeIdx)
 
void dump (raw_ostream &OS) const
 Debug print. More...
 
LLVM_DUMP_METHOD void dump () const
 

Public Attributes

TreeEntry * UserTE = nullptr
 The user TreeEntry. More...
 
unsigned EdgeIdx = UINT_MAX
 The operand index of the use. More...
 

Friends

raw_ostreamoperator<< (raw_ostream &OS, const BoUpSLP::EdgeInfo &EI)
 

Detailed Description

This structure holds any data we need about the edges being traversed during buildTree_rec().

We keep track of: (i) the user TreeEntry index, and (ii) the index of the edge.

Definition at line 1133 of file SLPVectorizer.cpp.

Constructor & Destructor Documentation

◆ EdgeInfo() [1/2]

llvm::slpvectorizer::BoUpSLP::EdgeInfo::EdgeInfo ( )
default

◆ EdgeInfo() [2/2]

llvm::slpvectorizer::BoUpSLP::EdgeInfo::EdgeInfo ( TreeEntry *  UserTE,
unsigned  EdgeIdx 
)
inline

Definition at line 1135 of file SLPVectorizer.cpp.

Member Function Documentation

◆ dump() [1/2]

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

Definition at line 1152 of file SLPVectorizer.cpp.

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

Referenced by dump().

◆ dump() [2/2]

void llvm::slpvectorizer::BoUpSLP::EdgeInfo::dump ( raw_ostream OS) const
inline

Debug print.

Definition at line 1148 of file SLPVectorizer.cpp.

References llvm::to_string().

Friends And Related Function Documentation

◆ operator<<

raw_ostream& operator<< ( raw_ostream OS,
const BoUpSLP::EdgeInfo EI 
)
friend

Definition at line 1142 of file SLPVectorizer.cpp.

Member Data Documentation

◆ EdgeIdx

unsigned llvm::slpvectorizer::BoUpSLP::EdgeInfo::EdgeIdx = UINT_MAX

The operand index of the use.

Definition at line 1140 of file SLPVectorizer.cpp.

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

◆ UserTE

TreeEntry* llvm::slpvectorizer::BoUpSLP::EdgeInfo::UserTE = nullptr

The user TreeEntry.

Definition at line 1138 of file SLPVectorizer.cpp.

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


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