|
MLIR-AIE 1.4.6.dev
|
#include "aie/Dialect/AIE/Transforms/AIEPlacer.h"
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 |
Definition at line 645 of file AIEPlacer.h.
|
inline |
Definition at line 647 of file AIEPlacer.h.
|
inlineoverridevirtual |
Implements xilinx::AIE::Placer.
Definition at line 658 of file AIEPlacer.h.
|
overridevirtual |
Reimplemented from xilinx::AIE::Placer.
Definition at line 133 of file AIEPlacer.cpp.
References xilinx::AIE::Placer::adaptiveOverlay, xilinx::AIE::Placer::availability, xilinx::AIE::Placer::controlOverlay, xilinx::AIE::Placer::initialize(), xilinx::AIE::Placer::packetSwitched, and xilinx::AIE::Placer::targetModel.
|
overridevirtual |
Implements xilinx::AIE::Placer.
Definition at line 212 of file AIEPlacer.cpp.
References xilinx::AIE::Placer::availability, xilinx::AIE::Placer::broadcastFanout, xilinx::AIE::Placer::buildCascadeAdjacency(), xilinx::AIE::Placer::buildComputePeerAdjacency(), xilinx::AIE::Placer::buildSharedMemAdjacency(), xilinx::AIE::Placer::buildShimModel(), xilinx::AIE::Placer::buildStreamDemand(), xilinx::AIE::Placer::buildStreamNets(), xilinx::AIE::Placer::claimsOf, xilinx::AIE::Placer::collectOperations(), DEBUG_TYPE, xilinx::AIE::Placer::flowChannelDemand(), xilinx::AIE::forEachPeer(), xilinx::AIE::DMAChannelAnalysis::getChannelClaims(), xilinx::AIE::getDMACapacity(), xilinx::AIE::Placer::namedChannels, xilinx::AIE::Placer::overlayTileOps(), xilinx::AIE::Placer::streamDemand, xilinx::AIE::Placer::streamNets, and xilinx::AIE::Placer::targetModel.