[PATCH] D84212: [SVE] Remove default-false VectorType::get
Christopher Tetreault via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Aug 12 10:37:26 PDT 2020
This revision was automatically updated to reflect the committed changes.
Closed by commit rG1da09b7214b4: [SVE] Remove default-false VectorType::get (authored by ctetreau).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D84212/new/
https://reviews.llvm.org/D84212
Files:
llvm/include/llvm/IR/DerivedTypes.h
Index: llvm/include/llvm/IR/DerivedTypes.h
===================================================================
--- llvm/include/llvm/IR/DerivedTypes.h
+++ llvm/include/llvm/IR/DerivedTypes.h
@@ -444,17 +444,6 @@
/// 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 @@
}
};
-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:
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D84212.285139.patch
Type: text/x-patch
Size: 1528 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200812/f74976dd/attachment.bin>
More information about the llvm-commits
mailing list