[PATCH] D84483: GlobalISel: Add scalarSameSizeAs LegalizeRule

H.-S. Zheng via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 23 19:12:31 PDT 2020


rniczh created this revision.
Herald added subscribers: llvm-commits, kerbowa, hiraditya, arichardson, rovka, nhaehnle, jvesely, arsenm.
Herald added a project: LLVM.

Widen or narrow a type to a type with the same scalar size as
another. This can be used to force G_PTR_ADD/G_PTRMASK's scalar
operand to match the bitwidth of the pointer type. Use this to
disallow narrower types for G_PTRMASK.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D84483

Files:
  llvm/include/llvm/CodeGen/GlobalISel/LegalizerInfo.h
  llvm/lib/CodeGen/GlobalISel/LegalizeMutations.cpp
  llvm/lib/Target/AMDGPU/AMDGPULegalizerInfo.cpp
  llvm/test/CodeGen/AMDGPU/GlobalISel/inst-select-ptrmask.mir
  llvm/test/CodeGen/AMDGPU/GlobalISel/legalize-ptrmask.mir

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D84483.280313.patch
Type: text/x-patch
Size: 10316 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200724/3950fca8/attachment.bin>


More information about the llvm-commits mailing list