[all-commits] [llvm/llvm-project] 5f5c88: [KeyInstr][Clang] Assignment atom group

Orlando Cazalet-Hyams via All-commits all-commits at lists.llvm.org
Thu May 22 09:18:36 PDT 2025


  Branch: refs/heads/users/OCHyams/ki-clang-assignment
  Home:   https://github.com/llvm/llvm-project
  Commit: 5f5c88bbbb1e69776978ef8e237932feed403cc2
      https://github.com/llvm/llvm-project/commit/5f5c88bbbb1e69776978ef8e237932feed403cc2
  Author: Orlando Cazalet-Hyams <orlando.hyams at sony.com>
  Date:   2025-05-22 (Thu, 22 May 2025)

  Changed paths:
    M clang/lib/CodeGen/CGExpr.cpp
    A clang/test/DebugInfo/KeyInstructions/assign.cpp

  Log Message:
  -----------
  [KeyInstr][Clang] Assignment atom group

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: a436d588c95954eca0a4552cdede1ddfa4acb29d
      https://github.com/llvm/llvm-project/commit/a436d588c95954eca0a4552cdede1ddfa4acb29d
  Author: Orlando Cazalet-Hyams <orlando.hyams at sony.com>
  Date:   2025-05-22 (Thu, 22 May 2025)

  Changed paths:
    M clang/lib/CodeGen/CGExprScalar.cpp
    M clang/test/DebugInfo/KeyInstructions/assign.cpp

  Log Message:
  -----------
  [KeyInstr][Clang] Multiple assignment  (x = y = z)


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

  Changed paths:
    M clang/lib/CodeGen/CGExprScalar.cpp
    A clang/test/DebugInfo/KeyInstructions/assign-scalar.c
    M clang/test/DebugInfo/KeyInstructions/assign.cpp

  Log Message:
  -----------
  Compound assign


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

  Changed paths:
    M clang/lib/CodeGen/CGExprScalar.cpp
    M clang/test/DebugInfo/KeyInstructions/assign-scalar.c

  Log Message:
  -----------
  Pre/Post Inc/Dec


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

  Changed paths:
    A clang/test/DebugInfo/KeyInstructions/init-agg.c

  Log Message:
  -----------
  Rename test & run C & C++


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

  Changed paths:
    M clang/test/DebugInfo/KeyInstructions/assign-scalar.c
    A clang/test/DebugInfo/KeyInstructions/assign.c
    R clang/test/DebugInfo/KeyInstructions/assign.cpp

  Log Message:
  -----------
  %cc1 and rename a .cpp -> c test


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

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

  Log Message:
  -----------
  improve comment


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

  Changed paths:
    M clang/test/DebugInfo/KeyInstructions/assign-scalar.c

  Log Message:
  -----------
  test g += ++h;


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

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

  Log Message:
  -----------
  rm accidental redundant test


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

  Changed paths:
    M clang/test/DebugInfo/KeyInstructions/init-agg.c

  Log Message:
  -----------
  improve mem* checks in agg test


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

  Changed paths:
    M clang/test/DebugInfo/KeyInstructions/assign-scalar.c

  Log Message:
  -----------
  add comma operator coverage to test


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

  Changed paths:
    M clang/test/DebugInfo/KeyInstructions/assign-scalar.c

  Log Message:
  -----------
  newline


Compare: https://github.com/llvm/llvm-project/compare/d2d43d91f9e9...24fb5af1f901

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