| commit | d648eed5899c4be10f1f7866eebef2bc171e673f | [log] [tgz] |
|---|---|---|
| author | Nikolas Klauser <nikolasklauser@berlin.de> | Thu Nov 28 23:07:45 2024 +0100 |
| committer | GitHub <noreply@github.com> | Thu Nov 28 23:07:45 2024 +0100 |
| tree | e8aeae87449b946ba2694d1623af9f041c9902e4 | |
| parent | 59716479fc2f78ccabb2fc47b23cdc636d4ce122 [diff] |
[libc++] Simplify the implementation of reserve() and shrink_to_fit() (#113453) Since we changed the implementation of `reserve(size_type)` to only ever extend, it doesn't make a ton of sense anymore to have `__shrink_or_extend`, since the code paths of `reserve` and `shrink_to_fit` are now almost completely separate. This patch splits up `__shrink_or_extend` so that the individual parts are in `reserve` and `shrink_to_fit` depending on where they are needed.
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.