CodeQL / Analyze (actions) (push) Canceled after 0s
CodeQL / Analyze (python) (push) Canceled after 0s
pre-commit / pre-commit (push) Canceled after 0s
Multi-Arch CI / setup (push) Canceled after 0s
Publish build_manylinux_x86_64 images / publish_build_manylinux_x86_64 (push) Canceled after 0s
Setup (Multi-Arch) / setup (push) Canceled after 0s
Multi-Arch CI / Linux::${{ fromJSON(needs.setup.outputs.linux_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubi10 image / publish_no_rocm_image_ubi10 (push) Canceled after 0s
Multi-Arch CI / Windows::${{ fromJSON(needs.setup.outputs.windows_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Multi-Arch CI / Manifest Diff (push) Canceled after 0s
TheRock Manifest Diff Report / Generate Manifest Diff Report (push) Canceled after 0s
Multi-Arch CI / CI Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_ocl_rt images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_rocgdb images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Unit Tests / Unit Tests :: ubuntu-24.04 (push) Canceled after 0s
Unit Tests / Unit Tests :: windows-2022 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_media (push) Canceled after 0s
Unit Tests / Unit Tests Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_openmpi (push) Canceled after 0s
78 lines
4.5 KiB
MLIR
78 lines
4.5 KiB
MLIR
// RUN: mlir-opt %s -mlir-disable-threading -pass-pipeline='builtin.module(builtin.module(test-module-pass,func.func(test-function-pass)),func.func(test-function-pass),func.func(cse,canonicalize))' -verify-each=false -mlir-timing -mlir-timing-display=tree 2>&1 | FileCheck %s
|
|
// RUN: mlir-opt %s -mlir-disable-threading -test-textual-pm-nested-pipeline -verify-each=false -mlir-timing -mlir-timing-display=tree 2>&1 | FileCheck %s --check-prefix=TEXTUAL_CHECK
|
|
// RUN: mlir-opt %s -mlir-disable-threading -pass-pipeline='builtin.module(builtin.module(test-module-pass),any(test-interface-pass),any(test-interface-pass),func.func(test-function-pass),any(canonicalize),func.func(cse))' -verify-each=false -mlir-timing -mlir-timing-display=tree 2>&1 | FileCheck %s --check-prefix=GENERIC_MERGE_CHECK
|
|
// RUN: mlir-opt %s -mlir-disable-threading -pass-pipeline=' builtin.module ( builtin.module( func.func( test-function-pass, print-op-stats{ json=false } ) ) ) ' -verify-each=false -mlir-timing -mlir-timing-display=tree 2>&1 | FileCheck %s --check-prefix=PIPELINE_STR_WITH_SPACES_CHECK
|
|
// RUN: not mlir-opt %s -pass-pipeline='any(builtin.module(test-module-pass)' 2>&1 | FileCheck --check-prefix=CHECK_ERROR_1 %s
|
|
// RUN: not mlir-opt %s -pass-pipeline='builtin.module(test-module-pass))' 2>&1 | FileCheck --check-prefix=CHECK_ERROR_2 %s
|
|
// RUN: not mlir-opt %s -pass-pipeline='any(builtin.module()()' 2>&1 | FileCheck --check-prefix=CHECK_ERROR_3 %s
|
|
// RUN: not mlir-opt %s -pass-pipeline='any(,)' 2>&1 | FileCheck --check-prefix=CHECK_ERROR_4 %s
|
|
// RUN: not mlir-opt %s -pass-pipeline='func.func(test-module-pass)' 2>&1 | FileCheck --check-prefix=CHECK_ERROR_5 %s
|
|
|
|
// CHECK_ERROR_1: encountered unbalanced parentheses while parsing pipeline
|
|
// CHECK_ERROR_2: encountered extra closing ')' creating unbalanced parentheses while parsing pipeline
|
|
// CHECK_ERROR_3: expected ',' after parsing pipeline
|
|
// CHECK_ERROR_4: does not refer to a registered pass or pass pipeline
|
|
// CHECK_ERROR_5: Can't add pass '{{.*}}TestModulePass' restricted to 'builtin.module' on a PassManager intended to run on 'func.func', did you intend to nest?
|
|
|
|
// RUN: not mlir-opt %s -pass-pipeline='' -cse 2>&1 | FileCheck --check-prefix=CHECK_ERROR_6 %s
|
|
// CHECK_ERROR_6: '-pass-pipeline' option can't be used with individual pass options
|
|
|
|
// RUN: not mlir-opt %s -pass-pipeline='wrong-op()' 2>&1 | FileCheck --check-prefix=CHECK_ERROR_7 %s
|
|
// CHECK_ERROR_7: can't run 'wrong-op' pass manager on 'builtin.module' op
|
|
|
|
// RUN: mlir-opt %s -pass-pipeline='any(cse)' -dump-pass-pipeline 2>&1 | FileCheck %s -check-prefix=CHECK_ROUNDTRIP
|
|
// CHECK_ROUNDTRIP: any(
|
|
// CHECK_ROUNDTRIP-NEXT: cse
|
|
// CHECK_ROUNDTRIP-NEXT: )
|
|
|
|
func.func @foo() {
|
|
return
|
|
}
|
|
|
|
module {
|
|
func.func @foo() {
|
|
return
|
|
}
|
|
}
|
|
|
|
// CHECK: Pipeline Collection : ['builtin.module', 'func.func']
|
|
// CHECK-NEXT: 'func.func' Pipeline
|
|
// CHECK-NEXT: TestFunctionPass
|
|
// CHECK-NEXT: CSE
|
|
// CHECK-NEXT: DominanceInfo
|
|
// CHECK-NEXT: Canonicalizer
|
|
// CHECK-NEXT: 'builtin.module' Pipeline
|
|
// CHECK-NEXT: TestModulePass
|
|
// CHECK-NEXT: 'func.func' Pipeline
|
|
// CHECK-NEXT: TestFunctionPass
|
|
|
|
// TEXTUAL_CHECK: Pipeline Collection : ['builtin.module', 'func.func']
|
|
// TEXTUAL_CHECK-NEXT: 'func.func' Pipeline
|
|
// TEXTUAL_CHECK-NEXT: TestFunctionPass
|
|
// TEXTUAL_CHECK-NEXT: 'builtin.module' Pipeline
|
|
// TEXTUAL_CHECK-NEXT: TestModulePass
|
|
// TEXTUAL_CHECK-NEXT: 'func.func' Pipeline
|
|
// TEXTUAL_CHECK-NEXT: TestFunctionPass
|
|
|
|
// PIPELINE_STR_WITH_SPACES_CHECK: 'builtin.module' Pipeline
|
|
// PIPELINE_STR_WITH_SPACES_CHECK-NEXT: 'func.func' Pipeline
|
|
// PIPELINE_STR_WITH_SPACES_CHECK-NEXT: TestFunctionPass
|
|
// PIPELINE_STR_WITH_SPACES_CHECK-NEXT: PrintOpStats
|
|
|
|
// Check that generic pass pipelines are only merged when they aren't
|
|
// going to overlap with op-specific pipelines.
|
|
// GENERIC_MERGE_CHECK: Pipeline Collection : ['builtin.module', 'any']
|
|
// GENERIC_MERGE_CHECK-NEXT: 'any' Pipeline
|
|
// GENERIC_MERGE_CHECK-NEXT: TestInterfacePass
|
|
// GENERIC_MERGE_CHECK-NEXT: 'builtin.module' Pipeline
|
|
// GENERIC_MERGE_CHECK-NEXT: TestModulePass
|
|
// GENERIC_MERGE_CHECK-NEXT: 'any' Pipeline
|
|
// GENERIC_MERGE_CHECK-NEXT: TestInterfacePass
|
|
// GENERIC_MERGE_CHECK-NEXT: 'func.func' Pipeline
|
|
// GENERIC_MERGE_CHECK-NEXT: TestFunctionPass
|
|
// GENERIC_MERGE_CHECK-NEXT: 'any' Pipeline
|
|
// GENERIC_MERGE_CHECK-NEXT: Canonicalizer
|
|
// GENERIC_MERGE_CHECK-NEXT: 'func.func' Pipeline
|
|
// GENERIC_MERGE_CHECK-NEXT: CSE
|
|
// GENERIC_MERGE_CHECK-NEXT: (A) DominanceInfo
|