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
41 lines
3.3 KiB
Plaintext
41 lines
3.3 KiB
Plaintext
// NOTE: Assertions have been autogenerated by utils/update_cc_test_checks.py UTC_ARGS: --version 5
|
|
// REQUIRES: amdgpu-registered-target
|
|
// RUN: %clang_cc1 -triple amdgcn-amd-amdhsa -x hip -emit-llvm -fcuda-is-device -debug-info-kind=limited -gheterogeneous-dwarf -o - %s | FileCheck %s
|
|
|
|
#define __device__ __attribute__((device))
|
|
|
|
// CHECK-LABEL: define dso_local void @_Z7kernel1v(
|
|
// CHECK-SAME: ) #[[ATTR0:[0-9]+]] !dbg [[DBG7:![0-9]+]] {
|
|
// CHECK-NEXT: [[ENTRY:.*:]]
|
|
// CHECK-NEXT: [[TMP0:%.*]] = alloca [[UNION_ANON:%.*]], align 4, addrspace(5)
|
|
// CHECK-NEXT: [[TMP1:%.*]] = addrspacecast ptr addrspace(5) [[TMP0]] to ptr
|
|
// CHECK-NEXT: #dbg_declare(ptr addrspace(5) [[TMP0]], [[META18:![0-9]+]], !DIExpression(DIOpArg(0, ptr addrspace(5)), DIOpDeref([[UNION_ANON]])), [[META21:![0-9]+]])
|
|
// CHECK-NEXT: #dbg_declare(ptr addrspace(5) [[TMP0]], [[META19:![0-9]+]], !DIExpression(DIOpArg(0, ptr addrspace(5)), DIOpDeref([[UNION_ANON]])), [[META21]])
|
|
// CHECK-NEXT: #dbg_declare(ptr addrspace(5) [[TMP0]], [[META20:![0-9]+]], !DIExpression(DIOpArg(0, ptr addrspace(5)), DIOpDeref([[UNION_ANON]])), [[META21]])
|
|
// CHECK-NEXT: ret void, !dbg [[DBG22:![0-9]+]]
|
|
//
|
|
__device__ void kernel1() {
|
|
union { int x; float f; };
|
|
}
|
|
|
|
//.
|
|
// CHECK: [[META0:![0-9]+]] = distinct !DICompileUnit(language: DW_LANG_HIP, file: [[META1:![0-9]+]], producer: "{{.*}}clang version {{.*}}", isOptimized: false, runtimeVersion: 0, emissionKind: FullDebug, splitDebugInlining: false, nameTableKind: None)
|
|
// CHECK: [[META1]] = !DIFile(filename: "{{.*}}/clang/test/CodeGenHIP/<stdin>", directory: "")
|
|
// CHECK: [[DBG7]] = distinct !DISubprogram(name: "kernel1", linkageName: "_Z7kernel1v", scope: [[META8:![0-9]+]], file: [[META8]], line: 17, type: [[META9:![0-9]+]], scopeLine: 17, flags: DIFlagPrototyped, spFlags: DISPFlagDefinition, unit: [[META0]], retainedNodes: [[META11:![0-9]+]])
|
|
// CHECK: [[META8]] = !DIFile(filename: "{{.*}}/clang/test/CodeGenHIP/debug-info-anonymous-union-heterogeneous-dwarf.hip", directory: "")
|
|
// CHECK: [[META9]] = !DISubroutineType(types: [[META10:![0-9]+]])
|
|
// CHECK: [[META10]] = !{null}
|
|
// CHECK: [[META11]] = !{[[META12:![0-9]+]], [[META18]], [[META19]], [[META20]]}
|
|
// CHECK: [[META12]] = distinct !DICompositeType(tag: DW_TAG_union_type, scope: [[DBG7]], file: [[META8]], line: 18, size: 32, flags: DIFlagExportSymbols | DIFlagTypePassByValue, elements: [[META13:![0-9]+]])
|
|
// CHECK: [[META13]] = !{[[META14:![0-9]+]], [[META16:![0-9]+]]}
|
|
// CHECK: [[META14]] = !DIDerivedType(tag: DW_TAG_member, name: "x", scope: [[META12]], file: [[META8]], line: 18, baseType: [[META15:![0-9]+]], size: 32)
|
|
// CHECK: [[META15]] = !DIBasicType(name: "int", size: 32, encoding: DW_ATE_signed)
|
|
// CHECK: [[META16]] = !DIDerivedType(tag: DW_TAG_member, name: "f", scope: [[META12]], file: [[META8]], line: 18, baseType: [[META17:![0-9]+]], size: 32)
|
|
// CHECK: [[META17]] = !DIBasicType(name: "float", size: 32, encoding: DW_ATE_float)
|
|
// CHECK: [[META18]] = !DILocalVariable(name: "x", scope: [[DBG7]], type: [[META15]], flags: DIFlagArtificial)
|
|
// CHECK: [[META19]] = !DILocalVariable(name: "f", scope: [[DBG7]], type: [[META17]], flags: DIFlagArtificial)
|
|
// CHECK: [[META20]] = !DILocalVariable(scope: [[DBG7]], type: [[META12]], flags: DIFlagArtificial)
|
|
// CHECK: [[META21]] = !DILocation(line: 0, scope: [[DBG7]])
|
|
// CHECK: [[DBG22]] = !DILocation(line: 19, column: 1, scope: [[DBG7]])
|
|
//.
|