[all-commits] [llvm/llvm-project] 7ed95d: [debug-info] Add support for llvm.dbg.addr in DIBu...
Michael Gottesman via All-commits
all-commits at lists.llvm.org
Tue Jan 18 18:27:03 PST 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 7ed95d1577558f95db6b03968b561b17bbb0fec3
https://github.com/llvm/llvm-project/commit/7ed95d1577558f95db6b03968b561b17bbb0fec3
Author: Michael Gottesman <mgottesman at apple.com>
Date: 2022-01-18 (Tue, 18 Jan 2022)
Changed paths:
M llvm/include/llvm/IR/DIBuilder.h
M llvm/lib/IR/DIBuilder.cpp
M llvm/test/DebugInfo/X86/dbg-addr.ll
M llvm/unittests/IR/DebugInfoTest.cpp
Log Message:
-----------
[debug-info] Add support for llvm.dbg.addr in DIBuilder.
I based this off of the API already create for llvm.dbg.value since both
intrinsics have the same arguments at the API level.
I added some tests exercising the API a little as well as an additional small
test that shows how one can use llvm.dbg.addr to limit the PC range where an
address value is available in the debugger. This is done by calling
llvm.dbg.value with undef and the same metadata info as one used to create the
llvm.dbg.addr.
rdar://83957028
Reviewed By: aprantl
Differential Revision: https://reviews.llvm.org/D117442
More information about the All-commits
mailing list