Go to file
Siva Chandra 9ac7a6c51f [SBValue] Add a method GetNumChildren(uint32_t max)
Summary:
Along with this, support for an optional argument to the "num_children"
method of a Python synthetic child provider has also been added. These have
been added with the following use case in mind:

Synthetic child providers currently have a method "has_children" and
"num_children". While the former is good enough to know if there are
children, it does not give any insight into how many children there are.
Though the latter serves this purpose, calculating the number for children
of a data structure could be an O(N) operation if the data structure has N
children. The new method added in this change provide a middle ground.
One can call GetNumChildren(K) to know if a child exists at an index K
which can be as large as the callers tolerance can be. If the caller wants
to know about children beyond K, it can make an other call with 2K. If the
synthetic child provider maintains state about it counting till K
previosly, then the next call is only an O(K) operation. Infact, all
calls made progressively with steps of K will be O(K) operations.

Reviewers: vharron, clayborg, granata.enrico

Subscribers: labath, lldb-commits

Differential Revision: http://reviews.llvm.org/D13778

llvm-svn: 250930
2015-10-21 19:28:08 +00:00
clang Rename clang config.h include guard from CONFIG_H to CLANG_CONFIG_H 2015-10-21 18:16:01 +00:00
clang-tools-extra Add modernize-use-default check to clang-tidy. 2015-10-21 12:58:15 +00:00
compiler-rt [lsan] [aarch64] Add support for AArch64 2015-10-21 13:08:06 +00:00
debuginfo-tests New round of fixes for "Always compile debuginfo-tests for the host triple" 2014-10-18 23:47:59 +00:00
libclc integer: remove explicit casts from _MIN definitions 2015-10-06 19:12:12 +00:00
libcxx Detect relaxed constexpr rules for gcc versions 2015-10-20 07:37:11 +00:00
libcxxabi Fix LIBCXXABI_HAS_NO_THREADS configuration. 2015-10-14 19:21:38 +00:00
libunwind Add FreeBSD _Unwind_Ptr typedef 2015-10-16 19:40:09 +00:00
lld ELF2: Rename getMostConstrainingVisibility -> getVisibility. NFC. 2015-10-21 18:13:47 +00:00
lldb [SBValue] Add a method GetNumChildren(uint32_t max) 2015-10-21 19:28:08 +00:00
llgo [llgo] irgen: always use TargetMachine's data layout 2015-09-25 06:28:14 +00:00
llvm Silence Visual C++ warning in function summary parsing code (NFC) 2015-10-21 19:25:14 +00:00
openmp Removed zeroing th.th_task_state for master thread at start of nested parallel. 2015-10-20 19:21:04 +00:00
polly Full/partial tile separation for vectorization 2015-10-20 09:12:21 +00:00