diff options
author | Orlando Cazalet-Hyams <orlando.hyams@sony.com> | 2025-05-06 13:04:09 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-05-06 13:04:09 +0100 |
commit | 3b4f9c544274392198de084b84a5f2e5506e4703 (patch) | |
tree | 7a3c5b94810a143ab3bd67b7d59d6caa63175b0a /clang/lib/Frontend/InitPreprocessor.cpp | |
parent | bde39d72515dd3a0e6fe2f62c7a08676af920384 (diff) | |
download | llvm-3b4f9c544274392198de084b84a5f2e5506e4703.zip llvm-3b4f9c544274392198de084b84a5f2e5506e4703.tar.gz llvm-3b4f9c544274392198de084b84a5f2e5506e4703.tar.bz2 |
[NFC][KeyInstr] Add Atom Group (re)mapping (#133479)
Add:
mapAtomInstance - map the atom group number to a new group.
RemapSourceAtom - apply the mapped atom group number to this instruction.
Modify:
CloneBasicBlock - Call mapAtomInstance on cloned instruction's DebugLocs
if MapAtoms is true (default). Setting to false could
lead to a degraded debugging experience. See code comment.
Optimisations like loop unroll that duplicate instructions need to remap source
atom groups so that each duplicated source construct instance is considered
distinct when determining is_stmt locations.
This commit adds the remapping functionality and a unittest.
RFC:
https://discourse.llvm.org/t/rfc-improving-is-stmt-placement-for-better-interactive-debugging/82668
Diffstat (limited to 'clang/lib/Frontend/InitPreprocessor.cpp')
0 files changed, 0 insertions, 0 deletions