LLVM 23.0.0git
llvm::sandboxir::ScoreBoard Class Reference

Vectorization Score (cost) tracking class. More...

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

Public Member Functions

 ScoreBoard (Region &Rgn, const TargetTransformInfo &TTI)
void add (Instruction *I)
 Mark I as a newly added instruction to the region.
LLVM_ABI void remove (Instruction *I)
 Mark I as a deleted instruction from the region.
InstructionCost getAfterCost () const
 \Returns the cost of the newly added instructions.
InstructionCost getBeforeCost () const
 \Returns the cost of the Removed instructions.
void dump (raw_ostream &OS) const
LLVM_DUMP_METHOD void dump () const

Detailed Description

Vectorization Score (cost) tracking class.

Definition at line 21 of file RegionWithScore.h.

Constructor & Destructor Documentation

◆ ScoreBoard()

llvm::sandboxir::ScoreBoard::ScoreBoard ( Region & Rgn,
const TargetTransformInfo & TTI )
inline

Definition at line 36 of file RegionWithScore.h.

Member Function Documentation

◆ add()

void llvm::sandboxir::ScoreBoard::add ( Instruction * I)
inline

Mark I as a newly added instruction to the region.

Definition at line 39 of file RegionWithScore.h.

References I.

◆ dump() [1/2]

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

Definition at line 32 of file RegionWithScore.cpp.

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

Referenced by dump().

◆ dump() [2/2]

void llvm::sandboxir::ScoreBoard::dump ( raw_ostream & OS) const
inline

Definition at line 48 of file RegionWithScore.h.

◆ getAfterCost()

InstructionCost llvm::sandboxir::ScoreBoard::getAfterCost ( ) const
inline

\Returns the cost of the newly added instructions.

Definition at line 43 of file RegionWithScore.h.

◆ getBeforeCost()

InstructionCost llvm::sandboxir::ScoreBoard::getBeforeCost ( ) const
inline

\Returns the cost of the Removed instructions.

Definition at line 45 of file RegionWithScore.h.

◆ remove()

void llvm::sandboxir::ScoreBoard::remove ( Instruction * I)

Mark I as a deleted instruction from the region.

Definition at line 20 of file RegionWithScore.cpp.

References I.


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