summaryrefslogtreecommitdiffstats
path: root/llvm/include
diff options
context:
space:
mode:
authorAdam Nemet <anemet@apple.com>2016-04-14 08:47:17 +0000
committerAdam Nemet <anemet@apple.com>2016-04-14 08:47:17 +0000
commit7aab6488310361f87e884d030aaa982ce825f957 (patch)
tree6dd656ac898fc89c9bb65450dc5a689ba75a0a6f /llvm/include
parent8dcc8080ce2f3fed3135766af6b49b98e9b0b2d6 (diff)
downloadbcm5719-llvm-7aab6488310361f87e884d030aaa982ce825f957.tar.gz
bcm5719-llvm-7aab6488310361f87e884d030aaa982ce825f957.zip
Revert "Support arbitrary addrspace pointers in masked load/store intrinsics"
This reverts commit r266086. It breaks the LTO build of gcc in SPEC2000. llvm-svn: 266282
Diffstat (limited to 'llvm/include')
-rw-r--r--llvm/include/llvm/IR/IRBuilder.h4
-rw-r--r--llvm/include/llvm/IR/Intrinsics.td5
2 files changed, 4 insertions, 5 deletions
diff --git a/llvm/include/llvm/IR/IRBuilder.h b/llvm/include/llvm/IR/IRBuilder.h
index d79ac1bf519..3049259b31a 100644
--- a/llvm/include/llvm/IR/IRBuilder.h
+++ b/llvm/include/llvm/IR/IRBuilder.h
@@ -518,9 +518,9 @@ public:
private:
/// \brief Create a call to a masked intrinsic with given Id.
+ /// Masked intrinsic has only one overloaded type - data type.
CallInst *CreateMaskedIntrinsic(Intrinsic::ID Id, ArrayRef<Value *> Ops,
- ArrayRef<Type *> OverloadedTypes,
- const Twine &Name = "");
+ Type *DataTy, const Twine &Name = "");
Value *getCastedInt8PtrValue(Value *Ptr);
};
diff --git a/llvm/include/llvm/IR/Intrinsics.td b/llvm/include/llvm/IR/Intrinsics.td
index 34f6f6e46b0..0f4f3c40b45 100644
--- a/llvm/include/llvm/IR/Intrinsics.td
+++ b/llvm/include/llvm/IR/Intrinsics.td
@@ -638,14 +638,13 @@ def int_clear_cache : Intrinsic<[], [llvm_ptr_ty, llvm_ptr_ty],
//===-------------------------- Masked Intrinsics -------------------------===//
//
-def int_masked_store : Intrinsic<[], [llvm_anyvector_ty,
- LLVMAnyPointerType<LLVMMatchType<0>>,
+def int_masked_store : Intrinsic<[], [llvm_anyvector_ty, LLVMPointerTo<0>,
llvm_i32_ty,
LLVMVectorSameWidth<0, llvm_i1_ty>],
[IntrReadWriteArgMem]>;
def int_masked_load : Intrinsic<[llvm_anyvector_ty],
- [LLVMAnyPointerType<LLVMMatchType<0>>, llvm_i32_ty,
+ [LLVMPointerTo<0>, llvm_i32_ty,
LLVMVectorSameWidth<0, llvm_i1_ty>, LLVMMatchType<0>],
[IntrReadArgMem]>;
OpenPOWER on IntegriCloud