[MLIR] Remove LLVMVectorType
authorNikita Popov <npopov@redhat.com>
Wed, 30 Mar 2022 08:03:08 +0000 (10:03 +0200)
committerNikita Popov <npopov@redhat.com>
Wed, 30 Mar 2022 08:57:42 +0000 (10:57 +0200)
While this claims to be the base class for fixed and scalable
vectors, this is no longer the case since D94405. In fact,
LLVMVectorType is not usable, since the methods it declares are
never defined. Remove this leftover.

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

mlir/include/mlir/Dialect/LLVMIR/LLVMTypes.h

index a72f9f2..cc2e30a 100644 (file)
@@ -348,35 +348,6 @@ public:
 };
 
 //===----------------------------------------------------------------------===//
-// LLVMVectorType.
-//===----------------------------------------------------------------------===//
-
-/// LLVM dialect vector type, represents a sequence of elements that can be
-/// processed as one, typically in SIMD context. This is a base class for fixed
-/// and scalable vectors.
-class LLVMVectorType : public Type {
-public:
-  /// Inherit base constructor.
-  using Type::Type;
-
-  /// Support type casting functionality.
-  static bool classof(Type type);
-
-  /// Checks if the given type can be used in a vector type.
-  static bool isValidElementType(Type type);
-
-  /// Returns the element type of the vector.
-  Type getElementType();
-
-  /// Returns the number of elements in the vector.
-  llvm::ElementCount getElementCount();
-
-  /// Verifies that the type about to be constructed is well-formed.
-  static LogicalResult verify(function_ref<InFlightDiagnostic()> emitError,
-                              Type elementType, unsigned numElements);
-};
-
-//===----------------------------------------------------------------------===//
 // LLVMFixedVectorType.
 //===----------------------------------------------------------------------===//