[all-commits] [llvm/llvm-project] 5c7ac1: [KeyInstr][Clang] For range stmt atoms

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


  Branch: refs/heads/users/OCHyams/ki-clang-for-range
  Home:   https://github.com/llvm/llvm-project
  Commit: 5c7ac16d5099b192f25f17ec58dbe89cb43a7bca
      https://github.com/llvm/llvm-project/commit/5c7ac16d5099b192f25f17ec58dbe89cb43a7bca
  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
    A clang/test/DebugInfo/KeyInstructions/for-range.cpp

  Log Message:
  -----------
  [KeyInstr][Clang] For range stmt atoms

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: 254e88bf6fc8929857f1b3f58981ff2d08621a57
      https://github.com/llvm/llvm-project/commit/254e88bf6fc8929857f1b3f58981ff2d08621a57
  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
    M clang/test/DebugInfo/KeyInstructions/for-range.cpp

  Log Message:
  -----------
  cc1 + nits


  Commit: 29bd054a24a54b2860979b0e97f1af2bb3e73eab
      https://github.com/llvm/llvm-project/commit/29bd054a24a54b2860979b0e97f1af2bb3e73eab
  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
    M clang/test/DebugInfo/KeyInstructions/for-range.cpp

  Log Message:
  -----------
  style nits


  Commit: f01b5ff93acb062de911dd5922731fa89f2160a0
      https://github.com/llvm/llvm-project/commit/f01b5ff93acb062de911dd5922731fa89f2160a0
  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
    M clang/test/DebugInfo/KeyInstructions/for-range.cpp

  Log Message:
  -----------
  fix body-with-cfg br atom, in line with for loop patch


Compare: https://github.com/llvm/llvm-project/compare/9e7139bf5f62...f01b5ff93acb

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