[PATCH] D122203: [IR] Allow skipping vector pointer type.
Hendrik Greving via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Mar 21 19:30:11 PDT 2022
hgreving created this revision.
hgreving added a reviewer: aeubanks.
Herald added subscribers: dexonsmith, hiraditya.
Herald added a project: All.
hgreving requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
Allows for skipping the vector pointer type if opaque pointers are
enabled and the matching pointer is a vector pointer.
No test added since lacking a target using intrinsic wit vector
pointers arguments.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D122203
Files:
llvm/lib/IR/Function.cpp
Index: llvm/lib/IR/Function.cpp
===================================================================
--- llvm/lib/IR/Function.cpp
+++ llvm/lib/IR/Function.cpp
@@ -1468,7 +1468,8 @@
return matchIntrinsicType(PT->getNonOpaquePointerElementType(), Infos,
ArgTys, DeferredChecks, IsDeferredCheck);
// Consume IIT descriptors relating to the pointer element type.
- while (Infos.front().Kind == IITDescriptor::Pointer)
+ while (Infos.front().Kind == IITDescriptor::Pointer ||
+ Infos.front().Kind == IITDescriptor::Vector)
Infos = Infos.slice(1);
Infos = Infos.slice(1);
return false;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D122203.417167.patch
Type: text/x-patch
Size: 675 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220322/77168c10/attachment.bin>
More information about the llvm-commits
mailing list