[PATCH] D80024: IR: Remove extra name mangling from llvm.ptrmask

Matt Arsenault via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri May 15 11:25:14 PDT 2020


arsenm created this revision.
arsenm added reviewers: fhahn, jdoerfert, sanjoy, hfinkel.
Herald added a subscriber: wdng.
Herald added a project: LLVM.

This should not be allowed to change the address space of the source
and result, so the pointer types should match. The only emitter of
this seems to be a disable clang change, so no tests to update.


https://reviews.llvm.org/D80024

Files:
  llvm/include/llvm/IR/Intrinsics.td


Index: llvm/include/llvm/IR/Intrinsics.td
===================================================================
--- llvm/include/llvm/IR/Intrinsics.td
+++ llvm/include/llvm/IR/Intrinsics.td
@@ -1160,7 +1160,7 @@
                                 "llvm.is.constant">;
 
 // Intrinsic to mask out bits of a pointer.
-def int_ptrmask: Intrinsic<[llvm_anyptr_ty], [llvm_anyptr_ty, llvm_anyint_ty],
+def int_ptrmask: Intrinsic<[llvm_anyptr_ty], [LLVMMatchType<0>, llvm_anyint_ty],
                            [IntrNoMem, IntrSpeculatable, IntrWillReturn]>;
 
 //===---------------- Vector Predication Intrinsics --------------===//


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D80024.264290.patch
Type: text/x-patch
Size: 624 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200515/151d6603/attachment.bin>


More information about the llvm-commits mailing list