[Mlir-commits] [mlir] 802bb8b - [mlir] StandardToLLVM conversion: remove dead code
Alex Zinenko
llvmlistbot at llvm.org
Thu Apr 2 09:54:12 PDT 2020
Author: Alex Zinenko
Date: 2020-04-02T18:52:40+02:00
New Revision: 802bb8b5c28ee8aa5c5f7e00fce4ab80aefd0548
URL: https://github.com/llvm/llvm-project/commit/802bb8b5c28ee8aa5c5f7e00fce4ab80aefd0548
DIFF: https://github.com/llvm/llvm-project/commit/802bb8b5c28ee8aa5c5f7e00fce4ab80aefd0548.diff
LOG: [mlir] StandardToLLVM conversion: remove dead code
This code is unused since 04ed07bc174149d61c8a4ed131f0838578bdcaa5,
but it was not removed in that commit.
Added:
Modified:
mlir/lib/Conversion/StandardToLLVM/StandardToLLVM.cpp
Removed:
################################################################################
diff --git a/mlir/lib/Conversion/StandardToLLVM/StandardToLLVM.cpp b/mlir/lib/Conversion/StandardToLLVM/StandardToLLVM.cpp
index 91c7a249a941..d840a87568a7 100644
--- a/mlir/lib/Conversion/StandardToLLVM/StandardToLLVM.cpp
+++ b/mlir/lib/Conversion/StandardToLLVM/StandardToLLVM.cpp
@@ -1087,6 +1087,7 @@ void nDVectorIterate(const NDVectorTypeInfo &info, OpBuilder &builder,
fun(position);
}
}
+////////////// End Support for Lowering operations on n-D vectors //////////////
/// Replaces the given operaiton "op" with a new operation of type "targetOp"
/// and given operands.
@@ -1128,29 +1129,6 @@ LogicalResult LLVM::detail::oneToOneRewrite(
return success();
}
-////////////// End Support for Lowering operations on n-D vectors //////////////
-namespace {
-template <typename SourceOp, unsigned OpCount>
-struct OpCountValidator {
- static_assert(
- std::is_base_of<
- typename OpTrait::NOperands<OpCount>::template Impl<SourceOp>,
- SourceOp>::value,
- "wrong operand count");
-};
-
-template <typename SourceOp>
-struct OpCountValidator<SourceOp, 1> {
- static_assert(std::is_base_of<OpTrait::OneOperand<SourceOp>, SourceOp>::value,
- "expected a single operand");
-};
-
-template <typename SourceOp, unsigned OpCount>
-void ValidateOpCount() {
- OpCountValidator<SourceOp, OpCount>();
-}
-} // namespace
-
static LogicalResult handleMultidimensionalVectors(
Operation *op, ValueRange operands, LLVMTypeConverter &typeConverter,
std::function<Value(LLVM::LLVMType, ValueRange)> createOperand,
More information about the Mlir-commits
mailing list