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

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

Inheritance diagram for xilinx::AIE::SAPlacer:
Collaboration diagram for xilinx::AIE::SAPlacer:

Public Member Functions

 SAPlacer (unsigned seed=0, SAConfig config={})
mlir::LogicalResult place (DeviceOp device) override
llvm::StringRef getName () const override
int getFinalCost () const
int getFinalLockGroups () const
int getFinalLockPenalty () const
bool getFinalLockStopped () const
Public Member Functions inherited from xilinx::AIE::Placer
 Placer ()=default
virtual ~Placer ()=default
virtual void initialize (DeviceOp device, bool controlOverlay, bool adaptiveOverlay, bool packetSwitched)
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 ()

Static Public Member Functions

static bool isShimEndType (std::optional< AIETileType > type)
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)

Additional Inherited Members

Public Types inherited from xilinx::AIE::Placer
using AllocateInfo = std::pair<mlir::Operation *, TileID>
using ShareableShimEnds
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 1183 of file AIEPlacer.h.

Constructor & Destructor Documentation

◆ SAPlacer()

xilinx::AIE::SAPlacer::SAPlacer ( unsigned seed = 0,
SAConfig config = {} )
inlineexplicit

Definition at line 1185 of file AIEPlacer.h.

Member Function Documentation

◆ getFinalCost()

int xilinx::AIE::SAPlacer::getFinalCost ( ) const
inline

Definition at line 1190 of file AIEPlacer.h.

◆ getFinalLockGroups()

int xilinx::AIE::SAPlacer::getFinalLockGroups ( ) const
inline

Definition at line 1191 of file AIEPlacer.h.

◆ getFinalLockPenalty()

int xilinx::AIE::SAPlacer::getFinalLockPenalty ( ) const
inline

Definition at line 1192 of file AIEPlacer.h.

◆ getFinalLockStopped()

bool xilinx::AIE::SAPlacer::getFinalLockStopped ( ) const
inline

Definition at line 1193 of file AIEPlacer.h.

◆ getName()

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

Implements xilinx::AIE::Placer.

Definition at line 1189 of file AIEPlacer.h.

◆ isShimEndType()

bool xilinx::AIE::SAPlacer::isShimEndType ( std::optional< AIETileType > type)
inlinestatic

Definition at line 1198 of file AIEPlacer.h.

◆ place()

LogicalResult SAPlacer::place ( DeviceOp device)
overridevirtual

Implements xilinx::AIE::Placer.

Definition at line 2451 of file AIESAPlacer.cpp.


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