diff options
author | Orlando Cazalet-Hyams <orlando.hyams@sony.com> | 2025-05-23 10:15:42 +0100 |
---|---|---|
committer | Orlando Cazalet-Hyams <orlando.hyams@sony.com> | 2025-05-23 13:46:37 +0100 |
commit | 123bf5f46c31a016768b7ecd9b164bde5ef881d9 (patch) | |
tree | 9ebf53c9cab3dd17b9558b7ca97d7ff1cfc9b562 /clang/lib/CodeGen/CodeGenFunction.h | |
parent | 760bf4f116f9a76ec9d19aeb83e567940ede4a46 (diff) | |
download | llvm-123bf5f46c31a016768b7ecd9b164bde5ef881d9.zip llvm-123bf5f46c31a016768b7ecd9b164bde5ef881d9.tar.gz llvm-123bf5f46c31a016768b7ecd9b164bde5ef881d9.tar.bz2 |
[KeyInstr][Clang] If stmt atom (#134642)
This patch is part of a stack that teaches Clang to generate Key Instructions
metadata for C and C++.
RFC:
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.
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.h')
-rw-r--r-- | clang/lib/CodeGen/CodeGenFunction.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CodeGenFunction.h b/clang/lib/CodeGen/CodeGenFunction.h index 78d71fc..92e9ab8 100644 --- a/clang/lib/CodeGen/CodeGenFunction.h +++ b/clang/lib/CodeGen/CodeGenFunction.h @@ -1762,6 +1762,11 @@ public: void addInstToSpecificSourceAtom(llvm::Instruction *KeyInstruction, llvm::Value *Backup, uint64_t Atom); + /// Add \p KeyInstruction and an optional \p Backup instruction to a new atom + /// group (See ApplyAtomGroup for more info). + void addInstToNewSourceAtom(llvm::Instruction *KeyInstruction, + llvm::Value *Backup); + private: /// SwitchInsn - This is nearest current switch instruction. It is null if /// current context is not in a switch. |