[all-commits] [llvm/llvm-project] 0c7a83: [KeyInstr][Clang] For stmt atom

Orlando Cazalet-Hyams via All-commits all-commits at lists.llvm.org
Wed May 28 03:56:52 PDT 2025


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

  Changed paths:
    M clang/lib/CodeGen/CGStmt.cpp
    A clang/test/DebugInfo/KeyInstructions/for.c

  Log Message:
  -----------
  [KeyInstr][Clang] For stmt 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: 396ab05c30824352812599cd1ea9847387c7829c
      https://github.com/llvm/llvm-project/commit/396ab05c30824352812599cd1ea9847387c7829c
  Author: Orlando Cazalet-Hyams <orlando.hyams at sony.com>
  Date:   2025-05-28 (Wed, 28 May 2025)

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

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


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

  Changed paths:
    M clang/lib/CodeGen/CGStmt.cpp
    M clang/test/DebugInfo/KeyInstructions/for.c

  Log Message:
  -----------
  nit: shadowed var, test triple


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

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

  Log Message:
  -----------
  improve test comments


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

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

  Log Message:
  -----------
  improve test


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

  Changed paths:
    M clang/lib/CodeGen/CGStmt.cpp
    M clang/test/DebugInfo/KeyInstructions/for.c

  Log Message:
  -----------
  fix for body with ctrl-flow


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

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

  Log Message:
  -----------
  improve test further: empty loop


Compare: https://github.com/llvm/llvm-project/compare/784005e40100...0af9ceb763b8

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