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
59 lines
1.9 KiB
Plaintext
59 lines
1.9 KiB
Plaintext
// RUN: cir-opt %s -verify-diagnostics -split-input-file
|
|
|
|
// -----
|
|
|
|
!u16i = !cir.int<u, 16>
|
|
!u32i = !cir.int<u, 32>
|
|
!struct1 = !cir.struct<"Struct1" {!u16i, !u32i}>
|
|
|
|
// expected-error@+1 {{member type of a #cir.data_member attribute must match the attribute type}}
|
|
#invalid_member_ty = #cir.data_member<0> : !cir.data_member<!u32i in !struct1>
|
|
|
|
// -----
|
|
|
|
!u16i = !cir.int<u, 16>
|
|
!incomplete_struct = !cir.struct<"Incomplete" incomplete>
|
|
|
|
// expected-error@+1 {{incomplete 'cir.record' cannot be used to build a non-null data member pointer}}
|
|
#incomplete_cls_member = #cir.data_member<0> : !cir.data_member<!u16i in !incomplete_struct>
|
|
|
|
// -----
|
|
|
|
!u16i = !cir.int<u, 16>
|
|
!u32i = !cir.int<u, 32>
|
|
!struct1 = !cir.struct<"Struct1" {!u16i, !u32i}>
|
|
|
|
// expected-error@+1 {{member index of a #cir.data_member attribute is out of range}}
|
|
#invalid_member_ty = #cir.data_member<2> : !cir.data_member<!u32i in !struct1>
|
|
|
|
// -----
|
|
|
|
!u16i = !cir.int<u, 16>
|
|
!u32i = !cir.int<u, 32>
|
|
!struct1 = !cir.struct<"Struct1" {!u16i, !u32i}>
|
|
!struct2 = !cir.struct<"Struct2" {!u16i, !u32i}>
|
|
|
|
module {
|
|
cir.func @invalid_base_type(%arg0 : !cir.data_member<!u32i in !struct1>) {
|
|
%0 = cir.alloca !struct2, !cir.ptr<!struct2>, ["tmp"] {alignment = 4 : i64}
|
|
// expected-error@+1 {{record type does not match the member pointer type}}
|
|
%1 = cir.get_runtime_member %0[%arg0 : !cir.data_member<!u32i in !struct1>] : !cir.ptr<!struct2> -> !cir.ptr<!u32i>
|
|
cir.return
|
|
}
|
|
}
|
|
|
|
// -----
|
|
|
|
!u16i = !cir.int<u, 16>
|
|
!u32i = !cir.int<u, 32>
|
|
!struct1 = !cir.struct<"Struct1" {!u16i, !u32i}>
|
|
|
|
module {
|
|
cir.func @invalid_base_type(%arg0 : !cir.data_member<!u32i in !struct1>) {
|
|
%0 = cir.alloca !struct1, !cir.ptr<!struct1>, ["tmp"] {alignment = 4 : i64}
|
|
// expected-error@+1 {{result type does not match the member pointer type}}
|
|
%1 = cir.get_runtime_member %0[%arg0 : !cir.data_member<!u32i in !struct1>] : !cir.ptr<!struct1> -> !cir.ptr<!u16i>
|
|
cir.return
|
|
}
|
|
}
|