mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-24 22:06:06 +00:00

-mlir-print-ir-module-scope option cannot be used without disabling multithread for pass manager. For the usability, we can throw a validation error in mlir-opt instead of assertion failure. Issue: https://github.com/llvm/llvm-project/issues/61578 Reviewed By: mehdi_amini Differential Revision: https://reviews.llvm.org/D146785
10 lines
626 B
MLIR
10 lines
626 B
MLIR
// RUN: not mlir-opt %s -pass-pipeline='builtin.module(builtin.module(test-module-pass{test-option=a}))' 2>&1 | FileCheck %s
|
|
// RUN: not mlir-opt %s -mlir-print-ir-module-scope -mlir-print-ir-before=cse 2>&1 | FileCheck -check-prefix=PRINT_MODULE_IR_WITH_MULTITHREAD %s
|
|
|
|
// CHECK: <Pass-Options-Parser>: no such option test-option
|
|
// CHECK: failed to add `test-module-pass` with options `test-option=a`
|
|
// CHECK: failed to add `builtin.module` with options `` to inner pipeline
|
|
module {}
|
|
|
|
// PRINT_MODULE_IR_WITH_MULTITHREAD: IR print for module scope can't be setup on a pass-manager without disabling multi-threading first.
|