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

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


  Branch: refs/heads/users/OCHyams/ki-clang-ret
  Home:   https://github.com/llvm/llvm-project
  Commit: fc97db31e40af460d2d6a2ba6df94f932cb1c8cb
      https://github.com/llvm/llvm-project/commit/fc97db31e40af460d2d6a2ba6df94f932cb1c8cb
  Author: Orlando Cazalet-Hyams <orlando.hyams at sony.com>
  Date:   2025-06-03 (Tue, 03 Jun 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/DebugInfo/KeyInstructions/return-va-arg.c
    A clang/test/DebugInfo/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: e692b9a3e6d76b19e666005704ba29be64efdb57
      https://github.com/llvm/llvm-project/commit/e692b9a3e6d76b19e666005704ba29be64efdb57
  Author: Orlando Cazalet-Hyams <orlando.hyams at sony.com>
  Date:   2025-06-03 (Tue, 03 Jun 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/builtin.c
    M clang/test/DebugInfo/KeyInstructions/complex.c
    M clang/test/DebugInfo/KeyInstructions/do.c
    A 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

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


  Commit: 64594a835536e1401712826af42347e0e2ebb683
      https://github.com/llvm/llvm-project/commit/64594a835536e1401712826af42347e0e2ebb683
  Author: Orlando Cazalet-Hyams <orlando.hyams at sony.com>
  Date:   2025-06-03 (Tue, 03 Jun 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
    A clang/test/DebugInfo/KeyInstructions/assign.c
    M clang/test/DebugInfo/KeyInstructions/bitfield.cpp
    M clang/test/DebugInfo/KeyInstructions/builtin.c
    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
    A 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

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


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

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

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


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

  Changed paths:
    M clang/lib/CodeGen/CodeGenFunction.cpp

  Log Message:
  -----------
  rm rebase weirdness


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

  Changed paths:
    M clang/lib/CodeGen/CodeGenFunction.cpp

  Log Message:
  -----------
  rm cruft


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

  Changed paths:
    R clang/test/DebugInfo/KeyInstructions/for.c

  Log Message:
  -----------
  rm test not yet in main


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

  Changed paths:
    M clang/test/DebugInfo/KeyInstructions/assign-scalar.c
    M clang/test/DebugInfo/KeyInstructions/builtin.c
    M clang/test/DebugInfo/KeyInstructions/complex.c
    M clang/test/DebugInfo/KeyInstructions/multi-func.c
    M clang/test/DebugInfo/KeyInstructions/return-va-arg.c
    M clang/test/DebugInfo/KeyInstructions/return.c

  Log Message:
  -----------
  fix tests


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

  Changed paths:
    R clang/test/DebugInfo/KeyInstructions/assign.c
    R clang/test/DebugInfo/KeyInstructions/init-agg.cpp
    R clang/test/DebugInfo/KeyInstructions/init-member.cpp

  Log Message:
  -----------
  rm tests introduced in flaky rebase


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

  Changed paths:
    M clang/lib/CodeGen/CGStmt.cpp

  Log Message:
  -----------
  rm comment - don't need to mark sanitizer stores as key


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

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