| commit | 01b4b2a5b88c4b93d635a5049fa85e569b405982 | [log] [tgz] |
|---|---|---|
| author | Fabian Ritter <fabian.ritter@amd.com> | Thu Sep 18 15:01:07 2025 +0200 |
| committer | GitHub <noreply@github.com> | Thu Sep 18 15:01:07 2025 +0200 |
| tree | 2d35eedf2da663fff5367e93b27bd9f8f20fad84 | |
| parent | 72596b333fef81275d281081cfdb63f3f1eb940a [diff] |
[AMDGPU][SDAG] Handle ISD::PTRADD in VOP3 patterns (#143881) This patch mirrors similar patterns for ISD::ADD. The main difference is that ISD::ADD is commutative, so that a pattern definition for, e.g., (add (mul x, y), z), automatically also handles (add z, (mul x, y)). ISD::PTRADD is not commutative, so we would need to handle these cases explicitly. This patch only implements (ptradd z, (op x, y)) patterns, where the nested operation (shift or multiply) is the offset of the ptradd (i.e., the right operand), since base pointers that are the result of a shift or multiply seem less likely. For SWDEV-516125.
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.