[all-commits] [llvm/llvm-project] 7132dd: [KeyInstr][Clang] Add Clang option -g[no-]key-inst...

Orlando Cazalet-Hyams via All-commits all-commits at lists.llvm.org
Mon Apr 7 06:36:50 PDT 2025


  Branch: refs/heads/users/OCHyams/ki-clang-flag
  Home:   https://github.com/llvm/llvm-project
  Commit: 7132dd30a14207208cc8bf7808a51515d55f4835
      https://github.com/llvm/llvm-project/commit/7132dd30a14207208cc8bf7808a51515d55f4835
  Author: Orlando Cazalet-Hyams <orlando.hyams at sony.com>
  Date:   2025-04-07 (Mon, 07 Apr 2025)

  Changed paths:
    M clang/include/clang/Basic/DebugOptions.def
    M clang/include/clang/Driver/Options.td
    M clang/lib/Driver/ToolChains/Clang.cpp
    M clang/test/CMakeLists.txt
    A clang/test/KeyInstructions/flag.cpp
    A clang/test/KeyInstructions/lit.local.cfg
    M clang/test/lit.site.cfg.py.in

  Log Message:
  -----------
  [KeyInstr][Clang] Add Clang option -g[no-]key-instructions

This needs to be driver level to pass an -mllvm flag to LLVM.

Keep the flag help-hidden as the feature is under development.

---

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



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