[llvm] adda9c0 - IR: Remove extra name mangling from llvm.ptrmask

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Fri May 15 11:49:10 PDT 2020


Author: Matt Arsenault
Date: 2020-05-15T14:49:00-04:00
New Revision: adda9c0a4f6323f7d5c4b324b6dccea1e06d0fee

URL: https://github.com/llvm/llvm-project/commit/adda9c0a4f6323f7d5c4b324b6dccea1e06d0fee
DIFF: https://github.com/llvm/llvm-project/commit/adda9c0a4f6323f7d5c4b324b6dccea1e06d0fee.diff

LOG: IR: Remove extra name mangling from llvm.ptrmask

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.

Added: 
    

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

Removed: 
    


################################################################################
diff  --git a/llvm/include/llvm/IR/Intrinsics.td b/llvm/include/llvm/IR/Intrinsics.td
index afb454e18d17..5fe0cde9043a 100644
--- a/llvm/include/llvm/IR/Intrinsics.td
+++ b/llvm/include/llvm/IR/Intrinsics.td
@@ -1160,7 +1160,7 @@ def int_is_constant : Intrinsic<[llvm_i1_ty], [llvm_any_ty],
                                 "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 --------------===//


        


More information about the llvm-commits mailing list