[Mlir-commits] [mlir] 6ae13b7 - [MLIR] Remove LLVMVectorType
Nikita Popov
llvmlistbot at llvm.org
Wed Mar 30 01:57:54 PDT 2022
Author: Nikita Popov
Date: 2022-03-30T10:57:42+02:00
New Revision: 6ae13b74d6cf02593e892323cae7c322911d497a
URL: https://github.com/llvm/llvm-project/commit/6ae13b74d6cf02593e892323cae7c322911d497a
DIFF: https://github.com/llvm/llvm-project/commit/6ae13b74d6cf02593e892323cae7c322911d497a.diff
LOG: [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
Added:
Modified:
mlir/include/mlir/Dialect/LLVMIR/LLVMTypes.h
Removed:
################################################################################
diff --git a/mlir/include/mlir/Dialect/LLVMIR/LLVMTypes.h b/mlir/include/mlir/Dialect/LLVMIR/LLVMTypes.h
index a72f9f22ff6f1..cc2e30a821e63 100644
--- a/mlir/include/mlir/Dialect/LLVMIR/LLVMTypes.h
+++ b/mlir/include/mlir/Dialect/LLVMIR/LLVMTypes.h
@@ -347,35 +347,6 @@ class LLVMStructType
Location loc) const;
};
-//===----------------------------------------------------------------------===//
-// 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.
//===----------------------------------------------------------------------===//
More information about the Mlir-commits
mailing list