commit | 763b96c86d81d51d0db430791a61fd1e8a406bce | [log] [tgz] |
---|---|---|
author | Pavel Labath <pavel@labath.sk> | Mon Jun 03 10:34:44 2024 +0200 |
committer | GitHub <noreply@github.com> | Mon Jun 03 10:34:44 2024 +0200 |
tree | e5a7f1ba5b3f930a4363d535d5087e95c5afb348 | |
parent | ce73e17e3ab5ccfa33a977843e82a9bbfb6b4ce3 [diff] |
[lldb] Avoid (unlimited) GetNumChildren calls when printing values (#93946) For some data formatters, even getting the number of children can be an expensive operations (e.g., needing to walk a linked list to determine the number of elements). This is then wasted work when we know we will be printing only small number of them. This patch replaces the calls to GetNumChildren (at least those on the "frame var" path) with the calls to the capped version, passing the value of `max-children-count` setting (plus one)
Welcome to the LLVM project!
This repository contains the source code for LLVM, a toolkit for the construction of highly optimized compilers, optimizers, and run-time environments.
The LLVM project has multiple components. The core of the project is itself called “LLVM”. This contains all of the tools, libraries, and header files needed to process intermediate representations and convert them into object files. Tools include an assembler, disassembler, bitcode analyzer, and bitcode optimizer.
C-like languages use the Clang frontend. This component compiles C, C++, Objective-C, and Objective-C++ code into LLVM bitcode -- and from there into object files, using LLVM.
Other components include: the libc++ C++ standard library, the LLD linker, and more.
Consult the Getting Started with LLVM page for information on building and running LLVM.
For information on how to contribute to the LLVM project, please take a look at the Contributing to LLVM guide.
Join the LLVM Discourse forums, Discord chat, LLVM Office Hours or Regular sync-ups.
The LLVM project has adopted a code of conduct for participants to all modes of communication within the project.