| commit | 771c94c8db14b990a38c95977f708e9480020244 | [log] [tgz] |
|---|---|---|
| author | Fabian Ritter <fabian.ritter@amd.com> | Fri Sep 19 11:07:59 2025 +0200 |
| committer | GitHub <noreply@github.com> | Fri Sep 19 11:07:59 2025 +0200 |
| tree | 94dc09ad568b03ef9265f9ae7a429af2294e5383 | |
| parent | 67354837d0ecab43e3e2f99fde234660d1686ce9 [diff] |
[SDAG][AMDGPU] Allow opting in to OOB-generating PTRADD transforms (#146074) This PR adds a TargetLowering hook, canTransformPtrArithOutOfBounds, that targets can use to allow transformations to introduce out-of-bounds pointer arithmetic. It also moves two such transformations from the AMDGPU-specific DAG combines to the generic DAGCombiner. This is motivated by target features like AArch64's checked pointer arithmetic, CPA, which does not tolerate the introduction of out-of-bounds pointer arithmetic.
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.