MLIR-AIE 1.4.6.dev
xilinx::AIE::PoolLocks Class Reference

Which of a device's objectFIFO pools get locks, read once from its endpoints and its aiex.dma_channel_reset_for ops. More...

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

Public Member Functions

 PoolLocks (DeviceOp device)
bool needsLocks (ObjectFifoPoolOp pool) const
 Whether pool gets locks.
const llvm::StringMap< llvm::SmallVector< AIEX::DmaChannelResetForOp > > & rearms () const
 The aiex.dma_channel_reset_for ops re-arming each fifo, by fifo name.

Static Public Member Functions

static bool needsLocks (bool unsynchronized, int64_t full, int64_t depth, bool filled, bool rearmed)
 The same rule on plain facts, for the pools the split has not made yet.

Detailed Description

Which of a device's objectFIFO pools get locks, read once from its endpoints and its aiex.dma_channel_reset_for ops.

Definition at line 22 of file AIEPoolLocks.h.

Constructor & Destructor Documentation

◆ PoolLocks()

PoolLocks::PoolLocks ( DeviceOp device)
explicit

Definition at line 14 of file AIEPoolLocks.cpp.

Member Function Documentation

◆ needsLocks() [1/2]

bool xilinx::AIE::PoolLocks::needsLocks ( bool unsynchronized,
int64_t full,
int64_t depth,
bool filled,
bool rearmed )
inlinestatic

The same rule on plain facts, for the pools the split has not made yet.

Definition at line 31 of file AIEPoolLocks.h.

◆ needsLocks() [2/2]

bool PoolLocks::needsLocks ( ObjectFifoPoolOp pool) const

Whether pool gets locks.

One with synchronization disabled does not, nor one that starts full, is never refilled and is not re-armed each launch: it holds constants its readers have nothing to wait for.

Definition at line 33 of file AIEPoolLocks.cpp.

References needsLocks().

Referenced by needsLocks().

◆ rearms()

const llvm::StringMap< llvm::SmallVector< AIEX::DmaChannelResetForOp > > & xilinx::AIE::PoolLocks::rearms ( ) const
inline

The aiex.dma_channel_reset_for ops re-arming each fifo, by fifo name.

Definition at line 40 of file AIEPoolLocks.h.


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