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

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

Inheritance diagram for xilinx::AIE::SequentialPlacer:
Collaboration diagram for xilinx::AIE::SequentialPlacer:

Public Member Functions

 SequentialPlacer (std::optional< int > coresPerCol=std::nullopt, bool mergeLogicalTiles=true, bool spreadUnanchoredTiles=false)
void initialize (DeviceOp device, bool controlOverlay, bool adaptiveOverlay, bool packetSwitched) override
mlir::LogicalResult place (DeviceOp device) override
llvm::StringRef getName () const override
Public Member Functions inherited from xilinx::AIE::Placer
 Placer ()=default
virtual ~Placer ()=default
void setNeighbourCores (llvm::DenseMap< mlir::Operation *, unsigned > keys, llvm::SmallVector< llvm::DenseMap< TileID, unsigned > > neighbours)
std::optional< TileID > getPlacement (mlir::Operation *logicalTile) const
llvm::SmallVector< AllocateInfo > & getAllocates ()

Additional Inherited Members

Public Types inherited from xilinx::AIE::Placer
using AllocateInfo = std::pair<mlir::Operation *, TileID>
using ShareableShimEnds
Static Public Member Functions inherited from xilinx::AIE::Placer
static CollectedOps collectOperations (DeviceOp device)
static llvm::MapVector< mlir::Operation *, std::pair< int, int > > flowChannelDemand (llvm::ArrayRef< FlowOp > flows, llvm::ArrayRef< PacketFlowOp > pktFlows, llvm::ArrayRef< RouteOp > routes, llvm::ArrayRef< DMAChannelAnalysis::ChannelClaim > claims, llvm::DenseMap< mlir::Operation *, llvm::SmallVector< std::pair< int, int > > > *named=nullptr, llvm::DenseMap< mlir::Operation *, mlir::Operation * > *keys=nullptr)
static bool satisfiesConstraints (mlir::Operation *tile, TileID pos)
static Adjacency buildCascadeAdjacency (llvm::ArrayRef< CascadeFlowOp > cascadeFlows)
static Adjacency buildComputePeerAdjacency (llvm::ArrayRef< ObjectFifoCreateOp > objectFifos)
static Adjacency buildSharedMemAdjacency (llvm::ArrayRef< ObjectFifoCreateOp > objectFifos)
static Adjacency buildObjectFifoAdjacency (llvm::ArrayRef< ObjectFifoCreateOp > objectFifos)
static Adjacency buildFlowAdjacency (llvm::ArrayRef< FlowOp > flows, llvm::ArrayRef< PacketFlowOp > pktFlows)
static ShareableShimEnds collectShareableShimEnds (DeviceOp device, llvm::ArrayRef< ObjectFifoCreateOp > objectFifos, const llvm::DenseMap< mlir::Operation *, unsigned > &rank, const llvm::DenseMap< mlir::Operation *, mlir::Operation * > &routeKeys={})
static int shimChannelsSaved (const ShimTransferSpans &spans, llvm::ArrayRef< const ShimSide * > sides, llvm::ArrayRef< mlir::StringAttr > extra, llvm::ArrayRef< int > pinnedHere)
static llvm::DenseMap< mlir::StringAttr, llvm::SmallVector< ShimTransferSpans::Gate > > provenShimGates (DeviceOp device)
Protected Member Functions inherited from xilinx::AIE::Placer
int64_t ddrSpread (llvm::function_ref< std::optional< int >(mlir::Operation *)> columnOf, int weight) const
int64_t ddrGroupSpread (const DdrGroup &group, llvm::function_ref< std::optional< int >(mlir::Operation *)> columnOf, int weight) const
void buildShimModel (DeviceOp device, llvm::ArrayRef< ObjectFifoCreateOp > objectFifos, llvm::ArrayRef< DMAChannelAnalysis::ChannelClaim > claims, const llvm::DenseMap< mlir::Operation *, unsigned > &rank, const llvm::DenseMap< mlir::Operation *, mlir::Operation * > &routeKeys={})
bool overlayChannels (TileID tile) const
OverlayFit overlayAt (TileID at, const PinnedChannelUse &pins, llvm::ArrayRef< PinnedChannels::End > extra, llvm::ArrayRef< mlir::Operation * > tilesHere, const ShimTransferSpans *spans) const
void collectOverlayUses (DeviceOp device)
llvm::SmallVector< mlir::Operation * > overlayTileOps () const
void buildStreamDemand (llvm::ArrayRef< ObjectFifoCreateOp > objectFifos)
void buildStreamNets (DeviceOp device, const CollectedOps &collected)
bool streamOf (const StreamNet &net, llvm::function_ref< std::optional< TileID >(mlir::Operation *)> at, TileID &src, llvm::SmallVectorImpl< TileID > &dsts) const
std::optional< std::pair< mlir::Operation *, std::pair< int, int > > > namedClash (mlir::Operation *tile, llvm::ArrayRef< mlir::Operation * > others) const
mlir::LogicalResult emitNamedClash (mlir::Operation *tile, TileID at, std::pair< mlir::Operation *, std::pair< int, int > > clash) const
Protected Attributes inherited from xilinx::AIE::Placer
llvm::DenseMap< mlir::Operation *, llvm::SmallVector< DMAChannelAnalysis::ChannelClaim > > claimsOf
std::optional< ShimTransferSpans > shimSpans
ShareableShimEnds shareableShimEnds
RuntimeBdIds runtimeBdIds
llvm::SmallVector< DdrGroup > ddrGroups
llvm::DenseMap< mlir::Operation *, llvm::SmallVector< unsigned > > ddrGroupsOf
int ddrShimColumns = 0
ShimMM2SUses overlayUses
llvm::DenseMap< mlir::Operation *, StreamDemand > streamDemand
llvm::DenseMap< mlir::Operation *, llvm::SmallVector< mlir::Operation * > > incomingFifos
llvm::DenseMap< mlir::Operation *, int > broadcastFanout
llvm::SmallVector< StreamNet > streamNets
llvm::DenseMap< mlir::Operation *, llvm::SmallVector< unsigned > > streamNetsOf
llvm::DenseMap< mlir::Operation *, llvm::SmallVector< std::pair< int, int > > > namedChannels
llvm::DenseMap< mlir::Operation *, unsigned > coreKeys
llvm::SmallVector< llvm::DenseMap< TileID, unsigned > > neighbourCores
PlacementResult result
llvm::SmallVector< AllocateInfo > allocates
const AIETargetModel * targetModel = nullptr
bool controlOverlay = false
bool adaptiveOverlay = true
bool packetSwitched = false
TileAvailability availability

Detailed Description

Definition at line 645 of file AIEPlacer.h.

Constructor & Destructor Documentation

◆ SequentialPlacer()

xilinx::AIE::SequentialPlacer::SequentialPlacer ( std::optional< int > coresPerCol = std::nullopt,
bool mergeLogicalTiles = true,
bool spreadUnanchoredTiles = false )
inline

Definition at line 647 of file AIEPlacer.h.

Member Function Documentation

◆ getName()

llvm::StringRef xilinx::AIE::SequentialPlacer::getName ( ) const
inlineoverridevirtual

Implements xilinx::AIE::Placer.

Definition at line 658 of file AIEPlacer.h.

◆ initialize()

void SequentialPlacer::initialize ( DeviceOp device,
bool controlOverlay,
bool adaptiveOverlay,
bool packetSwitched )
overridevirtual

◆ place()


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