9#ifndef AIE_TARGETS_AIETARGETS_H
10#define AIE_TARGETS_AIETARGETS_H
12#include "mlir/IR/BuiltinOps.h"
13#include "mlir/IR/MLIRContext.h"
14#include "mlir/Support/LogicalResult.h"
16#include "llvm/Support/raw_ostream.h"
24 llvm::raw_ostream &output,
25 llvm::StringRef deviceName =
"");
27 llvm::raw_ostream &output,
28 llvm::StringRef deviceName =
"");
30 llvm::raw_ostream &output,
31 llvm::StringRef deviceName =
"");
33 llvm::raw_ostream &output);
35 llvm::raw_ostream &output,
36 llvm::StringRef deviceName =
"");
39 llvm::StringRef deviceName =
"");
41 llvm::raw_ostream &, llvm::StringRef);
43 std::vector<uint32_t> &,
44 llvm::StringRef deviceName =
"",
45 llvm::StringRef sequenceName =
"");
47 llvm::raw_ostream &output);
51 llvm::StringRef deviceName =
"",
52 llvm::StringRef sequenceName =
"");
54 llvm::raw_ostream &output,
55 int tileCol,
int tileRow,
56 llvm::StringRef deviceName =
"");
58 llvm::raw_ostream &output,
int tileCol,
60 llvm::StringRef deviceName =
"");
62AIELLVMLink(llvm::raw_ostream &output, std::vector<std::string> Files,
63 bool DisableDITypeMap =
false,
bool NoVerify =
false,
64 bool Internalize =
false,
bool OnlyNeeded =
false,
65 bool PreserveAssemblyUseListOrder =
false,
bool Verbose =
false);
68 mlir::ModuleOp m, llvm::StringRef workDirPath, llvm::StringRef deviceName,
69 bool bigEndian =
false,
bool emitUnified =
false,
bool cdoDebug =
false,
70 bool aieSim =
false,
bool xaieDebug =
false,
bool enableCores =
true);
73 llvm::raw_ostream &output,
74 llvm::StringRef deviceName);
82 mlir::raw_ostream &os);
mlir::LogicalResult AIETranslateControlPacketsToUI32Vec(mlir::ModuleOp, std::vector< uint32_t > &, llvm::StringRef deviceName="", llvm::StringRef sequenceName="")
mlir::LogicalResult AIETranslateToUcDma(mlir::ModuleOp module, llvm::raw_ostream &output)
mlir::LogicalResult AIETranslateSCSimConfig(mlir::ModuleOp module, llvm::raw_ostream &output, llvm::StringRef deviceName="")
mlir::LogicalResult AIETranslateToCDODirect(mlir::ModuleOp m, llvm::StringRef workDirPath, llvm::StringRef deviceName, bool bigEndian=false, bool emitUnified=false, bool cdoDebug=false, bool aieSim=false, bool xaieDebug=false, bool enableCores=true)
mlir::LogicalResult AIELLVMLink(llvm::raw_ostream &output, std::vector< std::string > Files, bool DisableDITypeMap=false, bool NoVerify=false, bool Internalize=false, bool OnlyNeeded=false, bool PreserveAssemblyUseListOrder=false, bool Verbose=false)
mlir::LogicalResult ADFGenerateCPPGraph(mlir::ModuleOp module, llvm::raw_ostream &output)
mlir::LogicalResult AIETranslateToTargetArch(mlir::ModuleOp module, llvm::raw_ostream &output, llvm::StringRef deviceName)
mlir::LogicalResult AIETranslateToLdScript(mlir::ModuleOp module, llvm::raw_ostream &output, int tileCol, int tileRow, llvm::StringRef deviceName="")
mlir::LogicalResult AIEFlowsToJSON(mlir::ModuleOp module, llvm::raw_ostream &output, llvm::StringRef deviceName="")
mlir::LogicalResult AIETranslateToBCF(mlir::ModuleOp module, llvm::raw_ostream &output, int tileCol, int tileRow, llvm::StringRef deviceName="")
mlir::LogicalResult AIETranslateShimSolution(mlir::ModuleOp module, llvm::raw_ostream &, llvm::StringRef deviceName="")
mlir::LogicalResult AIETranslateGraphXPE(mlir::ModuleOp module, llvm::raw_ostream &, llvm::StringRef)
mlir::LogicalResult AIETranslateNpuToBinary(mlir::ModuleOp, std::vector< uint32_t > &, llvm::StringRef deviceName="", llvm::StringRef sequenceName="")
mlir::LogicalResult AIETranslateToHSA(mlir::ModuleOp module, llvm::raw_ostream &output, llvm::StringRef deviceName="")
mlir::LogicalResult AIETranslateToXAIEV2(mlir::ModuleOp module, llvm::raw_ostream &output, llvm::StringRef deviceName="")
mlir::LogicalResult translateAIEVecToCpp(mlir::Operation *op, bool aie2, mlir::raw_ostream &os)
Translates the AIE vector dialect MLIR to C++ code.