| commit | 6b183f4cfdb45af759659877abe6a56b8dfe8e45 | [log] [tgz] |
|---|---|---|
| author | Aiden Grossman <aidengrossman@google.com> | Tue Dec 16 15:42:28 2025 -0800 |
| committer | GitHub <noreply@github.com> | Tue Dec 16 15:42:28 2025 -0800 |
| tree | 81631733f4338e3f7e68f2563990787d418323fa | |
| parent | 68aea8e202cb698f7b84fed2e1399e648221c34b [diff] |
[Codegen][NewPM] Explicitly Nest Passes in CodegenPassBuilder (#169867) This implements the major piece of https://discourse.llvm.org/t/rfc-codegen-new-pass-manager-pipeline-construction-design/84659, making it explicit when we break the function pipeline up. We essentially get rid of the AddPass and AddMachinePass helpers and replace them with explicit functions for the pass types. The user then needs to explicitly call flushFPMstoMPM before breaking. This is sort of a hybrid of the current construction and what the RFC proposed. The alternative would be passing around FunctionPassManagers and having the pipeline actually explicitly constructed. I think this compromises ergonomics slightly (needing to pass a FPM in many more places). It is also nice to assert that the function pass manager is empty when adding a module pass, which is easier when CodegenPassBuilder owns the FPM and MFPM.
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.