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
89 lines
3.1 KiB
Plaintext
89 lines
3.1 KiB
Plaintext
// RUN: cir-opt %s -cir-cxxabi-lowering -o %t.cir
|
|
// RUN: FileCheck --input-file=%t.cir %s
|
|
|
|
!u8i = !cir.int<u, 8>
|
|
!s32i = !cir.int<s, 32>
|
|
!rec_Other = !cir.struct<"Other" padded {!u8i}>
|
|
!rec_Struct = !cir.struct<"Struct" {!cir.data_member<!s32i in !rec_Other>}>
|
|
// CHECK: !rec_Struct = !cir.struct<"Struct" {!s64i}>
|
|
|
|
!dmp = !cir.data_member<!s32i in !rec_Other>
|
|
!dmp_ptr = !cir.ptr<!cir.data_member<!s32i in !rec_Other>>
|
|
|
|
// cir::GlobalViewAttr
|
|
#global = #cir.global_view<@whatever> : !cir.ptr<!rec_Struct>
|
|
#global2 = #cir.global_view<@whatever> : !cir.ptr<!dmp>
|
|
#global3 = #cir.global_view<@whatever> : !cir.ptr<!dmp_ptr>
|
|
|
|
module attributes {cir.triple = "x86_64-unknown-linux-gnu"} {
|
|
|
|
cir.func @helper() {
|
|
// cir::ZeroAttr: Needs struct, array, vector, or complex, so no dmp.
|
|
%zero1 = cir.const #cir.zero : !rec_Struct
|
|
// CHECK: cir.const #cir.zero : !rec_Struct
|
|
|
|
// cir::PoisonAttr
|
|
%poison1 = cir.const #cir.poison : !rec_Struct
|
|
// CHECK: cir.const #cir.poison : !rec_Struct
|
|
|
|
// cir::UndefAttr
|
|
%undef1 = cir.const #cir.undef : !rec_Struct
|
|
// CHECK: cir.const #cir.undef : !rec_Struct
|
|
|
|
// cir::ConstPtrAttr
|
|
%constptr1 = cir.const #cir.ptr<null> : !cir.ptr<!rec_Struct>
|
|
// CHECK: cir.const #cir.ptr<null> : !cir.ptr<!rec_Struct>
|
|
%constptr2 = cir.const #cir.ptr<null> : !dmp_ptr
|
|
// CHECK: cir.const #cir.ptr<null> : !cir.ptr<!s64i>
|
|
|
|
// cir::ConstRecordAttr
|
|
%constrecord = cir.const #cir.const_record<{#cir.data_member<null> : !dmp }> : !rec_Struct
|
|
// CHECK: cir.const #cir.const_record<{#cir.int<-1> : !s64i}> : !rec_Struct
|
|
|
|
// Array, ConstArray, Dictionary, VTable, DynamicCastInfo, and TypeInfo
|
|
// Attrs don't really allow getting a 'bad' type into them. We attempt to
|
|
// transform them anyway, but they'll probably never fail the legalizer.
|
|
|
|
cir.trap
|
|
}
|
|
|
|
// cir::TypeAttr: function type is a type attr, so this shows it converting.
|
|
cir.func @TypeAttrs(%arg0 : !rec_Struct, %arg1 : !dmp, %arg2 : !dmp_ptr) -> (!rec_Struct) {
|
|
// CHECK: cir.func @TypeAttrs(%arg0: !rec_Struct, %arg1: !s64i, %arg2: !cir.ptr<!s64i>) -> !rec_Struct {
|
|
cir.trap
|
|
}
|
|
|
|
// cir::CXXCtorAttr
|
|
cir.func @ctor() special_member<#cir.cxx_ctor<!rec_Struct, default>> {
|
|
// CHECK: cir.func @ctor() special_member<#cir.cxx_ctor<!rec_Struct, default>> {
|
|
cir.trap
|
|
}
|
|
|
|
cir.func @ctor2() special_member<#cir.cxx_ctor<!dmp, default>> {
|
|
// CHECK: cir.func @ctor2() special_member<#cir.cxx_ctor<!s64i, default>> {
|
|
cir.trap
|
|
}
|
|
|
|
// cir::CXXDtorAttr
|
|
cir.func @dtor() special_member<#cir.cxx_dtor<!rec_Struct>> {
|
|
// CHECK: cir.func @dtor() special_member<#cir.cxx_dtor<!rec_Struct>> {
|
|
cir.trap
|
|
}
|
|
|
|
cir.func @dtor2() special_member<#cir.cxx_dtor<!dmp>> {
|
|
// CHECK: cir.func @dtor2() special_member<#cir.cxx_dtor<!s64i>> {
|
|
cir.trap
|
|
}
|
|
|
|
// cir::CXXAssignAttr
|
|
cir.func @assign() special_member<#cir.cxx_assign<!rec_Struct, move>> {
|
|
// CHECK: cir.func @assign() special_member<#cir.cxx_assign<!rec_Struct, move>> {
|
|
cir.trap
|
|
}
|
|
|
|
cir.func @assign2() special_member<#cir.cxx_assign<!dmp, move>> {
|
|
// CHECK: cir.func @assign2() special_member<#cir.cxx_assign<!s64i, move>> {
|
|
cir.trap
|
|
}
|
|
}
|