LLVM 22.0.0git
Public Member Functions | List of all members
llvm::sandboxir::ScoreBoard Class Reference

#include "llvm/SandboxIR/Region.h"

Public Member Functions

 ScoreBoard (Region &Rgn, 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

Definition at line 25 of file Region.h.

Constructor & Destructor Documentation

◆ ScoreBoard()

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

Definition at line 40 of file Region.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 42 of file Region.h.

References I.

◆ dump() [1/2]

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

Definition at line 32 of file Region.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 51 of file Region.h.

References OS.

◆ getAfterCost()

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

\Returns the cost of the newly added instructions.

Definition at line 46 of file Region.h.

◆ getBeforeCost()

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

\Returns the cost of the Removed instructions.

Definition at line 48 of file Region.h.

Referenced by llvm::sandboxir::TransactionAcceptOrRevert::runOnRegion().

◆ remove()

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

Mark I as a deleted instruction from the region.

Definition at line 20 of file Region.cpp.

References llvm::sandboxir::Region::contains(), and I.


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