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.
This commit is contained in:
Gheorghe-Teodor Bercea 2020-05-19 12:28:09 -04:00 committed by GitHub
parent 4cdc0873ca
commit 463efb736d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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());