[all-commits] [llvm/llvm-project] 4d6e18: [KeyInstr][Clang] Add Clang option -g[no-]key-inst...
Orlando Cazalet-Hyams via All-commits
all-commits at lists.llvm.org
Wed May 14 09:58:41 PDT 2025
Branch: refs/heads/users/OCHyams/ki-clang-flag
Home: https://github.com/llvm/llvm-project
Commit: 4d6e182ae2b6fea246492cd80c9fce75d1c7397d
https://github.com/llvm/llvm-project/commit/4d6e182ae2b6fea246492cd80c9fce75d1c7397d
Author: Orlando Cazalet-Hyams <orlando.hyams at sony.com>
Date: 2025-05-14 (Wed, 14 May 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
Commit: 5c9d5e03fe0c3ff495aca673279b3e479836b9ad
https://github.com/llvm/llvm-project/commit/5c9d5e03fe0c3ff495aca673279b3e479836b9ad
Author: Orlando Cazalet-Hyams <orlando.hyams at sony.com>
Date: 2025-05-14 (Wed, 14 May 2025)
Changed paths:
A clang/test/DebugInfo/KeyInstructions/flag.cpp
A clang/test/DebugInfo/KeyInstructions/lit.local.cfg
R clang/test/KeyInstructions/flag.cpp
R clang/test/KeyInstructions/lit.local.cfg
Log Message:
-----------
Move clang/test/KeyInstructions -> clang/test/DebugInfo/KeyInstructions
Compare: https://github.com/llvm/llvm-project/compare/7132dd30a142...5c9d5e03fe0c
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