1 // RUN: mlir-opt %s -pass-pipeline='builtin.module(builtin.module(test-dynamic-pipeline{op-name=inner_mod1, dynamic-pipeline=func.func(cse,canonicalize)}))' --mlir-disable-threading -mlir-print-ir-before-all 2>&1 | FileCheck %s --check-prefix=MOD1 --check-prefix=MOD1-ONLY --check-prefix=CHECK
2 // RUN: mlir-opt %s -pass-pipeline='builtin.module(builtin.module(test-dynamic-pipeline{op-name=inner_mod2, dynamic-pipeline=func.func(cse,canonicalize)}))' --mlir-disable-threading -mlir-print-ir-before-all 2>&1 | FileCheck %s --check-prefix=MOD2 --check-prefix=MOD2-ONLY --check-prefix=CHECK
3 // RUN: mlir-opt %s -pass-pipeline='builtin.module(builtin.module(test-dynamic-pipeline{op-name=inner_mod1,inner_mod2, dynamic-pipeline=func.func(cse,canonicalize)}))' --mlir-disable-threading -mlir-print-ir-before-all 2>&1 | FileCheck %s --check-prefix=MOD1 --check-prefix=MOD2 --check-prefix=CHECK
4 // RUN: mlir-opt %s -pass-pipeline='builtin.module(builtin.module(test-dynamic-pipeline{dynamic-pipeline=func.func(cse,canonicalize)}))' --mlir-disable-threading -mlir-print-ir-before-all 2>&1 | FileCheck %s --check-prefix=MOD1 --check-prefix=MOD2 --check-prefix=CHECK
11 // CHECK: IR Dump Before
12 // CHECK-SAME: TestDynamicPipelinePass
13 // CHECK-NEXT: module @inner_mod1
14 // MOD2-ONLY: dynamic-pipeline skip op name: inner_mod1
16 // MOD1: Dump Before CSE
18 // MOD1: Dump Before Canonicalizer
23 // MOD1: Dump Before CSE
25 // MOD1: Dump Before Canonicalizer
32 // CHECK: IR Dump Before
33 // CHECK-SAME: TestDynamicPipelinePass
34 // CHECK-NEXT: module @inner_mod2
35 // MOD1-ONLY: dynamic-pipeline skip op name: inner_mod2
37 // MOD2: Dump Before CSE
39 // MOD2: Dump Before Canonicalizer