MLIR-AIE 1.4.5.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, uint32_t alignment=1)
void assignBdId (uint32_t bdId)
bool bdIdAlreadyAssigned (uint32_t bdId)
void freeBdId (uint32_t bdId)

Public Attributes

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

Detailed Description

Definition at line 18 of file AIEAssignBufferDescriptorIDs.h.

Constructor & Destructor Documentation

◆ BdIdGenerator()

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

Definition at line 43 of file AIEAssignBufferDescriptorIDs.cpp.

References col, row, and targetModel.

Member Function Documentation

◆ assignBdId()

void BdIdGenerator::assignBdId ( uint32_t bdId)

◆ bdIdAlreadyAssigned()

bool BdIdGenerator::bdIdAlreadyAssigned ( uint32_t bdId)

◆ freeBdId()

void BdIdGenerator::freeBdId ( uint32_t bdId)

Definition at line 73 of file AIEAssignBufferDescriptorIDs.cpp.

References alreadyAssigned.

◆ nextBdId()

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

Member Data Documentation

◆ alreadyAssigned

std::set<uint32_t> BdIdGenerator::alreadyAssigned

Definition at line 22 of file AIEAssignBufferDescriptorIDs.h.

Referenced by assignBdId(), bdIdAlreadyAssigned(), and freeBdId().

◆ col

const int BdIdGenerator::col

Definition at line 19 of file AIEAssignBufferDescriptorIDs.h.

Referenced by BdIdGenerator(), and nextBdId().

◆ row

const int BdIdGenerator::row

Definition at line 20 of file AIEAssignBufferDescriptorIDs.h.

Referenced by BdIdGenerator(), and nextBdId().

◆ targetModel

const AIETargetModel& BdIdGenerator::targetModel

Definition at line 21 of file AIEAssignBufferDescriptorIDs.h.

Referenced by BdIdGenerator(), and nextBdId().


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