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

Orlando Cazalet-Hyams via All-commits all-commits at lists.llvm.org
Wed May 21 09:21:39 PDT 2025


  Branch: refs/heads/users/OCHyams/ki-clang-extra-tests
  Home:   https://github.com/llvm/llvm-project
  Commit: 36537a2ede8874fd806d408b186ea33a7d4e1423
      https://github.com/llvm/llvm-project/commit/36537a2ede8874fd806d408b186ea33a7d4e1423
  Author: Orlando Cazalet-Hyams <orlando.hyams at sony.com>
  Date:   2025-05-21 (Wed, 21 May 2025)

  Changed paths:
    A clang/test/KeyInstructions/cast.c
    A clang/test/KeyInstructions/multi-func.c
    A clang/test/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: 68b1f156535fc429eb773672d9a433884a0a6dd9
      https://github.com/llvm/llvm-project/commit/68b1f156535fc429eb773672d9a433884a0a6dd9
  Author: Orlando Cazalet-Hyams <orlando.hyams at sony.com>
  Date:   2025-05-21 (Wed, 21 May 2025)

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

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


Compare: https://github.com/llvm/llvm-project/compare/c7f302e62c36...68b1f156535f

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