CIRCT 20.0.0git
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
BankAffineLoadPattern Struct Reference
Inheritance diagram for BankAffineLoadPattern:
Inheritance graph
[legend]
Collaboration diagram for BankAffineLoadPattern:
Collaboration graph
[legend]

Public Member Functions

 BankAffineLoadPattern (MLIRContext *context, uint64_t bankingFactor, std::optional< int > bankingDimensionOpt, DenseMap< Value, SmallVector< Value > > &memoryToBanks, DenseSet< Value > &oldMemRefVals)
 
LogicalResult matchAndRewrite (mlir::affine::AffineLoadOp loadOp, PatternRewriter &rewriter) const override
 

Private Attributes

unsigned bankingFactor
 
std::optional< int > bankingDimensionOpt
 
DenseMap< Value, SmallVector< Value > > & memoryToBanks
 
DenseSet< Value > & oldMemRefVals
 

Detailed Description

Definition at line 403 of file MemoryBanking.cpp.

Constructor & Destructor Documentation

◆ BankAffineLoadPattern()

BankAffineLoadPattern::BankAffineLoadPattern ( MLIRContext *  context,
uint64_t  bankingFactor,
std::optional< int >  bankingDimensionOpt,
DenseMap< Value, SmallVector< Value > > &  memoryToBanks,
DenseSet< Value > &  oldMemRefVals 
)
inline

Definition at line 405 of file MemoryBanking.cpp.

Member Function Documentation

◆ matchAndRewrite()

LogicalResult BankAffineLoadPattern::matchAndRewrite ( mlir::affine::AffineLoadOp  loadOp,
PatternRewriter &  rewriter 
) const
inlineoverride

Member Data Documentation

◆ bankingDimensionOpt

std::optional<int> BankAffineLoadPattern::bankingDimensionOpt
mutableprivate

Definition at line 484 of file MemoryBanking.cpp.

Referenced by matchAndRewrite().

◆ bankingFactor

unsigned BankAffineLoadPattern::bankingFactor
mutableprivate

Definition at line 483 of file MemoryBanking.cpp.

Referenced by matchAndRewrite().

◆ memoryToBanks

DenseMap<Value, SmallVector<Value> >& BankAffineLoadPattern::memoryToBanks
private

Definition at line 485 of file MemoryBanking.cpp.

Referenced by matchAndRewrite().

◆ oldMemRefVals

DenseSet<Value>& BankAffineLoadPattern::oldMemRefVals
private

Definition at line 486 of file MemoryBanking.cpp.

Referenced by matchAndRewrite().


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