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:
parent
4cdc0873ca
commit
463efb736d
|
@ -193,9 +193,9 @@ void emitOutputFiles(string outputBaseName, EmissionTargetType emissionTarget,
|
||||||
emissionTarget == EmitMLIR) {
|
emissionTarget == EmitMLIR) {
|
||||||
if (mlir::failed(cleanSourcePM.run(*module)))
|
if (mlir::failed(cleanSourcePM.run(*module)))
|
||||||
llvm::errs() << "Could not apply simplification passes.\n";
|
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",
|
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",
|
printf("Use:\n\t%s\nto continue lowering the code to other dialects.\n",
|
||||||
(outputBaseName + ".onnx.mlir").c_str());
|
(outputBaseName + ".onnx.mlir").c_str());
|
||||||
|
|
Loading…
Reference in New Issue