Files
TheRock/compiler/amd-llvm/llvm/test/tools/llvm-dwarfdump/X86/callsite-in-lexical-block.s
T
derek.holloway 7502bf64a4
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
Flatten subprojects into a single base monorepo
2026-09-02 16:34:47 -07:00

105 lines
3.8 KiB
ArmAsm

## Test that llvm-dwarfdump --verify correctly handles DW_TAG_call_site
## nested inside a DW_TAG_lexical_block. Previously, the parent-walking
## loop in verifyDebugInfoCallSite() used Die.getParent() instead of
## Curr.getParent(), causing an infinite loop when the call_site's
## immediate parent was not a subprogram (e.g., a lexical_block).
# RUN: yaml2obj %s -o - | llvm-dwarfdump --verify - 2>&1 | FileCheck %s
# CHECK: No errors.
--- !ELF
FileHeader:
Class: ELFCLASS64
Data: ELFDATA2LSB
Type: ET_EXEC
Machine: EM_X86_64
DWARF:
debug_str:
- "callee"
- "caller"
debug_abbrev:
- Table:
- Code: 0x00000001
Tag: DW_TAG_compile_unit
Children: DW_CHILDREN_yes
Attributes:
- Attribute: DW_AT_low_pc
Form: DW_FORM_addr
- Code: 0x00000002
Tag: DW_TAG_subprogram
Children: DW_CHILDREN_no
Attributes:
- Attribute: DW_AT_name
Form: DW_FORM_strp
- Attribute: DW_AT_low_pc
Form: DW_FORM_addr
- Attribute: DW_AT_high_pc
Form: DW_FORM_data4
- Code: 0x00000003
Tag: DW_TAG_subprogram
Children: DW_CHILDREN_yes
Attributes:
- Attribute: DW_AT_name
Form: DW_FORM_strp
- Attribute: DW_AT_low_pc
Form: DW_FORM_addr
- Attribute: DW_AT_high_pc
Form: DW_FORM_data4
- Attribute: DW_AT_call_all_calls
Form: DW_FORM_flag_present
- Code: 0x00000004
Tag: DW_TAG_lexical_block
Children: DW_CHILDREN_yes
Attributes:
- Attribute: DW_AT_low_pc
Form: DW_FORM_addr
- Attribute: DW_AT_high_pc
Form: DW_FORM_data4
- Code: 0x00000005
Tag: DW_TAG_call_site
Children: DW_CHILDREN_no
Attributes:
- Attribute: DW_AT_call_origin
Form: DW_FORM_ref4
debug_info:
- Version: 5
UnitType: DW_UT_compile
AbbrOffset: 0x00000000
AddrSize: 8
Entries:
# DW_TAG_compile_unit
- AbbrCode: 0x00000001
Values:
- Value: 0x0000000000000000 # DW_AT_low_pc
# DW_TAG_subprogram (callee) - offset will be 0x0c + some bytes
- AbbrCode: 0x00000002
Values:
- Value: 0x0000000000000000 # DW_AT_name -> "callee"
- Value: 0x0000000000003000 # DW_AT_low_pc
- Value: 0x0000000000000010 # DW_AT_high_pc
# DW_TAG_subprogram (caller, with DW_AT_call_all_calls)
- AbbrCode: 0x00000003
Values:
- Value: 0x0000000000000007 # DW_AT_name -> "caller"
- Value: 0x0000000000001000 # DW_AT_low_pc
- Value: 0x0000000000000100 # DW_AT_high_pc
# DW_TAG_lexical_block (child of caller)
- AbbrCode: 0x00000004
Values:
- Value: 0x0000000000001000 # DW_AT_low_pc
- Value: 0x0000000000000080 # DW_AT_high_pc
# DW_TAG_call_site (child of lexical_block)
- AbbrCode: 0x00000005
Values:
- Value: 0x0000000000000015 # DW_AT_call_origin -> callee subprogram
- AbbrCode: 0x00000000 # end lexical_block
Values: []
- AbbrCode: 0x00000000 # end caller subprogram
Values: []
- AbbrCode: 0x00000000 # end compile_unit
Values: []
...