MLIR-AIE 1.4.6.dev
BdIdGenerator Struct Reference

#include "aie/Dialect/AIE/Transforms/AIEAssignBufferDescriptorIDs.h"

Collaboration diagram for BdIdGenerator:

Public Member Functions

 BdIdGenerator (int col, int row, const AIETargetModel &targetModel)
std::optional< uint32_t > nextBdId (int channelIndex, DMAChannelDir dir, uint32_t alignment=1)
void assignBdId (int channelIndex, DMAChannelDir dir, uint32_t bdId)
bool bdIdAlreadyAssigned (int channelIndex, DMAChannelDir dir, uint32_t bdId)
void freeBdId (int channelIndex, DMAChannelDir dir, uint32_t bdId)
void assignBdId (uint32_t bdId)
bool bdIdAlreadyAssigned (uint32_t bdId)
void freeBdId (uint32_t bdId)
void reserveBdId (int channelIndex, DMAChannelDir dir, uint32_t bdId)
void reserveBdId (uint32_t bdId)
bool isReserved (int channelIndex, DMAChannelDir dir, uint32_t bdId) const
bool isReserved (uint32_t bdId) const
bool holdsTileWide (int channelIndex, DMAChannelDir dir, uint32_t bdId) const

Public Attributes

const int col
const int row
const AIETargetModel & targetModel
std::set< std::pair< uint32_t, uint32_t > > alreadyAssigned
std::set< std::pair< uint32_t, uint32_t > > reserved

Detailed Description

Definition at line 25 of file AIEAssignBufferDescriptorIDs.h.

Constructor & Destructor Documentation

◆ BdIdGenerator()

BdIdGenerator::BdIdGenerator ( int col,
int row,
const AIETargetModel & targetModel )

Definition at line 47 of file AIEAssignBufferDescriptorIDs.cpp.

References col, row, and targetModel.

Member Function Documentation

◆ assignBdId() [1/2]

void BdIdGenerator::assignBdId ( int channelIndex,
DMAChannelDir dir,
uint32_t bdId )

◆ assignBdId() [2/2]

void BdIdGenerator::assignBdId ( uint32_t bdId)

Definition at line 153 of file AIEAssignBufferDescriptorIDs.cpp.

References alreadyAssigned.

◆ bdIdAlreadyAssigned() [1/2]

bool BdIdGenerator::bdIdAlreadyAssigned ( int channelIndex,
DMAChannelDir dir,
uint32_t bdId )

◆ bdIdAlreadyAssigned() [2/2]

bool BdIdGenerator::bdIdAlreadyAssigned ( uint32_t bdId)

Definition at line 163 of file AIEAssignBufferDescriptorIDs.cpp.

References alreadyAssigned.

◆ freeBdId() [1/2]

void BdIdGenerator::freeBdId ( int channelIndex,
DMAChannelDir dir,
uint32_t bdId )

◆ freeBdId() [2/2]

void BdIdGenerator::freeBdId ( uint32_t bdId)

Definition at line 158 of file AIEAssignBufferDescriptorIDs.cpp.

References alreadyAssigned.

◆ holdsTileWide()

bool BdIdGenerator::holdsTileWide ( int channelIndex,
DMAChannelDir dir,
uint32_t bdId ) const

Definition at line 169 of file AIEAssignBufferDescriptorIDs.cpp.

References col, row, and targetModel.

Referenced by AIEAssignBufferDescriptorIDsPass::runOnOperation().

◆ isReserved() [1/2]

bool BdIdGenerator::isReserved ( int channelIndex,
DMAChannelDir dir,
uint32_t bdId ) const

Definition at line 140 of file AIEAssignBufferDescriptorIDs.cpp.

References isReserved(), and reserved.

Referenced by isReserved().

◆ isReserved() [2/2]

bool BdIdGenerator::isReserved ( uint32_t bdId) const

Definition at line 147 of file AIEAssignBufferDescriptorIDs.cpp.

References reserved.

◆ nextBdId()

std::optional< uint32_t > BdIdGenerator::nextBdId ( int channelIndex,
DMAChannelDir dir,
uint32_t alignment = 1 )

◆ reserveBdId() [1/2]

void BdIdGenerator::reserveBdId ( int channelIndex,
DMAChannelDir dir,
uint32_t bdId )

Definition at line 127 of file AIEAssignBufferDescriptorIDs.cpp.

References reserveBdId(), and reserved.

Referenced by reserveBdId().

◆ reserveBdId() [2/2]

void BdIdGenerator::reserveBdId ( uint32_t bdId)

Definition at line 135 of file AIEAssignBufferDescriptorIDs.cpp.

References reserved.

Member Data Documentation

◆ alreadyAssigned

std::set<std::pair<uint32_t, uint32_t> > BdIdGenerator::alreadyAssigned

◆ col

const int BdIdGenerator::col

Definition at line 26 of file AIEAssignBufferDescriptorIDs.h.

Referenced by BdIdGenerator(), holdsTileWide(), and nextBdId().

◆ reserved

std::set<std::pair<uint32_t, uint32_t> > BdIdGenerator::reserved

◆ row

const int BdIdGenerator::row

Definition at line 27 of file AIEAssignBufferDescriptorIDs.h.

Referenced by BdIdGenerator(), holdsTileWide(), and nextBdId().

◆ targetModel

const AIETargetModel& BdIdGenerator::targetModel

Definition at line 28 of file AIEAssignBufferDescriptorIDs.h.

Referenced by BdIdGenerator(), holdsTileWide(), and nextBdId().


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