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
49 lines
2.9 KiB
Plaintext
49 lines
2.9 KiB
Plaintext
# RUN: llvm-mc -filetype=obj %S/Inputs/unused-inlined-params.s \
|
|
# RUN: -triple x86_64-pc-linux -o %t.o
|
|
# RUN: %lldb %t.o -s %s -o exit | FileCheck %s
|
|
|
|
|
|
# In this test we verify that inlined functions still mention
|
|
# all their parameters in `frame variable`, even when those
|
|
# parameters were completely optimized away from the concrete
|
|
# instance of the inlined function in the debug info.
|
|
# The debugger should look up the parameters in the abstract
|
|
# origin of the concrete instance.
|
|
|
|
# Let us check that unused parameters of an inlined function are listed
|
|
# at the inlined function entry.
|
|
image lookup -v -s break_at_inlined_f_in_main
|
|
# CHECK-LABEL: image lookup -v -s break_at_inlined_f_in_main
|
|
# CHECK: name = "unused1", type = "void *", valid ranges = <block>, location = <empty>
|
|
# CHECK: name = "used", type = "int", valid ranges = <block>, location = [0x0000000000000011, 0x0000000000000014) -> DW_OP_consts +42
|
|
# CHECK: name = "unused2", type = "int", valid ranges = <block>, location = <empty>
|
|
# CHECK: name = "partial", type = "int", valid ranges = <block>, location = [0x0000000000000011, 0x0000000000000019) -> DW_OP_reg4 RSI
|
|
# CHECK: name = "unused3", type = "int", valid ranges = <block>, location = <empty>
|
|
|
|
# Show variables outsid of the live range of the 'partial' parameter
|
|
# and verify that the output is as expected.
|
|
image lookup -v -s break_at_inlined_f_in_main_between_printfs
|
|
# CHECK-LABEL: image lookup -v -s break_at_inlined_f_in_main_between_printfs
|
|
# CHECK: name = "unused1", type = "void *", valid ranges = <block>, location = <empty>
|
|
# CHECK: name = "used", type = "int", valid ranges = <block>, location = [0x0000000000000014, 0x000000000000001e) -> DW_OP_reg3 RBX
|
|
# CHECK: name = "unused2", type = "int", valid ranges = <block>, location = <empty>
|
|
# Note: image lookup does not show variables outside of their
|
|
# location, so |partial| is missing here.
|
|
# CHECK-NOT: partial
|
|
# CHECK: name = "unused3", type = "int", valid ranges = <block>, location = <empty>
|
|
|
|
# Check that we show parameters even if all of them are compiled away.
|
|
image lookup -v -s break_at_inlined_g_in_main
|
|
# CHECK-LABEL: image lookup -v -s break_at_inlined_g_in_main
|
|
# CHECK: name = "unused", type = "int", valid ranges = <block>, location = <empty>
|
|
|
|
# Check that even the other inlined instance of f displays the correct
|
|
# parameters.
|
|
image lookup -v -s break_at_inlined_f_in_other
|
|
# CHECK-LABEL: image lookup -v -s break_at_inlined_f_in_other
|
|
# CHECK: name = "unused1", type = "void *", valid ranges = <block>, location = <empty>
|
|
# CHECK: name = "used", type = "int", valid ranges = <block>, location = [0x0000000000000001, 0x000000000000000b) -> DW_OP_consts +1
|
|
# CHECK: name = "unused2", type = "int", valid ranges = <block>, location = <empty>
|
|
# CHECK: name = "partial", type = "int", valid ranges = <block>, location = [0x0000000000000001, 0x0000000000000006) -> DW_OP_consts +2
|
|
# CHECK: name = "unused3", type = "int", valid ranges = <block>, location = <empty>
|