aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/ModuloSchedule.cpp
diff options
context:
space:
mode:
authorYaxun (Sam) Liu <yaxun.liu@amd.com>2025-03-06 22:47:11 -0500
committerGitHub <noreply@github.com>2025-03-06 22:47:11 -0500
commitf3dc358953a13caf7521fc615a08f6317930351c (patch)
treefd921f3ae67dbdeaf3c183760dd29c7792423ad7 /llvm/lib/CodeGen/ModuloSchedule.cpp
parent267403442264959f6b06e227ff450c385f4b3ef2 (diff)
downloadllvm-f3dc358953a13caf7521fc615a08f6317930351c.zip
llvm-f3dc358953a13caf7521fc615a08f6317930351c.tar.gz
llvm-f3dc358953a13caf7521fc615a08f6317930351c.tar.bz2
[MC] output inlined-at debug info (#106230)
Currently MC print source location of instructions in comments in assembly when debug info is available, however, it does not include inlined-at locations when a function is inlined. For example, function foo is defined in header file a.h and is called multiple times in b.cpp. If foo is inlined, current assembly will only show its instructions with their line numbers in a.h. With inlined-at locations, the assembly will also show where foo is called in b.cpp. This patch adds inlined-at locations to the comments by using DebugLoc::print. It makes the printed source location info consistent with those printed by machine passes.
Diffstat (limited to 'llvm/lib/CodeGen/ModuloSchedule.cpp')
0 files changed, 0 insertions, 0 deletions