[all-commits] [llvm/llvm-project] 79d3f9: [NFC][KeyInstr][Clang] Add some additional tests

Orlando Cazalet-Hyams via All-commits all-commits at lists.llvm.org
Tue Jun 3 06:12:49 PDT 2025


  Branch: refs/heads/users/OCHyams/ki-clang-extra-tests
  Home:   https://github.com/llvm/llvm-project
  Commit: 79d3f9c4eb1491789aa288c2b379e85736d8ce74
      https://github.com/llvm/llvm-project/commit/79d3f9c4eb1491789aa288c2b379e85736d8ce74
  Author: Orlando Cazalet-Hyams <orlando.hyams at sony.com>
  Date:   2025-06-03 (Tue, 03 Jun 2025)

  Changed paths:
    A clang/test/DebugInfo/KeyInstructions/cast.c
    R clang/test/DebugInfo/KeyInstructions/multi-func.c
    A clang/test/DebugInfo/KeyInstructions/new.cpp

  Log Message:
  -----------
  [NFC][KeyInstr][Clang] Add some additional tests

This patch is part of a stack that teaches Clang to generate Key Instructions
metadata for C and C++.

The Key Instructions project is introduced, including a "quick summary" section
at the top which adds context for this PR, here:
https://discourse.llvm.org/t/rfc-improving-is-stmt-placement-for-better-interactive-debugging/82668

The feature is only functional in LLVM if LLVM is built with CMake flag
LLVM_EXPERIMENTAL_KEY_INSTRUCTIONs. Eventually that flag will be removed.

The Clang-side work is demoed here:
https://github.com/llvm/llvm-project/pull/130943

new.cpp: Check store of addr and value are both added to same atom
cast.c: Check we look through casts
multi-func.c Check the atom group number is reset between functions


  Commit: d868b8ae4896fb56b4e0506ea4b6bf43d64003b5
      https://github.com/llvm/llvm-project/commit/d868b8ae4896fb56b4e0506ea4b6bf43d64003b5
  Author: Orlando Cazalet-Hyams <orlando.hyams at sony.com>
  Date:   2025-06-03 (Tue, 03 Jun 2025)

  Changed paths:
    M clang/test/DebugInfo/KeyInstructions/cast.c
    M clang/test/DebugInfo/KeyInstructions/new.cpp
    A clang/test/KeyInstructions/multi-func.c

  Log Message:
  -----------
  cc1


  Commit: 1c08ea3b2fd4d7251ede62864ec33030c7c88c14
      https://github.com/llvm/llvm-project/commit/1c08ea3b2fd4d7251ede62864ec33030c7c88c14
  Author: Orlando Cazalet-Hyams <orlando.hyams at sony.com>
  Date:   2025-06-03 (Tue, 03 Jun 2025)

  Changed paths:
    M clang/test/DebugInfo/KeyInstructions/cast.c
    M clang/test/DebugInfo/KeyInstructions/new.cpp

  Log Message:
  -----------
  fixtests


  Commit: cc1f8b021dc7acfdda08f1316977c0f608eb6369
      https://github.com/llvm/llvm-project/commit/cc1f8b021dc7acfdda08f1316977c0f608eb6369
  Author: Orlando Cazalet-Hyams <orlando.hyams at sony.com>
  Date:   2025-06-03 (Tue, 03 Jun 2025)

  Changed paths:
    A clang/test/DebugInfo/KeyInstructions/multi-func.c
    R clang/test/KeyInstructions/multi-func.c

  Log Message:
  -----------
  restore deleted test


  Commit: d4c02a51a01ca736a304be221daa35a992683647
      https://github.com/llvm/llvm-project/commit/d4c02a51a01ca736a304be221daa35a992683647
  Author: Orlando Cazalet-Hyams <orlando.hyams at sony.com>
  Date:   2025-06-03 (Tue, 03 Jun 2025)

  Changed paths:
    M clang/test/DebugInfo/KeyInstructions/cast.c

  Log Message:
  -----------
  add test comment


Compare: https://github.com/llvm/llvm-project/compare/f04cb03cdaff...d4c02a51a01c

To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list