CIRCT 20.0.0git
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
PlacementDB Class Reference
Collaboration diagram for PlacementDB:
Collaboration graph
[legend]

Public Member Functions

 PlacementDB (MlirModule top, PrimitiveDB *seed)
 
 ~PlacementDB ()
 
MlirOperation place (MlirOperation instOp, MlirAttribute loc, std::string subpath, MlirLocation srcLoc)
 
void removePlacement (MlirOperation locOp)
 
bool movePlacement (MlirOperation locOp, MlirAttribute newLoc)
 
MlirOperation getInstanceAt (MlirAttribute loc)
 
nb::handle getNearestFreeInColumn (PrimitiveType prim, uint64_t column, uint64_t nearestToY)
 
void walkPlacements (nb::callable pycb, std::tuple< nb::object, nb::object, nb::object, nb::object > bounds, nb::object prim, nb::object walkOrder)
 

Private Attributes

CirctMSFTPlacementDB db
 

Detailed Description

Definition at line 46 of file MSFTModule.cpp.

Constructor & Destructor Documentation

◆ PlacementDB()

PlacementDB::PlacementDB ( MlirModule  top,
PrimitiveDB seed 
)
inline

Definition at line 48 of file MSFTModule.cpp.

References circtMSFTCreatePlacementDB(), PrimitiveDB::db, and db.

◆ ~PlacementDB()

PlacementDB::~PlacementDB ( )
inline

Definition at line 52 of file MSFTModule.cpp.

References circtMSFTDeletePlacementDB(), and db.

Member Function Documentation

◆ getInstanceAt()

MlirOperation PlacementDB::getInstanceAt ( MlirAttribute  loc)
inline

Definition at line 65 of file MSFTModule.cpp.

References circtMSFTPlacementDBGetInstanceAt(), and db.

◆ getNearestFreeInColumn()

PhysLocationAttr PlacementDB::getNearestFreeInColumn ( PrimitiveType  prim,
uint64_t  column,
uint64_t  nearestToY 
)
inline

◆ movePlacement()

bool PlacementDB::movePlacement ( MlirOperation  locOp,
MlirAttribute  newLoc 
)
inline

Definition at line 61 of file MSFTModule.cpp.

References circtMSFTPlacementDBMovePlacement(), and db.

◆ place()

MlirOperation PlacementDB::place ( MlirOperation  instOp,
MlirAttribute  loc,
std::string  subpath,
MlirLocation  srcLoc 
)
inline

Definition at line 53 of file MSFTModule.cpp.

References circtMSFTPlacementDBPlace(), and db.

◆ removePlacement()

void PlacementDB::removePlacement ( MlirOperation  locOp)
inline

Definition at line 58 of file MSFTModule.cpp.

References circtMSFTPlacementDBRemovePlacement(), and db.

◆ walkPlacements()

void PlacementDB::walkPlacements ( nb::callable  pycb,
std::tuple< nb::object, nb::object, nb::object, nb::object >  bounds,
nb::object  prim,
nb::object  walkOrder 
)
inline

Definition at line 77 of file MSFTModule.cpp.

References circtMSFTPlacementDBWalkPlacements(), db, and NONE.

Member Data Documentation

◆ db

CirctMSFTPlacementDB PlacementDB::db
private

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