Skip to content

Commit 1da09b7

Browse files
[SVE] Remove default-false VectorType::get
Reviewed By: efriedma Differential Revision: https://reviews.llvm.org/D84212
1 parent f07f17a commit 1da09b7

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

llvm/include/llvm/IR/DerivedTypes.h

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -444,17 +444,6 @@ class VectorType : public Type {
444444
/// This static method is the primary way to construct an VectorType.
445445
static VectorType *get(Type *ElementType, ElementCount EC);
446446

447-
/// Base class getter that specifically constructs a FixedVectorType. This
448-
/// function is deprecated, and will be removed after LLVM 11 ships. Since
449-
/// this always returns a FixedVectorType via a base VectorType pointer,
450-
/// FixedVectorType::get(Type *, unsigned) is strictly better since no cast is
451-
/// required to call getNumElements() on the result.
452-
LLVM_ATTRIBUTE_DEPRECATED(
453-
inline static VectorType *get(Type *ElementType, unsigned NumElements),
454-
"The base class version of get with the scalable argument defaulted to "
455-
"false is deprecated. Either call VectorType::get(Type *, unsigned, "
456-
"bool) and pass false, or call FixedVectorType::get(Type *, unsigned).");
457-
458447
static VectorType *get(Type *ElementType, unsigned NumElements,
459448
bool Scalable) {
460449
return VectorType::get(ElementType, {NumElements, Scalable});
@@ -549,10 +538,6 @@ class VectorType : public Type {
549538
}
550539
};
551540

552-
inline VectorType *VectorType::get(Type *ElementType, unsigned NumElements) {
553-
return VectorType::get(ElementType, NumElements, false);
554-
}
555-
556541
/// Class to represent fixed width SIMD vectors
557542
class FixedVectorType : public VectorType {
558543
protected:

0 commit comments

Comments
 (0)