aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/InitPreprocessor.cpp
diff options
context:
space:
mode:
authorOrlando Cazalet-Hyams <orlando.hyams@sony.com>2025-05-06 13:04:09 +0100
committerGitHub <noreply@github.com>2025-05-06 13:04:09 +0100
commit3b4f9c544274392198de084b84a5f2e5506e4703 (patch)
tree7a3c5b94810a143ab3bd67b7d59d6caa63175b0a /clang/lib/Frontend/InitPreprocessor.cpp
parentbde39d72515dd3a0e6fe2f62c7a08676af920384 (diff)
downloadllvm-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