CIRCT  20.0.0git
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, DenseMap< Value, SmallVector< Value >> &memoryToBanks)
 
LogicalResult matchAndRewrite (mlir::affine::AffineLoadOp loadOp, PatternRewriter &rewriter) const override
 

Private Attributes

uint64_t bankingFactor
 
DenseMap< Value, SmallVector< Value > > & memoryToBanks
 

Detailed Description

Definition at line 132 of file MemoryBanking.cpp.

Constructor & Destructor Documentation

◆ BankAffineLoadPattern()

BankAffineLoadPattern::BankAffineLoadPattern ( MLIRContext *  context,
uint64_t  bankingFactor,
DenseMap< Value, SmallVector< Value >> &  memoryToBanks 
)
inline

Definition at line 134 of file MemoryBanking.cpp.

Member Function Documentation

◆ matchAndRewrite()

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

Definition at line 139 of file MemoryBanking.cpp.

References assert(), and circt::calyx::direction::get().

Member Data Documentation

◆ bankingFactor

uint64_t BankAffineLoadPattern::bankingFactor
private

Definition at line 188 of file MemoryBanking.cpp.

◆ memoryToBanks

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

Definition at line 189 of file MemoryBanking.cpp.


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