[all-commits] [llvm/llvm-project] e1f8c8: DWARFDebugLoclists: Move to a incremental parsing ...
Pavel Labath via All-commits
all-commits at lists.llvm.org
Wed Nov 6 07:26:40 PST 2019
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: e1f8c8a16f441aed3aaa6262f932854b74e4f97c
https://github.com/llvm/llvm-project/commit/e1f8c8a16f441aed3aaa6262f932854b74e4f97c
Author: Pavel Labath <pavel at labath.sk>
Date: 2019-11-06 (Wed, 06 Nov 2019)
Changed paths:
M llvm/include/llvm/DebugInfo/DWARF/DWARFContext.h
M llvm/include/llvm/DebugInfo/DWARF/DWARFDebugLoc.h
M llvm/lib/DebugInfo/DWARF/DWARFContext.cpp
M llvm/lib/DebugInfo/DWARF/DWARFDebugLoc.cpp
M llvm/lib/DebugInfo/DWARF/DWARFDie.cpp
M llvm/test/CodeGen/X86/debug-loclists.ll
M llvm/test/DebugInfo/X86/dwarfdump-debug-loclists-error-cases2.s
M llvm/test/DebugInfo/X86/dwarfdump-debug-loclists.test
M llvm/test/DebugInfo/X86/fission-ranges.ll
M llvm/test/DebugInfo/X86/stack-value-piece.ll
M llvm/test/tools/llvm-dwarfdump/X86/debug_loclists_startx_length.s
Log Message:
-----------
DWARFDebugLoclists: Move to a incremental parsing model
Summary:
This patch stems from the discussion D68270 (including some offline
talks). The idea is to provide an "incremental" api for parsing location
lists, which will avoid caching or materializing parsed data. An
additional goal is to provide a high level location list api, which
abstracts the differences between different encoding schemes, and can be
used by users which don't care about those (such as LLDB).
This patch implements the first part. It implements a call-back based
"visitLocationList" api. This function parses a single location list,
calling a user-specified callback for each entry. This is going to be
the base api, which other location list functions (right now, just the
dumping code) are going to be based on.
Future patches will do something similar for the v4 location lists, and
add a mechanism to translate raw entries into concrete address ranges.
Reviewers: dblaikie, probinson, JDevlieghere, aprantl, SouraVX
Subscribers: hiraditya, llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D69672
More information about the All-commits
mailing list