Mercurial > hg > CbC > CbC_llvm
view mlir/test/Pass/crash-recovery-dynamic-failure.mlir @ 266:00f31e85ec16 default tip
Added tag current for changeset 31d058e83c98
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Sat, 14 Oct 2023 10:13:55 +0900 |
parents | 1f2b6ac9f198 |
children |
line wrap: on
line source
// The crash recovery mechanism will leak memory allocated in the crashing thread. // RUN: export LSAN_OPTIONS=detect_leaks=0 // Check that local reproducers will also traverse dynamic pass pipelines. // 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 // RUN: cat %t | FileCheck -check-prefix=REPRO_LOCAL_DYNAMIC_FAILURE %s module @inner_mod1 { // expected-error@below {{Failures have been detected while processing an MLIR pass pipeline}} // expected-note@below {{Pipeline failed while executing}} module @foo {} } // REPRO_LOCAL_DYNAMIC_FAILURE: module @inner_mod1 // REPRO_LOCAL_DYNAMIC_FAILURE: module @foo { // REPRO_LOCAL_DYNAMIC_FAILURE: pipeline: "builtin.module(builtin.module(test-pass-failure))"