LLVM: llvm::sandboxir::InstrMaps Class Reference (original) (raw)

Maps the original instructions to the vectorized instrs and the reverse. More...

#include "[llvm/Transforms/Vectorize/SandboxVectorizer/InstrMaps.h](InstrMaps%5F8h%5Fsource.html)"

Public Member Functions
InstrMaps ()=default
~InstrMaps ()=default
Action * getVectorForOrig (Value *Orig) const
\Returns the vector value that we got from vectorizing Orig, or nullptr if not found.
std::optional< unsigned > getOrigLane (Action *Vec, Value *Orig) const
\Returns the lane of Orig before it got vectorized into Vec, or nullopt if not found.
void registerVector (ArrayRef< Value * > Origs, Action *Vec)
Update the map to reflect that Origs got vectorized into Vec.
void clear ()
void print (raw_ostream &OS) const
LLVM_DUMP_METHOD void dump () const

Maps the original instructions to the vectorized instrs and the reverse.

For now an original instr can only map to a single vector.

Definition at line 50 of file InstrMaps.h.

llvm::sandboxir::InstrMaps::InstrMaps ( ) default

~InstrMaps()

llvm::sandboxir::InstrMaps::~InstrMaps ( ) default

clear()

void llvm::sandboxir::InstrMaps::clear ( ) inline

dump()

void llvm::sandboxir::InstrMaps::dump ( ) const

getOrigLane()

std::optional< unsigned > llvm::sandboxir::InstrMaps::getOrigLane ( Action * Vec, Value * Orig ) const inline

\Returns the lane of Orig before it got vectorized into Vec, or nullopt if not found.

Definition at line 72 of file InstrMaps.h.

getVectorForOrig()

Action * llvm::sandboxir::InstrMaps::getVectorForOrig ( Value * Orig) const inline

\Returns the vector value that we got from vectorizing Orig, or nullptr if not found.

Definition at line 66 of file InstrMaps.h.

print()

void llvm::sandboxir::InstrMaps::print ( raw_ostream & OS) const inline

registerVector()


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