commit | c792b25e47e00dbf2cd9654bf806fe5f9de6e44e | [log] [tgz] |
---|---|---|
author | Pierre van Houtryve <pierre.vanhoutryve@amd.com> | Fri Apr 25 12:10:02 2025 +0200 |
committer | GitHub <noreply@github.com> | Fri Apr 25 12:10:02 2025 +0200 |
tree | e362040e718e7f98f8d6016b3cea076e035255d1 | |
parent | 6738cfe0a40af2754000346ff090ebb2115ce15f [diff] |
[GlobalISel] Add `combine` action for C++ combine rules (#135941) Adds a `combine` action (DAG operator) which allows for easy definition of combine rule that only match one or more instructions, and defer all remaining match/apply logic to C++ code. This avoids the need for split match/apply function in such cases. One function can do the trick as long as it returns `true` if it changed any code. This is implemented as syntactic sugar over match/apply. The combine rule is just a match pattern BUT every C++ pattern inside is treated as an "apply" function. This makes it fit seamlessly with the current backend. Fixes #92410
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.