From 6ae13b74d6cf02593e892323cae7c322911d497a Mon Sep 17 00:00:00 2001 From: Nikita Popov Date: Wed, 30 Mar 2022 10:03:08 +0200 Subject: [PATCH] [MLIR] Remove LLVMVectorType 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 | 29 ---------------------------- 1 file changed, 29 deletions(-) diff --git a/mlir/include/mlir/Dialect/LLVMIR/LLVMTypes.h b/mlir/include/mlir/Dialect/LLVMIR/LLVMTypes.h index a72f9f2..cc2e30a 100644 --- a/mlir/include/mlir/Dialect/LLVMIR/LLVMTypes.h +++ b/mlir/include/mlir/Dialect/LLVMIR/LLVMTypes.h @@ -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 emitError, - Type elementType, unsigned numElements); -}; - -//===----------------------------------------------------------------------===// // LLVMFixedVectorType. //===----------------------------------------------------------------------===// -- 2.7.4