[all-commits] [llvm/llvm-project] 9bfc7f: [KeyInstr][Clang] Ret atom

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


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

  Changed paths:
    M clang/lib/CodeGen/CGCall.cpp
    M clang/lib/CodeGen/CGCleanup.cpp
    M clang/lib/CodeGen/CGStmt.cpp
    M clang/lib/CodeGen/CodeGenFunction.cpp
    A clang/test/KeyInstructions/return-va-arg.c
    A clang/test/KeyInstructions/return.c

  Log Message:
  -----------
  [KeyInstr][Clang] Ret atom

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


  Commit: afc9a0533ae5e8d56fb77ce835b3238929d9b77d
      https://github.com/llvm/llvm-project/commit/afc9a0533ae5e8d56fb77ce835b3238929d9b77d
  Author: Orlando Cazalet-Hyams <orlando.hyams at sony.com>
  Date:   2025-05-21 (Wed, 21 May 2025)

  Changed paths:
    M clang/test/DebugInfo/KeyInstructions/agg.c
    M clang/test/DebugInfo/KeyInstructions/assign-scalar.c
    M clang/test/DebugInfo/KeyInstructions/bitfield.cpp
    M clang/test/DebugInfo/KeyInstructions/complex.c
    M clang/test/DebugInfo/KeyInstructions/do.c
    M clang/test/DebugInfo/KeyInstructions/for.c
    M clang/test/DebugInfo/KeyInstructions/if.c
    M clang/test/DebugInfo/KeyInstructions/init-agg.c
    M clang/test/DebugInfo/KeyInstructions/init-member.cpp
    M clang/test/DebugInfo/KeyInstructions/init-scalar.c
    M clang/test/DebugInfo/KeyInstructions/init-static.cpp
    M clang/test/DebugInfo/KeyInstructions/switch.c
    M clang/test/DebugInfo/KeyInstructions/try-catch.cpp
    M clang/test/DebugInfo/KeyInstructions/while.c
    M clang/test/KeyInstructions/builtin.c

  Log Message:
  -----------
  [KeyInstr][Clang] Update tests with ret atoms


  Commit: 390d58b2b9607eb8165dd5aa8669e43f89fd1486
      https://github.com/llvm/llvm-project/commit/390d58b2b9607eb8165dd5aa8669e43f89fd1486
  Author: Orlando Cazalet-Hyams <orlando.hyams at sony.com>
  Date:   2025-05-21 (Wed, 21 May 2025)

  Changed paths:
    M clang/lib/CodeGen/CGCall.cpp
    M clang/lib/CodeGen/CodeGenFunction.cpp
    M clang/lib/CodeGen/CodeGenFunction.h
    M clang/test/DebugInfo/KeyInstructions/agg.c
    M clang/test/DebugInfo/KeyInstructions/assign-scalar.c
    M clang/test/DebugInfo/KeyInstructions/assign.c
    M clang/test/DebugInfo/KeyInstructions/bitfield.cpp
    M clang/test/DebugInfo/KeyInstructions/complex.c
    M clang/test/DebugInfo/KeyInstructions/do.c
    M clang/test/DebugInfo/KeyInstructions/for.c
    M clang/test/DebugInfo/KeyInstructions/if.c
    M clang/test/DebugInfo/KeyInstructions/init-agg.c
    M clang/test/DebugInfo/KeyInstructions/init-agg.cpp
    M clang/test/DebugInfo/KeyInstructions/init-member.cpp
    M clang/test/DebugInfo/KeyInstructions/init-scalar.c
    M clang/test/DebugInfo/KeyInstructions/init-static.cpp
    M clang/test/DebugInfo/KeyInstructions/switch.c
    M clang/test/DebugInfo/KeyInstructions/try-catch.cpp
    M clang/test/DebugInfo/KeyInstructions/while.c
    M clang/test/KeyInstructions/builtin.c

  Log Message:
  -----------
  fix rebase fallout - use new addInstToSpecificSourceAtom function, and fixup some tests


  Commit: a13e2d5558f2b5338f0dc815100a4eed7ace6691
      https://github.com/llvm/llvm-project/commit/a13e2d5558f2b5338f0dc815100a4eed7ace6691
  Author: Orlando Cazalet-Hyams <orlando.hyams at sony.com>
  Date:   2025-05-21 (Wed, 21 May 2025)

  Changed paths:
    M clang/test/KeyInstructions/return-va-arg.c
    M clang/test/KeyInstructions/return.c

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


Compare: https://github.com/llvm/llvm-project/compare/e5b6141602a8...a13e2d5558f2

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