commit | 07bc54bf4554398b199f4dc849e5193b98422f23 | [log] [tgz] |
---|---|---|
author | Martin Storsjö <martin@martin.st> | Mon May 05 15:06:27 2025 +0300 |
committer | GitHub <noreply@github.com> | Mon May 05 15:06:27 2025 +0300 |
tree | e0cbafe42774739bcfb5ce2749bf2aa181a790b8 | |
parent | a94e56095808f4784afcf8e50819ba594c5e8219 [diff] |
[DWARFLinkerParallel] Fix incorrect uses of compare_exchange_weak (#138129) The documentation for compare_exchange_weak says that it is allowed to spuriously fail. If compare_exchange_weak is called in a loop, spurious failures usually are benign - but in these cases, a spurious failure would give incorrect behaviour. E.g. in TypePool::getOrCreateTypeEntryBody, we assume that if the compare_exchange call returned false, we had been preempted by another thread and that DIE is non-null. This fixes running the dsymutil tests on Windows on aarch64 (built with a mingw toolchain with 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.
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.