aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Plugins/ScriptInterpreter/Python
diff options
context:
space:
mode:
authorRiver Riddle <riddleriver@gmail.com>2020-02-08 15:01:34 -0800
committerRiver Riddle <riddleriver@gmail.com>2020-02-08 15:11:29 -0800
commitabe3e5babdad001100b285d188e63f76fe21aea4 (patch)
treee23e2edf8d93ca072e980e08647db23d98423b5d /lldb/source/Plugins/ScriptInterpreter/Python
parent280f15cb41ce547a325fe13c610f55439aa44de2 (diff)
downloadllvm-abe3e5babdad001100b285d188e63f76fe21aea4.zip
llvm-abe3e5babdad001100b285d188e63f76fe21aea4.tar.gz
llvm-abe3e5babdad001100b285d188e63f76fe21aea4.tar.bz2
[mlir] Add support for generating debug locations from intermediate levels of the IR.
Summary: This revision adds a utility to generate debug locations from the IR during compilation, by snapshotting to a output stream and using the locations that operations were dumped in that stream. The new locations may either; * Replace the original location of the operation. old: loc("original_source.cpp":1:1) new: loc("snapshot_source.mlir":10:10) * Fuse with the original locations as NamedLocs with a specific tag. old: loc("original_source.cpp":1:1) new: loc(fused["original_source.cpp":1:1, "snapshot"("snapshot_source.mlir":10:10)]) This feature may be used by a debugger to display the code at various different levels of the IR. It would also be able to show the different levels of IR attached to a specific source line in the original source file. This feature may also be used to generate locations for operations generated during compilation, that don't necessarily have a user source location to attach to. This requires changes in the printer to track the locations of operations emitted in the stream. Moving forward we need to properly(and efficiently) track the number of newlines emitted to the stream during printing. Differential Revision: https://reviews.llvm.org/D74019
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python')
0 files changed, 0 insertions, 0 deletions