[PATCH] D83048: [LiveDebugValues] 3/4 Add Xclang and CodeGen options for using instr-ref variable locations
Jeremy Morse via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Jul 2 07:31:19 PDT 2020
jmorse created this revision.
jmorse added reviewers: aprantl, vsk, probinson, Orlando, StephenTozer, TWeaver, djtodoro.
Herald added subscribers: llvm-commits, cfe-commits, hiraditya.
Herald added projects: clang, LLVM.
jmorse added a parent revision: D83047: [LiveDebugValues] 2/4 Add instruction-referencing LiveDebugValues implementation.
(Context: this thread http://lists.llvm.org/pipermail/llvm-dev/2020-June/142368.html )
This patch adds the -Xclang option "-fexperimental-debug-variable-locations" and same LLVM CodeGen option, to pick which variable location tracking solution to use.
Right now all the switch does is pick which LiveDebugValues implementation to use. Over time however, my aim is to add fragments of support in aid of this value-tracking RFC <http://lists.llvm.org/pipermail/llvm-dev/2020-March/139636.html>, also controlled by this command line switch. That will slowly move variable locations to be defined by an instruction calculating a value, and a DBG_INSTR_REF instruction referring to that value. Thus, this is going to grow into a "use the new kind of variable locations" switch, rather than just "use the new LiveDebugValues implementation".
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D83048
Files:
clang/include/clang/Basic/CodeGenOptions.def
clang/include/clang/Driver/CC1Options.td
clang/lib/CodeGen/BackendUtil.cpp
clang/lib/Frontend/CompilerInvocation.cpp
llvm/include/llvm/CodeGen/CommandFlags.h
llvm/include/llvm/Target/TargetOptions.h
llvm/lib/CodeGen/CommandFlags.cpp
llvm/lib/CodeGen/LiveDebugValues/LiveDebugValues.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D83048.275098.patch
Type: text/x-patch
Size: 7121 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20200702/756d9698/attachment-0001.bin>
More information about the cfe-commits
mailing list