LLVM 20.0.0git
Classes | Public Types | Public Member Functions | List of all members
llvm::sandboxir::SeedContainer Class Reference

Class to conveniently track Seeds within SeedBundles. More...

#include "llvm/Transforms/Vectorize/SandboxVectorizer/SeedCollector.h"

Classes

class  iterator
 

Public Types

using const_iterator = BundleMapT::const_iterator
 

Public Member Functions

 SeedContainer (ScalarEvolution &SE)
 
template<typename LoadOrStoreT >
void insert (LoadOrStoreT *LSI)
 
bool erase (Instruction *I)
 
bool erase (const KeyT &Key)
 
iterator begin ()
 
iterator end ()
 
unsigned size () const
 
void print (raw_ostream &OS) const
 
LLVM_DUMP_METHOD void dump () const
 

Detailed Description

Class to conveniently track Seeds within SeedBundles.

Saves newly collected seeds in the proper bundle. Supports constant-time removal, as seeds and entire bundles are vectorized and marked used to signify removal. Iterators skip bundles that are completely used.

Definition at line 174 of file SeedCollector.h.

Member Typedef Documentation

◆ const_iterator

Definition at line 268 of file SeedCollector.h.

Constructor & Destructor Documentation

◆ SeedContainer()

llvm::sandboxir::SeedContainer::SeedContainer ( ScalarEvolution SE)
inline

Definition at line 196 of file SeedCollector.h.

Member Function Documentation

◆ begin()

iterator llvm::sandboxir::SeedContainer::begin ( )
inline

◆ dump()

LLVM_DUMP_METHOD void llvm::sandboxir::SeedContainer::dump ( ) const

Definition at line 139 of file SeedCollector.cpp.

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

◆ end()

iterator llvm::sandboxir::SeedContainer::end ( )
inline

◆ erase() [1/2]

bool llvm::sandboxir::SeedContainer::erase ( const KeyT &  Key)
inline

◆ erase() [2/2]

bool llvm::sandboxir::SeedContainer::erase ( Instruction I)

◆ insert()

template<typename LoadOrStoreT >
template void llvm::sandboxir::SeedContainer::insert< StoreInst > ( LoadOrStoreT *  LSI)

◆ print()

void llvm::sandboxir::SeedContainer::print ( raw_ostream OS) const

Definition at line 123 of file SeedCollector.cpp.

References I, and OS.

Referenced by dump(), and llvm::sandboxir::SeedCollector::print().

◆ size()

unsigned llvm::sandboxir::SeedContainer::size ( ) const
inline

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