| commit | 784bd61fc497b11a6d8d30abb6157c8a3597ffbf | [log] [tgz] |
|---|---|---|
| author | Haojian Wu <hokein.wu@gmail.com> | Mon Jul 07 09:42:38 2025 +0200 |
| committer | GitHub <noreply@github.com> | Mon Jul 07 09:42:38 2025 +0200 |
| tree | 5a9b18dc444da797b5c3e2a930efe1c1126ceb24 | |
| parent | b7d4735a0e2a65c27aa74a56e19020a34de790fe [diff] |
[clang] Speedup getFileIDLocal with a separate offset table. (#146604) The `SLocEntry` structure is 24 bytes, and the binary search only needs the offset. Loading an entry's offset might pull the entire SLocEntry object into the CPU cache. To make the binary search much more cache-efficient, we use a separate offset table. See https://llvm-compile-time-tracker.com/compare.php?from=650d0151c623c123e4e9736fe50421624a329260&to=6af564c0d75aff28a2784a8554448c0679877792&stat=instructions:u.
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.