Update debug options in compilation errors (#913)

The flag for printing the IR after each pass is now prefixed with
"mlir". This commit updates the flag in the error reporting for the
compiler.
pull/915/head
Ramiro Leal-Cavazos 2022-06-07 12:55:54 -05:00 committed by GitHub
parent b95b3d844d
commit 22c0893ec6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -45,7 +45,7 @@ def run_pipeline_with_repro_report(module,
filename = os.path.join(tempfile.gettempdir(), module_name + ".mlir")
with open(filename, 'w') as f:
f.write(asm_for_error_report)
debug_options="-print-ir-after-all -mlir-disable-threading"
debug_options="-mlir-print-ir-after-all -mlir-disable-threading"
raise Exception(f"""
{description} failed with the following diagnostics:
{sys.stderr.getvalue()}