diff options
author | Fabian Ritter <fabian.ritter@amd.com> | 2025-09-19 11:07:59 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-09-19 11:07:59 +0200 |
commit | 771c94c8db14b990a38c95977f708e9480020244 (patch) | |
tree | 94dc09ad568b03ef9265f9ae7a429af2294e5383 /clang/lib/AST/ByteCode/Compiler.cpp | |
parent | 67354837d0ecab43e3e2f99fde234660d1686ce9 (diff) | |
download | llvm-771c94c8db14b990a38c95977f708e9480020244.zip llvm-771c94c8db14b990a38c95977f708e9480020244.tar.gz llvm-771c94c8db14b990a38c95977f708e9480020244.tar.bz2 |
[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.
Diffstat (limited to 'clang/lib/AST/ByteCode/Compiler.cpp')
0 files changed, 0 insertions, 0 deletions