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
67 lines
2.9 KiB
MLIR
67 lines
2.9 KiB
MLIR
// RUN: mlir-opt -allow-unregistered-dialect %s -pass-pipeline="builtin.module(func.func(test-clone))" --split-input-file | FileCheck %s
|
|
|
|
module {
|
|
func.func @fixpoint(%arg1 : i32) -> i32 {
|
|
%r = "test.use"(%arg1) ({
|
|
%r2 = "test.use2"(%arg1) ({
|
|
"test.yield2"(%arg1) : (i32) -> ()
|
|
}) : (i32) -> i32
|
|
"test.yield"(%r2) : (i32) -> ()
|
|
}) : (i32) -> i32
|
|
return %r : i32
|
|
}
|
|
}
|
|
|
|
// CHECK: notifyOperationInserted: test.use
|
|
// CHECK-NEXT: notifyOperationInserted: test.use2
|
|
// CHECK-NEXT: notifyOperationInserted: test.yield2
|
|
// CHECK-NEXT: notifyOperationInserted: test.yield
|
|
// CHECK-NEXT: notifyOperationInserted: func.return
|
|
|
|
// CHECK-LABEL: func @fixpoint
|
|
// CHECK-SAME: (%[[arg0:.+]]: i32) -> i32 {
|
|
// CHECK-NEXT: %[[i0:.+]] = "test.use"(%[[arg0]]) ({
|
|
// CHECK-NEXT: %[[r2:.+]] = "test.use2"(%[[arg0]]) ({
|
|
// CHECK-NEXT: "test.yield2"(%[[arg0]]) : (i32) -> ()
|
|
// CHECK-NEXT: }) : (i32) -> i32
|
|
// CHECK-NEXT: "test.yield"(%[[r2]]) : (i32) -> ()
|
|
// CHECK-NEXT: }) : (i32) -> i32
|
|
// CHECK-NEXT: %[[i1:.+]] = "test.use"(%[[i0]]) ({
|
|
// CHECK-NEXT: %[[r2:.+]] = "test.use2"(%[[i0]]) ({
|
|
// CHECK-NEXT: "test.yield2"(%[[i0]]) : (i32) -> ()
|
|
// CHECK-NEXT: }) : (i32) -> i32
|
|
// CHECK-NEXT: "test.yield"(%[[r2]]) : (i32) -> ()
|
|
// CHECK-NEXT: }) : (i32) -> i32
|
|
// CHECK-NEXT: return %[[i1]] : i32
|
|
// CHECK-NEXT: }
|
|
|
|
// -----
|
|
|
|
func.func @clone_unregistered_with_attrs() {
|
|
"unregistered.foo"() <{bar = 1 : i64, flag = true, name = "test", value = 3.14 : f32}> : () -> ()
|
|
"unregistered.bar"() : () -> ()
|
|
"unregistered.empty_dict"() <{}> : () -> ()
|
|
"unregistered.complex"() <{
|
|
array = [1, 2, 3],
|
|
dict = {key1 = 42 : i32, key2 = "value"},
|
|
nested = {inner = {deep = 100 : i64}}
|
|
}> : () -> ()
|
|
return
|
|
}
|
|
|
|
// CHECK: notifyOperationInserted: unregistered.foo
|
|
// CHECK-NEXT: notifyOperationInserted: unregistered.bar
|
|
// CHECK-NEXT: notifyOperationInserted: unregistered.empty_dict
|
|
// CHECK-NEXT: notifyOperationInserted: unregistered.complex
|
|
// CHECK-NEXT: notifyOperationInserted: func.return
|
|
|
|
// CHECK-LABEL: func @clone_unregistered_with_attrs() {
|
|
// CHECK-NEXT: "unregistered.foo"() <{bar = 1 : i64, flag = true, name = "test", value = [[PI:.+]] : f32}> : () -> ()
|
|
// CHECK-NEXT: "unregistered.bar"() : () -> ()
|
|
// CHECK-NEXT: "unregistered.empty_dict"() <{}> : () -> ()
|
|
// CHECK-NEXT: "unregistered.complex"() <{array = [1, 2, 3], dict = {key1 = 42 : i32, key2 = "value"}, nested = {inner = {deep = 100 : i64}}}> : () -> ()
|
|
// CHECK-NEXT: "unregistered.foo"() <{bar = 1 : i64, flag = true, name = "test", value = [[PI]] : f32}> : () -> ()
|
|
// CHECK-NEXT: "unregistered.bar"() : () -> ()
|
|
// CHECK-NEXT: "unregistered.empty_dict"() <{}> : () -> ()
|
|
// CHECK-NEXT: "unregistered.complex"() <{array = [1, 2, 3], dict = {key1 = 42 : i32, key2 = "value"}, nested = {inner = {deep = 100 : i64}}}> : () -> ()
|