From 463efb736d016e9aaa61de7512b9d0731d85aff4 Mon Sep 17 00:00:00 2001 From: Gheorghe-Teodor Bercea Date: Tue, 19 May 2020 12:28:09 -0400 Subject: [PATCH] Fix name of intermediate file (#133) * Reorganize main function. * Follow review comments. * Emit constants are globals in Krnl and LLVM dialects. * Change extensions of intermediate file. --- src/MainUtils.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/MainUtils.cpp b/src/MainUtils.cpp index 70b99cc..6a238be 100644 --- a/src/MainUtils.cpp +++ b/src/MainUtils.cpp @@ -193,9 +193,9 @@ void emitOutputFiles(string outputBaseName, EmissionTargetType emissionTarget, emissionTarget == EmitMLIR) { if (mlir::failed(cleanSourcePM.run(*module))) llvm::errs() << "Could not apply simplification passes.\n"; - outputCode(module, outputBaseName, ".mlir"); + outputCode(module, outputBaseName, ".tmp"); printf("Constant-free MLIR Code written to: \n\t%s\n\n", - (outputBaseName + ".mlir").c_str()); + (outputBaseName + ".tmp").c_str()); printf("Use:\n\t%s\nto continue lowering the code to other dialects.\n", (outputBaseName + ".onnx.mlir").c_str());