commit | 0fd81e5f4614dc28cd1557a3d5a6a9d2c271d497 | [log] [tgz] |
---|---|---|
author | Florian Hahn <flo@fhahn.com> | Wed Apr 09 21:35:46 2025 +0100 |
committer | GitHub <noreply@github.com> | Wed Apr 09 21:35:46 2025 +0100 |
tree | 350f3de68be099052722a2cd71c512ecd0a777c2 | |
parent | 12b1ed213ec55750e8fd59dfa44f6872186ed709 [diff] |
[VectorUtils] Add helper to get list of metadata to propagate (NFC). (#135003) Split off the logic to filter out metadata that should not be propagated to a helper that populates a list with metadata kinds that should be preserved. The current version just uses is_contained on an array to check if a metadata kind is supported. Given that most instructions will only have a small number of metadata kinds to start with, this shouldn't be worse than iterating over all kinds once and querying the instruction for individual metadata kinds, which involves quite a bit of indirection. I plan ot use this utility in a follow-up patch in other places as well. PR: https://github.com/llvm/llvm-project/pull/135003
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.