[PATCH] D143526: [GlobalISel] Handle ptr size != index size in IRTranslator

Krzysztof Drewniak via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Feb 7 13:49:43 PST 2023


krzysz00 created this revision.
Herald added subscribers: kosarev, kerbowa, arphaman, hiraditya, arichardson, tpr, jvesely.
Herald added a project: All.
krzysz00 requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

On AMDGPU, we have an address space (7, buffer descriptors) that uses
128-bit pointer values but 32-bit offsets. IRTranslator would
previously use the pointer size as the size of the offset in PTR_ADD
instructions.

Depends on D143522 <https://reviews.llvm.org/D143522>


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D143526

Files:
  llvm/lib/CodeGen/CodeGenPrepare.cpp
  llvm/lib/CodeGen/GlobalISel/CallLowering.cpp
  llvm/lib/CodeGen/GlobalISel/IRTranslator.cpp
  llvm/test/CodeGen/AMDGPU/GlobalISel/irtranslator-non-integral-address-spaces.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D143526.495636.patch
Type: text/x-patch
Size: 5937 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230207/c59cf807/attachment.bin>


More information about the llvm-commits mailing list