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);
26 llvm::raw_ostream &output);
28 llvm::raw_ostream &output);
30 llvm::raw_ostream &output);
32 llvm::raw_ostream &output);
38 std::vector<uint32_t> &,
39 llvm::StringRef sequenceName =
"");
42 llvm::StringRef sequenceName =
"");
44 llvm::raw_ostream &output,
45 int tileCol,
int tileRow);
47 llvm::raw_ostream &output,
int tileCol,
50AIELLVMLink(llvm::raw_ostream &output, std::vector<std::string> Files,
51 bool DisableDITypeMap =
false,
bool NoVerify =
false,
52 bool Internalize =
false,
bool OnlyNeeded =
false,
53 bool PreserveAssemblyUseListOrder =
false,
bool Verbose =
false);
57 bool bigEndian =
false,
bool emitUnified =
false,
58 bool cdoDebug =
false,
bool aieSim =
false,
59 bool xaieDebug =
false,
bool enableCores =
true);
61#ifdef AIE_ENABLE_AIRBIN
63 const std::string &outputFilename,
64 const std::string &coreFilesDir,
65 bool testAirBin =
false);
69 llvm::raw_ostream &output);
77 mlir::raw_ostream &os);
mlir::LogicalResult AIETranslateToXAIEV2(mlir::ModuleOp module, llvm::raw_ostream &output)
mlir::LogicalResult AIETranslateToCDODirect(mlir::ModuleOp m, llvm::StringRef workDirPath, 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 AIETranslateToHSA(mlir::ModuleOp module, llvm::raw_ostream &output)
mlir::LogicalResult AIETranslateToBCF(mlir::ModuleOp module, llvm::raw_ostream &output, int tileCol, int tileRow)
mlir::LogicalResult AIETranslateToTargetArch(mlir::ModuleOp module, llvm::raw_ostream &output)
mlir::LogicalResult AIETranslateToLdScript(mlir::ModuleOp module, llvm::raw_ostream &output, int tileCol, int tileRow)
mlir::LogicalResult AIETranslateNpuToBinary(mlir::ModuleOp, std::vector< uint32_t > &, llvm::StringRef sequenceName="")
mlir::LogicalResult AIETranslateShimSolution(mlir::ModuleOp module, llvm::raw_ostream &)
mlir::LogicalResult AIEFlowsToJSON(mlir::ModuleOp module, llvm::raw_ostream &output)
mlir::LogicalResult AIETranslateToAirbin(mlir::ModuleOp module, const std::string &outputFilename, const std::string &coreFilesDir, bool testAirBin)
mlir::LogicalResult AIETranslateSCSimConfig(mlir::ModuleOp module, llvm::raw_ostream &output)
mlir::LogicalResult AIETranslateControlPacketsToUI32Vec(mlir::ModuleOp, std::vector< uint32_t > &, llvm::StringRef sequenceName="")
mlir::LogicalResult AIETranslateGraphXPE(mlir::ModuleOp module, llvm::raw_ostream &)
mlir::LogicalResult translateAIEVecToCpp(mlir::Operation *op, bool aie2, mlir::raw_ostream &os)
Translates the AIE vector dialect MLIR to C++ code.