Skip to content

Commit

Permalink
udpate AMDAIETargetCDODirect
Browse files Browse the repository at this point in the history
  • Loading branch information
makslevental committed Jul 8, 2024
1 parent a73be70 commit f5e7ff2
Show file tree
Hide file tree
Showing 10 changed files with 1,253 additions and 1,335 deletions.
2 changes: 0 additions & 2 deletions compiler/plugins/target/AMD-AIE/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
# See https://llvm.org/LICENSE.txt for license information.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception

set(IREE_MLIR_AIR_SOURCE_DIR "${IREE_AMD_AIE_SOURCE_DIR}/third_party/mlir-air/mlir")
set(IREE_MLIR_AIE_SOURCE_DIR "${IREE_AMD_AIE_SOURCE_DIR}/third_party/mlir-aie")
include_directories("${IREE_MLIR_AIE_SOURCE_DIR}/include")
include_directories("${IREE_MLIR_AIR_SOURCE_DIR}/include")

Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,21 @@
namespace mlir::iree_compiler::AMDAIE {
mlir::LogicalResult AIETranslateToNPU(mlir::ModuleOp module,
llvm::raw_ostream &output);

std::vector<uint32_t> AIETranslateToNPU(mlir::ModuleOp);

mlir::LogicalResult AIETranslateToLdScript(mlir::ModuleOp module,
llvm::raw_ostream &output,
int tileCol, int tileRow);

mlir::LogicalResult AIETranslateToBCF(mlir::ModuleOp module,
llvm::raw_ostream &output, int tileCol,
int tileRow);

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);
bool enableCores = true);

inline void collectTiles(
xilinx::AIE::DeviceOp &device,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -801,15 +801,15 @@ static LogicalResult generateUnifiedObject(MLIRContext *context,
{"-O2", "--inline-threshold=10", "-S", std::string(LLVMIRFile),
"--disable-builtin=memset", "-o", std::string(OptLLVMIRFile)},
TK.Verbose) != 0)
return moduleOp.emitOpError("Failed to optimize");
return moduleOp.emitOpError("Failed to optimize ll");

if (runTool(peanoLLCBin,
{std::string(OptLLVMIRFile), "-O2",
"--march=" + StringRef(TK.TargetArch).lower(),
"--function-sections", "--filetype=obj", "-o",
std::string(outputFile)},
TK.Verbose) != 0)
return moduleOp.emitOpError("Failed to assemble");
return moduleOp.emitOpError("Failed to assemble ll");
}
copy->erase();
return success();
Expand Down

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

0 comments on commit f5e7ff2

Please sign in to comment.