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
105 lines
3.1 KiB
MLIR
105 lines
3.1 KiB
MLIR
// RUN: mlir-opt %s -split-input-file -verify-diagnostics | FileCheck %s
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
// Test OpAsmOpInterface
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
func.func @result_name_from_op_asm_type_interface() {
|
|
// CHECK-LABEL: @result_name_from_op_asm_type_interface
|
|
// CHECK: %op_asm_type_interface
|
|
%0 = "test.result_name_from_type"() : () -> !test.op_asm_type_interface
|
|
return
|
|
}
|
|
|
|
// -----
|
|
|
|
func.func @block_argument_name_from_op_asm_type_interface() {
|
|
// CHECK-LABEL: @block_argument_name_from_op_asm_type_interface
|
|
// CHECK: ^bb0(%op_asm_type_interface
|
|
test.block_argument_name_from_type {
|
|
^bb0(%arg0: !test.op_asm_type_interface):
|
|
"test.terminator"() : ()->()
|
|
}
|
|
return
|
|
}
|
|
|
|
// -----
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
// Test OpAsmTypeInterface
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
func.func @result_name_from_op_asm_type_interface_asmprinter() {
|
|
// CHECK-LABEL: @result_name_from_op_asm_type_interface_asmprinter
|
|
// CHECK: %op_asm_type_interface
|
|
%0 = "test.result_name_from_type_interface"() : () -> !test.op_asm_type_interface
|
|
return
|
|
}
|
|
|
|
// -----
|
|
|
|
// i1 does not have OpAsmTypeInterface, should not get named.
|
|
func.func @result_name_from_op_asm_type_interface_not_all() {
|
|
// CHECK-LABEL: @result_name_from_op_asm_type_interface_not_all
|
|
// CHECK-NOT: %op_asm_type_interface
|
|
// CHECK: %0:2
|
|
%0:2 = "test.result_name_from_type_interface"() : () -> (!test.op_asm_type_interface, i1)
|
|
return
|
|
}
|
|
|
|
// -----
|
|
|
|
func.func @block_argument_name_from_op_asm_type_interface_asmprinter() {
|
|
// CHECK-LABEL: @block_argument_name_from_op_asm_type_interface_asmprinter
|
|
// CHECK: ^bb0(%op_asm_type_interface
|
|
test.block_argument_name_from_type_interface {
|
|
^bb0(%arg0: !test.op_asm_type_interface):
|
|
"test.terminator"() : ()->()
|
|
}
|
|
return
|
|
}
|
|
|
|
// -----
|
|
|
|
// CHECK: !op_asm_type_interface_type =
|
|
!type = !test.op_asm_type_interface
|
|
|
|
func.func @alias_from_op_asm_type_interface() {
|
|
%0 = "test.result_name_from_type"() : () -> !type
|
|
return
|
|
}
|
|
|
|
// -----
|
|
|
|
// CHECK: !op_asm_type_interface_tablegen_default =
|
|
!type = !test.op_asm_type_interface_tablegen_default
|
|
|
|
func.func @alias_from_op_asm_type_interface_tablegen_default() {
|
|
%0 = "test.result_name_from_type"() : () -> !type
|
|
return
|
|
}
|
|
|
|
// -----
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
// Test OpAsmAttrInterface
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
// CHECK: #op_asm_attr_interface_test
|
|
#attr = #test.op_asm_attr_interface<value = "test">
|
|
|
|
func.func @test_op_asm_attr_interface() {
|
|
%1 = "test.result_name_from_type"() {attr = #attr} : () -> !test.op_asm_type_interface
|
|
return
|
|
}
|
|
|
|
// -----
|
|
|
|
// CHECK: #op_asm_attr_interface_tablegen_default
|
|
#attr = #test.op_asm_attr_interface_tablegen_default<value = "test">
|
|
|
|
func.func @test_op_asm_attr_interface() {
|
|
%1 = "test.result_name_from_type"() {attr = #attr} : () -> !test.op_asm_type_interface
|
|
return
|
|
}
|