annotate mlir/test/Pass/crash-recovery-dynamic-failure.mlir @ 252:1f2b6ac9f198 llvm-original

LLVM16-1
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Fri, 18 Aug 2023 09:04:13 +0900
parents c4bab56944e8
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
252
1f2b6ac9f198 LLVM16-1
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 236
diff changeset
1 // The crash recovery mechanism will leak memory allocated in the crashing thread.
1f2b6ac9f198 LLVM16-1
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 236
diff changeset
2 // RUN: export LSAN_OPTIONS=detect_leaks=0
1f2b6ac9f198 LLVM16-1
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 236
diff changeset
3
236
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
4 // Check that local reproducers will also traverse dynamic pass pipelines.
252
1f2b6ac9f198 LLVM16-1
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 236
diff changeset
5 // RUN: mlir-opt %s -pass-pipeline='builtin.module(test-module-pass,test-dynamic-pipeline{op-name=inner_mod1 run-on-nested-operations=1 dynamic-pipeline=test-pass-failure})' -mlir-pass-pipeline-crash-reproducer=%t -verify-diagnostics -mlir-pass-pipeline-local-reproducer --mlir-disable-threading
236
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
6 // RUN: cat %t | FileCheck -check-prefix=REPRO_LOCAL_DYNAMIC_FAILURE %s
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
7
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
8 module @inner_mod1 {
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
9 // expected-error@below {{Failures have been detected while processing an MLIR pass pipeline}}
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
10 // expected-note@below {{Pipeline failed while executing}}
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
11 module @foo {}
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
12 }
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
13
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
14
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
15 // REPRO_LOCAL_DYNAMIC_FAILURE: module @inner_mod1
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
16 // REPRO_LOCAL_DYNAMIC_FAILURE: module @foo {
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
17
252
1f2b6ac9f198 LLVM16-1
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 236
diff changeset
18 // REPRO_LOCAL_DYNAMIC_FAILURE: pipeline: "builtin.module(builtin.module(test-pass-failure))"