8#ifndef AIE_DIALECT_AIE_TRANSFORMS_AIEPOOLLOCKS_H
9#define AIE_DIALECT_AIE_TRANSFORMS_AIEPOOLLOCKS_H
14#include "llvm/ADT/DenseSet.h"
15#include "llvm/ADT/SmallVector.h"
16#include "llvm/ADT/StringMap.h"
31 static bool needsLocks(
bool unsynchronized, int64_t full, int64_t depth,
32 bool filled,
bool rearmed) {
35 return !unsynchronized && (full != depth || full <= 0 || filled || rearmed);
39 const llvm::StringMap<llvm::SmallVector<AIEX::DmaChannelResetForOp>> &
45 llvm::DenseSet<mlir::Operation *> filled;
46 llvm::StringMap<llvm::SmallVector<AIEX::DmaChannelResetForOp>> rearmsByFifo;
bool needsLocks(ObjectFifoPoolOp pool) const
Whether pool gets locks.
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.
PoolLocks(DeviceOp device)
const llvm::StringMap< llvm::SmallVector< AIEX::DmaChannelResetForOp > > & rearms() const
The aiex.dma_channel_reset_for ops re-arming each fifo, by fifo name.