[PATCH] D114423: [IR][VP] Extend the align param attr to vectors of pointers

Fraser Cormack via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 23 02:06:38 PST 2021


frasercrmck created this revision.
frasercrmck added reviewers: simoll, craig.topper, rogfer01.
Herald added subscribers: dexonsmith, jdoerfert, hiraditya.
frasercrmck requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

This patch extends the types on which the align parameter attribute is
permissible to include vectors of pointers. It does so in order to allow
alignment specification on llvm.vp.gather and llvm.vp.scatter
intrinsics, which lack an explicit alignment parameter.

The default alignment of these intrinsics was previously documented as
being equal to the ABI alignment of the *scalar* type, when in fact that
wasn't the case: the ABI alignment of the vector type was used instead.
This has also been fixed in this patch.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D114423

Files:
  llvm/docs/LangRef.rst
  llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
  llvm/lib/IR/Attributes.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D114423.389125.patch
Type: text/x-patch
Size: 8840 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20211123/90317ee2/attachment.bin>


More information about the llvm-commits mailing list