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
111 lines
3.7 KiB
YAML
111 lines
3.7 KiB
YAML
# RUN: yaml2obj %s | llvm-dwarfdump --statistics - | FileCheck %s
|
|
|
|
## Check that coverage for variable locations which do not cover the parent
|
|
## scope is tracked separately in "sum_all_variables(#bytes in any scope
|
|
## covered by DW_AT_location)".
|
|
##
|
|
## The yaml represents this DWARF:
|
|
##
|
|
## DW_TAG_compile_unit
|
|
## DW_AT_low_pc (0x0000000000000000)
|
|
## DW_AT_high_pc (0x000000000000000b)
|
|
##
|
|
## DW_TAG_subprogram
|
|
## DW_AT_low_pc (0x0000000000000000)
|
|
## DW_AT_high_pc (0x000000000000000b)
|
|
##
|
|
## DW_TAG_lexical_block
|
|
## DW_AT_ranges (0x00000000
|
|
## [0x0000000000000000, 0x0000000000000003)
|
|
## [0x0000000000000005, 0x0000000000000008))
|
|
##
|
|
## // #bytes in parent scope: 6
|
|
## // #bytes in any scope covered by DW_AT_location: 6
|
|
## // #bytes in parent scope covered by DW_AT_location: 4
|
|
## DW_TAG_variable
|
|
## DW_AT_location (0x00000000:
|
|
## [0x0000000000000000, 0x0000000000000006): DW_OP_reg5 RDI)
|
|
##
|
|
## // #bytes in parent scope: 6
|
|
## // #bytes in any scope covered by DW_AT_location: 2
|
|
## // #bytes in parent scope covered by DW_AT_location: 0
|
|
## DW_TAG_variable
|
|
## DW_AT_location (0x00000023:
|
|
## [0x0000000000000003, 0x0000000000000005): DW_OP_reg2 RCX)
|
|
|
|
# CHECK: "version": 9,
|
|
# CHECK: "sum_all_variables(#bytes in parent scope)": 12,
|
|
# CHECK: "sum_all_variables(#bytes in any scope covered by DW_AT_location)": 8
|
|
# CHECK: "sum_all_variables(#bytes in parent scope covered by DW_AT_location)": 4
|
|
|
|
--- !ELF
|
|
FileHeader:
|
|
Class: ELFCLASS64
|
|
Data: ELFDATA2LSB
|
|
Type: ET_EXEC
|
|
Machine: EM_X86_64
|
|
Sections:
|
|
- Name: .debug_loc
|
|
Type: SHT_PROGBITS
|
|
AddressAlign: 0x01
|
|
Content: '00000000000000000600000000000000010055000000000000000000000000000000000300000000000000050000000000000001005200000000000000000000000000000000'
|
|
- Name: .debug_ranges
|
|
Type: SHT_PROGBITS
|
|
AddressAlign: 0x01
|
|
Content: '000000000000000003000000000000000500000000000000080000000000000000000000000000000000000000000000'
|
|
DWARF:
|
|
debug_abbrev:
|
|
- Table:
|
|
- Code: 1
|
|
Tag: DW_TAG_compile_unit
|
|
Children: DW_CHILDREN_yes
|
|
Attributes:
|
|
- Attribute: DW_AT_low_pc
|
|
Form: DW_FORM_addr
|
|
- Attribute: DW_AT_high_pc
|
|
Form: DW_FORM_data4
|
|
- Code: 2
|
|
Tag: DW_TAG_subprogram
|
|
Children: DW_CHILDREN_yes
|
|
Attributes:
|
|
- Attribute: DW_AT_low_pc
|
|
Form: DW_FORM_addr
|
|
- Attribute: DW_AT_high_pc
|
|
Form: DW_FORM_data4
|
|
- Code: 3
|
|
Tag: DW_TAG_lexical_block
|
|
Children: DW_CHILDREN_yes
|
|
Attributes:
|
|
- Attribute: DW_AT_ranges
|
|
Form: DW_FORM_sec_offset
|
|
- Code: 4
|
|
Tag: DW_TAG_variable
|
|
Children: DW_CHILDREN_no
|
|
Attributes:
|
|
- Attribute: DW_AT_location
|
|
Form: DW_FORM_sec_offset
|
|
debug_info:
|
|
- Version: 4
|
|
AbbrOffset: 0x00
|
|
Entries:
|
|
- AbbrCode: 1 ## DW_TAG_compile_unit
|
|
Values:
|
|
- Value: 0x00 ## DW_AT_low_pc
|
|
- Value: 0x0b ## DW_AT_high_pc
|
|
- AbbrCode: 2 ## DW_TAG_subprogram
|
|
Values:
|
|
- Value: 0x00 ## DW_AT_low_pc
|
|
- Value: 0x0b ## DW_AT_high_pc
|
|
- AbbrCode: 3 ## DW_TAG_lexical_block
|
|
Values:
|
|
- Value: 0x00 ## DW_AT_ranges
|
|
- AbbrCode: 4 ## DW_TAG_variable
|
|
Values:
|
|
- Value: 0x00 ## DW_AT_sec_offset
|
|
- AbbrCode: 4 ## DW_TAG_variable
|
|
Values:
|
|
- Value: 0x23 ## DW_AT_sec_offset
|
|
- AbbrCode: 0 ## NULL
|
|
- AbbrCode: 0 ## NULL
|
|
- AbbrCode: 0 ## NULL
|