#include "aie/Targets/AIERT.h"
#include "aie/Targets/AIETargetShared.h"
#include "mlir/Support/LogicalResult.h"
#include "xaiengine/xaie_core.h"
#include "xaiengine/xaie_dma.h"
#include "xaiengine/xaie_elfloader.h"
#include "xaiengine/xaie_interrupt.h"
#include "xaiengine/xaie_locks.h"
#include "xaiengine/xaie_mem.h"
#include "xaiengine/xaie_plif.h"
#include "xaiengine/xaie_ss.h"
#include "xaiengine/xaie_txn.h"
#include "xaiengine/xaiegbl.h"
#include "xaiengine/xaiegbl_defs.h"
#include <filesystem>
Go to the source code of this file.
|
| template<typename H1 > |
| llvm::raw_ostream & | showAIEXRTArgs (llvm::raw_ostream &out, const char *label, H1 &&value) |
| |
| template<typename H1 , typename... T> |
| llvm::raw_ostream & | showAIEXRTArgs (llvm::raw_ostream &out, const char *label, H1 &&value, T &&...rest) |
| |
| llvm::raw_ostream & | operator<< (llvm::raw_ostream &os, const XAie_LocType &loc) |
| |
| llvm::raw_ostream & | operator<< (llvm::raw_ostream &os, const XAie_Lock &lock) |
| |
| llvm::raw_ostream & | operator<< (llvm::raw_ostream &os, const XAie_Packet &packet) |
| |
| LogicalResult | configureLocksInBdBlock (const AIE::AIETargetModel &targetModel, XAie_DmaDesc &dmaTileBd, Block &block, int col, int row) |
| |
| LogicalResult | configureBdInBlock (const AIE::AIETargetModel &targetModel, XAie_DevInst *devInst, XAie_DmaDesc &dmaTileBd, Block &block, int col, int row, int bdId, std::optional< int > nextBdId) |
| |
◆ AIERC_STR
| #define AIERC_STR |
( |
|
x | ) |
x, #x |
◆ DEBUG_TYPE
| #define DEBUG_TYPE "aie-aiert" |
◆ EVEN_BD_NUM_START
| #define EVEN_BD_NUM_START 0 |
◆ NPI_ADDR
◆ NUM_LOCKS
◆ ODD_BD_NUM_START
| #define ODD_BD_NUM_START 24 |
◆ SHOW_AIERT_ARGS
| #define SHOW_AIERT_ARGS |
( |
|
os, |
|
|
|
... |
|
) |
| showAIEXRTArgs(os, #__VA_ARGS__, __VA_ARGS__) |
◆ TRY_XAIE_API_EMIT_ERROR
| #define TRY_XAIE_API_EMIT_ERROR |
( |
|
OP, |
|
|
|
API, |
|
|
|
... |
|
) |
| |
Value: do { \
LLVM_DEBUG(llvm::dbgs() << "trying XAIE API: " << #API << " with args: "); \
LLVM_DEBUG(llvm::dbgs() << "\n"); \
if (auto r = API(__VA_ARGS__)) \
return OP.emitOpError() << #API " failed with " << AIERCTOSTR.at(r); \
} while (0)
#define SHOW_AIERT_ARGS(os,...)
Definition at line 118 of file AIERT.cpp.
◆ TRY_XAIE_API_FATAL_ERROR
| #define TRY_XAIE_API_FATAL_ERROR |
( |
|
API, |
|
|
|
... |
|
) |
| |
Value: do { \
LLVM_DEBUG(llvm::dbgs() << "trying XAIE API: " << #API << " with args: "); \
LLVM_DEBUG(llvm::dbgs() << "\n"); \
if (auto r = API(__VA_ARGS__)) \
llvm::report_fatal_error(llvm::Twine(#API " failed with ") + \
AIERCTOSTR.at(r)); \
} while (0)
Definition at line 108 of file AIERT.cpp.
◆ TRY_XAIE_API_LOGICAL_RESULT
| #define TRY_XAIE_API_LOGICAL_RESULT |
( |
|
API, |
|
|
|
... |
|
) |
| |
Value: do { \
LLVM_DEBUG(llvm::dbgs() << "trying XAIE API: " << #API << " with args: "); \
LLVM_DEBUG(llvm::dbgs() << "\n"); \
if (auto r = API(__VA_ARGS__)) { \
llvm::errs() << #API " failed with " << AIERCTOSTR.at(r); \
return failure(); \
} \
} while (0)
Definition at line 127 of file AIERT.cpp.
◆ XAIE_BASE_ADDR
| #define XAIE_BASE_ADDR 0x40000000 |
◆ XAIE_MEM_TILE_ROW_START
| #define XAIE_MEM_TILE_ROW_START 1 |
◆ XAIE_PARTITION_BASE_ADDR
| #define XAIE_PARTITION_BASE_ADDR 0x0 |
◆ XAIE_SHIM_ROW
◆ configureBdInBlock()
| LogicalResult configureBdInBlock |
( |
const AIE::AIETargetModel & |
targetModel, |
|
|
XAie_DevInst * |
devInst, |
|
|
XAie_DmaDesc & |
dmaTileBd, |
|
|
Block & |
block, |
|
|
int |
col, |
|
|
int |
row, |
|
|
int |
bdId, |
|
|
std::optional< int > |
nextBdId |
|
) |
| |
◆ configureLocksInBdBlock()
| LogicalResult configureLocksInBdBlock |
( |
const AIE::AIETargetModel & |
targetModel, |
|
|
XAie_DmaDesc & |
dmaTileBd, |
|
|
Block & |
block, |
|
|
int |
col, |
|
|
int |
row |
|
) |
| |
◆ operator<<() [1/3]
| llvm::raw_ostream & operator<< |
( |
llvm::raw_ostream & |
os, |
|
|
const XAie_Lock & |
lock |
|
) |
| |
◆ operator<<() [2/3]
| llvm::raw_ostream & operator<< |
( |
llvm::raw_ostream & |
os, |
|
|
const XAie_LocType & |
loc |
|
) |
| |
◆ operator<<() [3/3]
| llvm::raw_ostream & operator<< |
( |
llvm::raw_ostream & |
os, |
|
|
const XAie_Packet & |
packet |
|
) |
| |
◆ showAIEXRTArgs() [1/2]
template<typename H1 >
| llvm::raw_ostream & showAIEXRTArgs |
( |
llvm::raw_ostream & |
out, |
|
|
const char * |
label, |
|
|
H1 && |
value |
|
) |
| |
◆ showAIEXRTArgs() [2/2]
template<typename H1 , typename... T>
| llvm::raw_ostream & showAIEXRTArgs |
( |
llvm::raw_ostream & |
out, |
|
|
const char * |
label, |
|
|
H1 && |
value, |
|
|
T &&... |
rest |
|
) |
| |