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
60 lines
3.2 KiB
LLVM
60 lines
3.2 KiB
LLVM
; RUN: llc -mtriple=bpfel -filetype=obj -o %t1 %s
|
|
; RUN: llvm-objcopy --dump-section='.BTF'=%t2 %t1
|
|
; RUN: %python %p/print_btf.py %t2 | FileCheck -check-prefixes=CHECK-BTF %s
|
|
; RUN: llc -mtriple=bpfeb -filetype=obj -o %t1 %s
|
|
; RUN: llvm-objcopy --dump-section='.BTF'=%t2 %t1
|
|
; RUN: %python %p/print_btf.py %t2 | FileCheck -check-prefixes=CHECK-BTF %s
|
|
;
|
|
; This IR is hand-written.
|
|
|
|
; ModuleID = 'ptr-named-2.ll'
|
|
source_filename = "ptr-named-2.ll"
|
|
target datalayout = "e-m:e-p:64:64-i64:64-i128:128-n32:64-S128"
|
|
target triple = "bpfel-unknown-none"
|
|
|
|
%struct.TypeExamples = type { ptr, i32, i32, ptr }
|
|
|
|
@type_examples = internal global %struct.TypeExamples zeroinitializer, align 8, !dbg !0
|
|
|
|
!llvm.dbg.cu = !{!1}
|
|
!llvm.module.flags = !{!2, !3, !4}
|
|
!llvm.ident = !{!21}
|
|
|
|
; CHECK-BTF: [1] STRUCT 'TypeExamples' size=32 vlen=4
|
|
; CHECK-BTF-NEXT: 'ptr' type_id=2 bits_offset=0
|
|
; CHECK-BTF-NEXT: 'volatile' type_id=4 bits_offset=64
|
|
; CHECK-BTF-NEXT: 'const' type_id=5 bits_offset=128
|
|
; CHECK-BTF-NEXT: 'restrict_ptr' type_id=6 bits_offset=192
|
|
; CHECK-BTF-NEXT: [2] PTR '(anon)' type_id=3
|
|
; CHECK-BTF-NEXT: [3] INT 'int' size=4 bits_offset=0 nr_bits=32 encoding=SIGNED
|
|
; CHECK-BTF-NEXT: [4] VOLATILE '(anon)' type_id=3
|
|
; CHECK-BTF-NEXT: [5] CONST '(anon)' type_id=3
|
|
; CHECK-BTF-NEXT: [6] RESTRICT '(anon)' type_id=7
|
|
; CHECK-BTF-NEXT: [7] PTR '(anon)' type_id=3
|
|
; CHECK-BTF-NEXT: [8] VAR 'type_examples' type_id=1, linkage=static
|
|
; CHECK-BTF-NEXT: [9] DATASEC '.bss' size=0 vlen=1
|
|
; CHECK-BTF-NEXT: type_id=8 offset=0 size=24
|
|
|
|
!0 = !DIGlobalVariableExpression(var: !5, expr: !DIExpression())
|
|
!1 = distinct !DICompileUnit(language: DW_LANG_C99, file: !6, isOptimized: false, runtimeVersion: 0, emissionKind: FullDebug, enums: !7, globals: !8, splitDebugInlining: false, nameTableKind: None)
|
|
!2 = !{i32 2, !"Dwarf Version", i32 4}
|
|
!3 = !{i32 2, !"Debug Info Version", i32 3}
|
|
!4 = !{i32 1, !"wchar_size", i32 4}
|
|
!5 = distinct !DIGlobalVariable(name: "type_examples", scope: !1, file: !6, line: 12, type: !9, isLocal: true, isDefinition: true)
|
|
!6 = !DIFile(filename: "ptr-named-2.ll", directory: "/tmp")
|
|
!7 = !{}
|
|
!8 = !{!0}
|
|
!9 = distinct !DICompositeType(tag: DW_TAG_structure_type, name: "TypeExamples", file: !6, line: 5, size: 256, elements: !10)
|
|
!10 = !{!11, !12, !13, !14}
|
|
!11 = !DIDerivedType(tag: DW_TAG_member, name: "ptr", scope: !9, file: !6, line: 6, baseType: !15, size: 64)
|
|
!12 = !DIDerivedType(tag: DW_TAG_member, name: "volatile", scope: !9, file: !6, line: 7, baseType: !17, size: 64, offset: 64)
|
|
!13 = !DIDerivedType(tag: DW_TAG_member, name: "const", scope: !9, file: !6, line: 8, baseType: !18, size: 64, offset: 128)
|
|
!14 = !DIDerivedType(tag: DW_TAG_member, name: "restrict_ptr", scope: !9, file: !6, line: 9, baseType: !19, size: 64, offset: 192)
|
|
!15 = !DIDerivedType(tag: DW_TAG_pointer_type, name: "*int", baseType: !16, size: 64)
|
|
!16 = !DIBasicType(name: "int", size: 32, encoding: DW_ATE_signed)
|
|
!17 = !DIDerivedType(tag: DW_TAG_volatile_type, name: "volatile int", baseType: !16)
|
|
!18 = !DIDerivedType(tag: DW_TAG_const_type, name: "const int", baseType: !16)
|
|
!19 = !DIDerivedType(tag: DW_TAG_restrict_type, name: "*int restrict", baseType: !20)
|
|
!20 = !DIDerivedType(tag: DW_TAG_pointer_type, baseType: !16, size: 64)
|
|
!21 = !{!"my hand-written IR"}
|