[PATCH] D143945: [AMDGPU] Add legalization case for PTR_ADD on buffer pointers
Krzysztof Drewniak via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Feb 13 13:29:39 PST 2023
krzysz00 created this revision.
Herald added subscribers: kosarev, foad, kerbowa, hiraditya, arichardson, tpr, dstuttard, yaxunl, jvesely, kzhuravl, arsenm.
Herald added a project: All.
krzysz00 requested review of this revision.
Herald added subscribers: llvm-commits, wdng.
Herald added a project: LLVM.
On buffer pointers (address space 7), we want PTR_ADD to take 32-bit
offsets, and so, unlike all other address spaces, we do not want to
enforce the condition that those G_PTR_ADD instructions have an offset
of the same size as their pointer operand.
(Also, fix some comments and missing pattern fragment definitions
while we're here.)
Depends on D143526 <https://reviews.llvm.org/D143526>
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D143945
Files:
llvm/lib/Target/AMDGPU/AMDGPU.h
llvm/lib/Target/AMDGPU/AMDGPUInstructions.td
llvm/lib/Target/AMDGPU/AMDGPULegalizerInfo.cpp
llvm/lib/Target/AMDGPU/SIInstrInfo.td
llvm/test/CodeGen/AMDGPU/GlobalISel/legalize-ptr-add.mir
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D143945.497090.patch
Type: text/x-patch
Size: 14653 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230213/4b17624c/attachment.bin>
More information about the llvm-commits
mailing list