2019-10-11 10:19:11 +08:00
|
|
|
// RUN: mlir-opt %s -pass-pipeline='func(test-function-pass, test-pass-crash)' -pass-pipeline-crash-reproducer=%t -verify-diagnostics
|
|
|
|
// RUN: cat %t | FileCheck -check-prefix=REPRO %s
|
2020-04-30 06:08:15 +08:00
|
|
|
// RUN: mlir-opt %s -pass-pipeline='func(test-function-pass, test-pass-crash)' -pass-pipeline-crash-reproducer=%t -verify-diagnostics -pass-pipeline-local-reproducer
|
|
|
|
// RUN: cat %t | FileCheck -check-prefix=REPRO_LOCAL %s
|
2019-10-11 10:19:11 +08:00
|
|
|
|
2020-09-21 14:42:25 +08:00
|
|
|
// Check that we correctly handle verifiers passes with local reproducer, this use to crash.
|
|
|
|
// RUN: mlir-opt %s -test-function-pass -test-function-pass -test-module-pass -pass-pipeline-crash-reproducer=%t -pass-pipeline-local-reproducer
|
|
|
|
|
2019-12-04 06:00:36 +08:00
|
|
|
// expected-error@+1 {{A failure has been detected while processing the MLIR module}}
|
2019-10-11 10:19:11 +08:00
|
|
|
module {
|
|
|
|
func @foo() {
|
|
|
|
return
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// REPRO: configuration: -pass-pipeline='func(test-function-pass, test-pass-crash)'
|
|
|
|
|
|
|
|
// REPRO: module
|
|
|
|
// REPRO: func @foo() {
|
|
|
|
// REPRO-NEXT: return
|
2020-04-30 06:08:15 +08:00
|
|
|
|
|
|
|
// REPRO_LOCAL: configuration: -pass-pipeline='func(test-pass-crash)'
|
|
|
|
|
|
|
|
// REPRO_LOCAL: module
|
|
|
|
// REPRO_LOCAL: func @foo() {
|
|
|
|
// REPRO_LOCAL-NEXT: return
|