| commit | 0fd341c20b890b05f9588b7da61731561d3ef72a | [log] [tgz] |
|---|---|---|
| author | Kazu Hirata <kazu@google.com> | Thu Sep 25 08:51:47 2025 -0700 |
| committer | GitHub <noreply@github.com> | Thu Sep 25 08:51:47 2025 -0700 |
| tree | 1b39dc3d2d4c15b3e2cab020763273ccfc2c005e | |
| parent | fddb8fe5f2be4f31c643ee6ff6f017b01465b21d [diff] |
[Support] Clean up Align (#160644) This patch cleans up the constructors and operator= of Align. - "constexpr Align(LogValue CA)" is a really strange "public:" constructor. It can only be constructed with a private struct LogValue, which wraps the log2 of an alignment. Since nobody uses it outside the class anyway, this patch moves the constructor to "private:" while switching to a tag-based parameter list. In turn, this patch removes LogValue. - The block of comment being deleted is no longer applicable, so this patch marks operator= constexpr. To test operator= in a unit test, this patch makes value() constexpr also. Refer to the unit test to see how operator= and value() are put together.
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.