commit | 286ab11dc65de8175e2bce69fd7e36acd3be7ce0 | [log] [tgz] |
---|---|---|
author | Leonard Chan <leonardchan@google.com> | Fri May 16 15:18:50 2025 -0700 |
committer | Leonard Chan <leonardchan@google.com> | Fri May 16 15:38:22 2025 -0700 |
tree | 1880a81e5109cf45294f391baac3dfaa3f656784 | |
parent | 1fa8394e78cc0eb73a766bcae1ad76af7e3b84da [diff] |
Reapply "[llvm][CFI] Do not canonicalize COFF functions in a comdat (#139962)" This reapplies 33684ac9be4892579f63a8e2b67080419426cf98 with appropriate requires on tests. COFF requires that a function exists with the same name as a comdat. Not having this key function results in `LLVM ERROR: Associative COMDAT symbol '...' does not exist.` CFI by default will attempt to canonicalize a function by appending `.cfi` to its name which allows external references to refer to the new canonical alias, but it does not change the comdat name. We can change the comdat name since symbol and comdat resolution occurs before LTO, so we already know which symbols are prevailing.
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.