aboutsummaryrefslogtreecommitdiff
path: root/flang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorOrlando Cazalet-Hyams <orlando.hyams@sony.com>2025-05-06 11:42:50 +0100
committerGitHub <noreply@github.com>2025-05-06 11:42:50 +0100
commit43a9d5dfd52d3845596d20b62159147cd276d343 (patch)
treec0d97653e3b5e0268d976d90c434a6755dc09090 /flang/lib/Frontend/CompilerInvocation.cpp
parent0159a26744dd3ca332973c0e1cd8f6ccbace2927 (diff)
downloadllvm-43a9d5dfd52d3845596d20b62159147cd276d343.zip
llvm-43a9d5dfd52d3845596d20b62159147cd276d343.tar.gz
llvm-43a9d5dfd52d3845596d20b62159147cd276d343.tar.bz2
[KeyInstr] Add Atom Group waterline to LLVMContext (#133478)
Source location atoms are identified by a function-local number and the DILocation's InlinedAt field. The front end is responsible for assigning source atom numbers, but certain optimisations need to assign new atom numbers to some instructions. Most often code duplication optimisations like loop unroll. Tracking a global maximum value (waterline) means we can easily (cheaply) get new numbers that don't clash in any function. The waterline is managed through DILocation creation, LLVMContext::incNextAtomGroup, and LLVMContext::updateAtomGroupWaterline. Add unittest. RFC: https://discourse.llvm.org/t/rfc-improving-is-stmt-placement-for-better-interactive-debugging/82668
Diffstat (limited to 'flang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions