|
MLIR-AIE
|
#include "aie-c/Translation.h"#include "aie/Conversion/AIEToConfiguration/AIEToConfiguration.h"#include "aie/Dialect/AIE/IR/AIETargetModel.h"#include "aie/Targets/AIERT.h"#include "aie/Targets/AIETargets.h"#include "mlir-c/IR.h"#include "mlir-c/Support.h"#include "mlir/CAPI/IR.h"#include "mlir/CAPI/Support.h"#include "mlir/Dialect/LLVMIR/LLVMDialect.h"#include "mlir/IR/BuiltinOps.h"#include "mlir/Support/FileUtilities.h"#include "mlir/Target/LLVMIR/Export.h"#include "llvm/IR/LLVMContext.h"#include "llvm/IR/Module.h"#include "llvm/Support/Casting.h"#include "llvm/Support/raw_ostream.h"#include <cstdlib>#include <iostream>#include <string>#include <vector>
Include dependency graph for Translation.cpp:Go to the source code of this file.
Functions | |
| MlirStringRef | aieTranslateAIEVecToCpp (MlirOperation moduleOp, bool aie2) |
| MlirStringRef | aieTranslateModuleToLLVMIR (MlirOperation moduleOp) |
| MlirLogicalResult | aieTranslateToCDODirect (MlirOperation moduleOp, MlirStringRef workDirPath, bool bigEndian, bool emitUnified, bool cdoDebug, bool aieSim, bool xaieDebug, bool enableCores) |
| MlirOperation | aieTranslateBinaryToTxn (MlirContext ctx, MlirStringRef binary) |
| MlirStringRef | aieTranslateNpuToBinary (MlirOperation moduleOp, MlirStringRef sequenceName) |
| MlirStringRef | aieTranslateControlPacketsToUI32Vec (MlirOperation moduleOp) |
| MlirStringRef | aieTranslateToXAIEV2 (MlirOperation moduleOp) |
| MlirStringRef | aieTranslateToHSA (MlirOperation moduleOp) |
| MlirStringRef | aieTranslateToBCF (MlirOperation moduleOp, int col, int row) |
| MlirStringRef | aieLLVMLink (MlirStringRef *modules, int nModules) |
| AieRtControl | getAieRtControl (AieTargetModel tm) |
| void | freeAieRtControl (AieRtControl aieCtl) |
| void | aieRtDmaUpdateBdAddr (AieRtControl aieCtl, int col, int row, size_t addr, size_t bdId) |
| void | aieRtStartTransaction (AieRtControl aieCtl) |
| void | aieRtExportSerializedTransaction (AieRtControl aieCtl) |
| MlirStringRef aieLLVMLink | ( | MlirStringRef * | modules, |
| int | nModules | ||
| ) |
Definition at line 152 of file Translation.cpp.
References xilinx::AIE::AIELLVMLink(), and xilinx::AIE::os.
| void aieRtDmaUpdateBdAddr | ( | AieRtControl | aieCtl, |
| int | col, | ||
| int | row, | ||
| size_t | addr, | ||
| size_t | bdId | ||
| ) |
Definition at line 181 of file Translation.cpp.
References xilinx::AIE::col, xilinx::AIE::AIERTControl::dmaUpdateBdAddr(), and xilinx::AIE::row.
| void aieRtExportSerializedTransaction | ( | AieRtControl | aieCtl | ) |
Definition at line 192 of file Translation.cpp.
References xilinx::AIE::AIERTControl::exportSerializedTransaction().
| void aieRtStartTransaction | ( | AieRtControl | aieCtl | ) |
Definition at line 187 of file Translation.cpp.
References xilinx::AIE::AIERTControl::startTransaction().
| MlirStringRef aieTranslateAIEVecToCpp | ( | MlirOperation | moduleOp, |
| bool | aie2 | ||
| ) |
Definition at line 41 of file Translation.cpp.
References xilinx::AIE::os, and xilinx::aievec::translateAIEVecToCpp().
| MlirOperation aieTranslateBinaryToTxn | ( | MlirContext | ctx, |
| MlirStringRef | binary | ||
| ) |
Definition at line 87 of file Translation.cpp.
References xilinx::AIE::convertTransactionBinaryToMLIR().
| MlirStringRef aieTranslateControlPacketsToUI32Vec | ( | MlirOperation | moduleOp | ) |
Definition at line 108 of file Translation.cpp.
References xilinx::AIE::AIETranslateControlPacketsToUI32Vec().
| MlirStringRef aieTranslateModuleToLLVMIR | ( | MlirOperation | moduleOp | ) |
Definition at line 52 of file Translation.cpp.
References xilinx::AIE::os.
| MlirStringRef aieTranslateNpuToBinary | ( | MlirOperation | moduleOp, |
| MlirStringRef | sequenceName | ||
| ) |
Definition at line 95 of file Translation.cpp.
References xilinx::AIE::AIETranslateNpuToBinary().
| MlirStringRef aieTranslateToBCF | ( | MlirOperation | moduleOp, |
| int | col, | ||
| int | row | ||
| ) |
Definition at line 141 of file Translation.cpp.
References xilinx::AIE::AIETranslateToBCF(), xilinx::AIE::col, xilinx::AIE::os, and xilinx::AIE::row.
| MlirLogicalResult aieTranslateToCDODirect | ( | MlirOperation | moduleOp, |
| MlirStringRef | workDirPath, | ||
| bool | bigEndian, | ||
| bool | emitUnified, | ||
| bool | cdoDebug, | ||
| bool | aieSim, | ||
| bool | xaieDebug, | ||
| bool | enableCores | ||
| ) |
Definition at line 66 of file Translation.cpp.
References xilinx::AIE::AIETranslateToCDODirect().
| MlirStringRef aieTranslateToHSA | ( | MlirOperation | moduleOp | ) |
Definition at line 130 of file Translation.cpp.
References xilinx::AIE::AIETranslateToHSA(), and xilinx::AIE::os.
| MlirStringRef aieTranslateToXAIEV2 | ( | MlirOperation | moduleOp | ) |
Definition at line 119 of file Translation.cpp.
References xilinx::AIE::AIETranslateToXAIEV2(), and xilinx::AIE::os.
| void freeAieRtControl | ( | AieRtControl | aieCtl | ) |
Definition at line 176 of file Translation.cpp.
| AieRtControl getAieRtControl | ( | AieTargetModel | tm | ) |
Definition at line 168 of file Translation.cpp.