[llvm] 1da09b7 - [SVE] Remove default-false VectorType::get

Christopher Tetreault via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 12 10:37:22 PDT 2020


Author: Christopher Tetreault
Date: 2020-08-12T10:37:05-07:00
New Revision: 1da09b7214b4e487c371e5d1c5024d92aadc3c7a

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

LOG: [SVE] Remove default-false VectorType::get

Reviewed By: efriedma

Differential Revision: https://reviews.llvm.org/D84212

Added: 
    

Modified: 
    llvm/include/llvm/IR/DerivedTypes.h

Removed: 
    


################################################################################
diff  --git a/llvm/include/llvm/IR/DerivedTypes.h b/llvm/include/llvm/IR/DerivedTypes.h
index 3618447168bed..843809909d7c2 100644
--- a/llvm/include/llvm/IR/DerivedTypes.h
+++ b/llvm/include/llvm/IR/DerivedTypes.h
@@ -444,17 +444,6 @@ class VectorType : public Type {
   /// This static method is the primary way to construct an VectorType.
   static VectorType *get(Type *ElementType, ElementCount EC);
 
-  /// Base class getter that specifically constructs a FixedVectorType. This
-  /// function is deprecated, and will be removed after LLVM 11 ships. Since
-  /// this always returns a FixedVectorType via a base VectorType pointer,
-  /// FixedVectorType::get(Type *, unsigned) is strictly better since no cast is
-  /// required to call getNumElements() on the result.
-  LLVM_ATTRIBUTE_DEPRECATED(
-      inline static VectorType *get(Type *ElementType, unsigned NumElements),
-      "The base class version of get with the scalable argument defaulted to "
-      "false is deprecated. Either call VectorType::get(Type *, unsigned, "
-      "bool) and pass false, or call FixedVectorType::get(Type *, unsigned).");
-
   static VectorType *get(Type *ElementType, unsigned NumElements,
                          bool Scalable) {
     return VectorType::get(ElementType, {NumElements, Scalable});
@@ -549,10 +538,6 @@ class VectorType : public Type {
   }
 };
 
-inline VectorType *VectorType::get(Type *ElementType, unsigned NumElements) {
-  return VectorType::get(ElementType, NumElements, false);
-}
-
 /// Class to represent fixed width SIMD vectors
 class FixedVectorType : public VectorType {
 protected:


        


More information about the llvm-commits mailing list