Manual-sync mirror of chromium.googlesource.com/external/github.com/llvm/llvm-project (bare monorepo, no subtree suffix)
Find a file
Aiden Grossman 7fb92cdf5f
[Benchmark] Fix warnings around usage of __COUNTER__ (#184524)
Premerge CI is currently failing with the following after the update to
clang v22:

```
/home/gha/llvm-project/clang-tools-extra/clangd/benchmarks/IndexBenchmark.cpp:92:1: error: '__COUNTER__' is a C2y extension [-Werror,-Wc2y-extensions]
   92 | BENCHMARK(dexQueries);
      | ^
```

Some original work was done around this in
df1d786c46, which was then done in
upstream Google benchmark in

d8db2f90b6.
The original work done in the patch implementing this feature doesn't
seem to account for as many cases as the upstream patch does. This patch
reverts the diff in df1d786c46 and applies
the applicable hunks from the upstream patch.
2026-03-04 01:39:16 +00:00
.ci [green-dragon] fix test param in triggered bisection jobs (#181962) 2026-02-17 20:30:23 -08:00
.github [Github][CI] Bump CI containers to LLVM v22.1.0 (#184375) 2026-03-03 12:26:02 -08:00
bolt [BOLT] Make sure IOAddressMap exist before lookup (NFC) (#183184) 2026-03-01 23:27:39 -08:00
clang [NFC] Don't replicate hasKernelCallingConv. (#184464) 2026-03-04 00:35:02 +00:00
clang-tools-extra [clang-tidy] Add zeyi2 as maintainer (#183883) 2026-03-04 06:24:16 +08:00
cmake [cmake][NFC] CRLF -> LF 2026-01-21 23:14:07 +01:00
compiler-rt Disable leak sanitizer test on ppc. (#184414) 2026-03-03 15:27:20 -05:00
cross-project-tests [clang][DebugInfo] Add virtuality call-site target information in DWARF. (#182510) 2026-02-25 05:35:07 +00:00
flang [flang] Fix test breakage from recent preprocessor change (#184455) 2026-03-03 16:00:20 -08:00
flang-rt [flang-rt] Fix NVPTX builds erroneously using backtrace support (#184415) 2026-03-03 14:38:53 -06:00
libc [libc] Extend check-libc-lit to cover include, integration, and all src tests (#184366) 2026-03-03 17:42:48 +00:00
libclc Clang: Deprecate float support from __builtin_elementwise_max (#180885) 2026-02-28 10:56:02 +08:00
libcxx [libc++] Update documentation for _executeWithFakeConfig (#184420) 2026-03-03 19:25:11 +00:00
libcxxabi [libc++] Remove _LIBCPP_CONSTINIT (#171802) 2026-01-20 12:51:43 +01:00
libsycl [libsycl] Add sycl::context stub (#182826) 2026-02-27 18:43:34 +01:00
libunwind [libunwind] Fix building with EXCEPTION_DISPOSITION as enum (#180513) 2026-02-12 00:31:09 +02:00
lld [lld][WebAssembly] Convert more tests to assembly. NFC (#184418) 2026-03-03 17:04:20 -08:00
lldb [lldb] Wrap LLDBLog Initialize/Terminate in a class (NFC) (#184469) 2026-03-04 00:41:39 +00:00
llvm [TargetLowering][PowerPC] Don't unroll vector CLMUL when MUL is not supported. (#184238) 2026-03-03 17:25:54 -08:00
llvm-libgcc
mlir [MLIR][XeGPU] Add blocking and subgroup to lane distribution support for ConvertLayout operation (#183837) 2026-03-03 17:03:51 -08:00
offload [OpenMP][clang] Indirect and Virtual function call mapping from host to device (#184412) 2026-03-03 13:20:24 -06:00
openmp [libomp] Fix hwloc include for non-standard paths (#184087) 2026-03-02 18:03:36 +01:00
orc-rt [orc-rt] Rename ResourceManager detach/shutdown. NFCI. (#183285) 2026-02-25 22:57:48 +11:00
polly [Polly] Update isl to isl-0.27-86-gcf471c16 (#184044) 2026-03-01 22:06:59 +00:00
runtimes [cmake] forward LLVM_EXTERNAL_*_SOURCE_DIR to runtimes (#180399) 2026-02-24 18:29:55 +08:00
third-party [Benchmark] Fix warnings around usage of __COUNTER__ (#184524) 2026-03-04 01:39:16 +00:00
utils/bazel [bazel] Remove old zlib config variable (#184527) 2026-03-03 17:20:44 -08:00
.clang-format Enforce Unix line endings for Clang/LLVM/MLIR projects (#161460) 2025-10-02 06:09:12 -07:00
.clang-format-ignore
.clang-tidy Add default empty header filter regex to root .clang-tidy (#167386) 2025-11-11 01:36:25 +03:00
.git-blame-ignore-revs [clang-tidy][NFC] Add clang-tidy formatting commit to .git-blame-ignore-revs (#167126) 2025-11-20 21:42:10 +08:00
.gitattributes [libclang/python] Enable packaging clang python bindings (#125806) 2025-11-24 17:21:24 -08:00
.gitignore [llvm][.gitignore] Add instructions.md to coding assistants section (#181211) 2026-02-12 19:51:42 +00:00
.mailmap Update my email across the project (#179361) 2026-02-04 09:07:53 -08:00
CODE_OF_CONDUCT.md
CONTRIBUTING.md
LICENSE.TXT
pyproject.toml [lldb] Configure pyright to the documented minimum python version (#162952) 2025-11-20 10:30:22 -08:00
README.md
SECURITY.md [SECURITY.md] add pointers to "what is a security issue" (#177372) 2026-01-22 17:19:09 -07:00

The LLVM Compiler Infrastructure

OpenSSF Scorecard OpenSSF Best Practices libc++

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.

Getting the Source Code and Building LLVM

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.

Getting in touch

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.