11#ifndef AIE_C_TARGETMODEL_H
12#define AIE_C_TARGETMODEL_H
33#define DEFINE_C_API_STRUCT(name, storage) \
37 typedef struct name name
33#define DEFINE_C_API_STRUCT(name, storage) \ …
41#undef DEFINE_C_API_STRUCT
46MLIR_CAPI_EXPORTED uint32_t
70MLIR_CAPI_EXPORTED
bool
74 int src_col,
int src_row,
75 int dst_col,
int dst_row);
78 int src_col,
int src_row,
79 int dst_col,
int dst_row);
82 int src_col,
int src_row,
83 int dst_col,
int dst_row);
86 int src_col,
int src_row,
87 int dst_col,
int dst_row);
90 int src_col,
int src_row,
91 int dst_col,
int dst_row);
94 int src_col,
int src_row,
95 int dst_col,
int dst_row);
98 int src_col,
int src_row,
99 int dst_col,
int dst_row);
102 int src_col,
int src_row,
103 int dst_col,
int dst_row);
106 int src_col,
int src_row,
107 int dst_col,
int dst_row);
109MLIR_CAPI_EXPORTED
bool
111 int src_row,
int dst_col,
int dst_row);
113MLIR_CAPI_EXPORTED uint32_t
116MLIR_CAPI_EXPORTED uint32_t
119MLIR_CAPI_EXPORTED uint32_t
122MLIR_CAPI_EXPORTED uint32_t
125MLIR_CAPI_EXPORTED uint32_t
128MLIR_CAPI_EXPORTED uint32_t
134MLIR_CAPI_EXPORTED uint32_t
137MLIR_CAPI_EXPORTED uint32_t
140MLIR_CAPI_EXPORTED uint32_t
146MLIR_CAPI_EXPORTED uint32_t
149MLIR_CAPI_EXPORTED uint32_t
MLIR_CAPI_EXPORTED bool aieTargetModelIsWest(AieTargetModel targetModel, int src_col, int src_row, int dst_col, int dst_row)
MLIR_CAPI_EXPORTED uint32_t aieTargetModelGetMemWestBaseAddress(AieTargetModel targetModel)
MLIR_CAPI_EXPORTED int aieTargetModelColumns(AieTargetModel targetModel)
Returns the number of columns in the target model.
MLIR_CAPI_EXPORTED uint32_t aieTargetModelGetLocalMemorySize(AieTargetModel targetModel)
MLIR_CAPI_EXPORTED int aieTargetModelRows(AieTargetModel targetModel)
Returns the number of rows in the target model.
MLIR_CAPI_EXPORTED bool aieTargetModelIsMemTile(AieTargetModel targetModel, int col, int row)
MLIR_CAPI_EXPORTED uint32_t aieTargetModelGetNumBanks(AieTargetModel targetModel, int col, int row)
MLIR_CAPI_EXPORTED uint32_t aieGetTargetModelAddressGenGranularity(AieTargetModel targetModel)
Returns the data bus width for the target model.
MLIR_CAPI_EXPORTED uint32_t aieTargetModelGetNumLocks(AieTargetModel targetModel, int col, int row)
#define DEFINE_C_API_STRUCT(name, storage)
MLIR_CAPI_EXPORTED bool aieTargetModelIsMemEast(AieTargetModel targetModel, int src_col, int src_row, int dst_col, int dst_row)
MLIR_CAPI_EXPORTED bool aieTargetModelIsInternal(AieTargetModel targetModel, int src_col, int src_row, int dst_col, int dst_row)
MLIR_CAPI_EXPORTED bool aieTargetModelIsNPU(AieTargetModel targetModel)
Returns true if this is an NPU target model.
MLIR_CAPI_EXPORTED bool aieTargetModelIsLegalMemAffinity(AieTargetModel targetModel, int src_col, int src_row, int dst_col, int dst_row)
MLIR_CAPI_EXPORTED uint32_t aieTargetModelGetNumBDs(AieTargetModel targetModel, int col, int row)
MLIR_CAPI_EXPORTED bool aieTargetModelIsShimNOCorPLTile(AieTargetModel targetModel, int col, int row)
MLIR_CAPI_EXPORTED uint32_t aieTargetModelGetMemNorthBaseAddress(AieTargetModel targetModel)
MLIR_CAPI_EXPORTED bool aieTargetModelIsShimNOCTile(AieTargetModel targetModel, int col, int row)
MLIR_CAPI_EXPORTED bool aieTargetModelIsEast(AieTargetModel targetModel, int src_col, int src_row, int dst_col, int dst_row)
MLIR_CAPI_EXPORTED bool aieTargetModelIsCoreTile(AieTargetModel targetModel, int col, int row)
MLIR_CAPI_EXPORTED bool aieTargetModelIsMemSouth(AieTargetModel targetModel, int src_col, int src_row, int dst_col, int dst_row)
MLIR_CAPI_EXPORTED bool aieTargetModelIsMemWest(AieTargetModel targetModel, int src_col, int src_row, int dst_col, int dst_row)
MLIR_CAPI_EXPORTED AieTargetModel aieGetTargetModel(uint32_t device)
MLIR_CAPI_EXPORTED uint32_t aieTargetModelGetMemTileSize(AieTargetModel targetModel)
MLIR_CAPI_EXPORTED uint32_t aieTargetModelGetMemEastBaseAddress(AieTargetModel targetModel)
MLIR_CAPI_EXPORTED uint32_t aieTargetModelGetMemSouthBaseAddress(AieTargetModel targetModel)
MLIR_CAPI_EXPORTED bool aieTargetModelIsNorth(AieTargetModel targetModel, int src_col, int src_row, int dst_col, int dst_row)
MLIR_CAPI_EXPORTED bool aieTargetModelIsSouth(AieTargetModel targetModel, int src_col, int src_row, int dst_col, int dst_row)
MLIR_CAPI_EXPORTED uint32_t aieTargetModelGetNumMemTileRows(AieTargetModel targetModel)
MLIR_CAPI_EXPORTED uint32_t aieTargetModelGetColumnShift(AieTargetModel targetModel)
MLIR_CAPI_EXPORTED bool aieTargetModelIsShimPLTile(AieTargetModel targetModel, int col, int row)
MLIR_CAPI_EXPORTED uint32_t aieTargetModelGetRowShift(AieTargetModel targetModel)
MLIR_CAPI_EXPORTED bool aieTargetModelIsMemNorth(AieTargetModel targetModel, int src_col, int src_row, int dst_col, int dst_row)