[Mlir-commits] [mlir] 4db0bd2 - [mlir][vector][nfc] remove unused template parameter (#75931)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Wed Dec 20 00:06:29 PST 2023
Author: Cullen Rhodes
Date: 2023-12-20T08:06:25Z
New Revision: 4db0bd28e8be6d8db82feabf7262bf899caf2757
URL: https://github.com/llvm/llvm-project/commit/4db0bd28e8be6d8db82feabf7262bf899caf2757
DIFF: https://github.com/llvm/llvm-project/commit/4db0bd28e8be6d8db82feabf7262bf899caf2757.diff
LOG: [mlir][vector][nfc] remove unused template parameter (#75931)
Added:
Modified:
mlir/lib/Conversion/VectorToLLVM/ConvertVectorToLLVM.cpp
Removed:
################################################################################
diff --git a/mlir/lib/Conversion/VectorToLLVM/ConvertVectorToLLVM.cpp b/mlir/lib/Conversion/VectorToLLVM/ConvertVectorToLLVM.cpp
index ebf7d9b65fa1de..a24fb6f8391538 100644
--- a/mlir/lib/Conversion/VectorToLLVM/ConvertVectorToLLVM.cpp
+++ b/mlir/lib/Conversion/VectorToLLVM/ConvertVectorToLLVM.cpp
@@ -221,7 +221,7 @@ static void replaceLoadOrStoreOp(vector::MaskedStoreOp storeOp,
/// Conversion pattern for a vector.load, vector.store, vector.maskedload, and
/// vector.maskedstore.
-template <class LoadOrStoreOp, class LoadOrStoreOpAdaptor>
+template <class LoadOrStoreOp>
class VectorLoadStoreConversion : public ConvertOpToLLVMPattern<LoadOrStoreOp> {
public:
using ConvertOpToLLVMPattern<LoadOrStoreOp>::ConvertOpToLLVMPattern;
@@ -1742,23 +1742,20 @@ void mlir::populateVectorToLLVMConversionPatterns(
populateVectorInsertExtractStridedSliceTransforms(patterns);
patterns.add<VectorReductionOpConversion>(converter, reassociateFPReductions);
patterns.add<VectorCreateMaskOpRewritePattern>(ctx, force32BitVectorIndices);
- patterns
- .add<VectorBitCastOpConversion, VectorShuffleOpConversion,
- VectorExtractElementOpConversion, VectorExtractOpConversion,
- VectorFMAOp1DConversion, VectorInsertElementOpConversion,
- VectorInsertOpConversion, VectorPrintOpConversion,
- VectorTypeCastOpConversion, VectorScaleOpConversion,
- VectorLoadStoreConversion<vector::LoadOp, vector::LoadOpAdaptor>,
- VectorLoadStoreConversion<vector::MaskedLoadOp,
- vector::MaskedLoadOpAdaptor>,
- VectorLoadStoreConversion<vector::StoreOp, vector::StoreOpAdaptor>,
- VectorLoadStoreConversion<vector::MaskedStoreOp,
- vector::MaskedStoreOpAdaptor>,
- VectorGatherOpConversion, VectorScatterOpConversion,
- VectorExpandLoadOpConversion, VectorCompressStoreOpConversion,
- VectorSplatOpLowering, VectorSplatNdOpLowering,
- VectorScalableInsertOpLowering, VectorScalableExtractOpLowering,
- MaskedReductionOpConversion>(converter);
+ patterns.add<VectorBitCastOpConversion, VectorShuffleOpConversion,
+ VectorExtractElementOpConversion, VectorExtractOpConversion,
+ VectorFMAOp1DConversion, VectorInsertElementOpConversion,
+ VectorInsertOpConversion, VectorPrintOpConversion,
+ VectorTypeCastOpConversion, VectorScaleOpConversion,
+ VectorLoadStoreConversion<vector::LoadOp>,
+ VectorLoadStoreConversion<vector::MaskedLoadOp>,
+ VectorLoadStoreConversion<vector::StoreOp>,
+ VectorLoadStoreConversion<vector::MaskedStoreOp>,
+ VectorGatherOpConversion, VectorScatterOpConversion,
+ VectorExpandLoadOpConversion, VectorCompressStoreOpConversion,
+ VectorSplatOpLowering, VectorSplatNdOpLowering,
+ VectorScalableInsertOpLowering, VectorScalableExtractOpLowering,
+ MaskedReductionOpConversion>(converter);
// Transfer ops with rank > 1 are handled by VectorToSCF.
populateVectorTransferLoweringPatterns(patterns, /*maxTransferRank=*/1);
}
More information about the Mlir-commits
mailing list