commit | 0df1a52852f570fb72c25f88f94f9b51e4689f1d | [log] [tgz] |
---|---|---|
author | Ahmed Bougacha <ahmed@bougacha.org> | Thu May 08 14:29:24 2025 -0700 |
committer | GitHub <noreply@github.com> | Thu May 08 14:29:24 2025 -0700 |
tree | 144860f0730abe25cf40eb996718af2f45ab410e | |
parent | 03896403d3bf330c8163aa9ae3fe2aa284e273be [diff] |
[AArch64][FastISel] Fallback on atomic stlr/cas with non-reg operands. (#133987) This has been a latent bug for almost 10 years, but is relatively hard to trigger, needing an address operand that isn't handled by getRegForValue (in the test here, constexpr casts). When that happens, it returns 0, which FastISel happily uses as a register operand, all the way to asm, where we either get a crash on an invalid register, or a silently corrupt instruction. Unfortunately, FastISel is still enabled at -O0 for at least ILP32/arm64_32.
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.