From 8451d4872ed70d307e21bc437d51ecf9be0cdd08 Mon Sep 17 00:00:00 2001 From: Christian Sigg Date: Wed, 23 Dec 2020 10:51:23 +0100 Subject: [PATCH] [mlir] NFC: Remove ConvertToLLVMPattern::getDataPtr(). All call sites use getStridedElementPtr() now. Reviewed By: ftynse Differential Revision: https://reviews.llvm.org/D93751 --- mlir/include/mlir/Conversion/StandardToLLVM/ConvertStandardToLLVM.h | 5 ----- mlir/lib/Conversion/StandardToLLVM/StandardToLLVM.cpp | 6 ------ 2 files changed, 11 deletions(-) diff --git a/mlir/include/mlir/Conversion/StandardToLLVM/ConvertStandardToLLVM.h b/mlir/include/mlir/Conversion/StandardToLLVM/ConvertStandardToLLVM.h index 63ff16a..63547db 100644 --- a/mlir/include/mlir/Conversion/StandardToLLVM/ConvertStandardToLLVM.h +++ b/mlir/include/mlir/Conversion/StandardToLLVM/ConvertStandardToLLVM.h @@ -512,11 +512,6 @@ protected: ValueRange indices, ConversionPatternRewriter &rewriter) const; - // Forwards to getStridedElementPtr. TODO: remove. - Value getDataPtr(Location loc, MemRefType type, Value memRefDesc, - ValueRange indices, - ConversionPatternRewriter &rewriter) const; - /// Returns if the givem memref type is supported. bool isSupportedMemRefType(MemRefType type) const; diff --git a/mlir/lib/Conversion/StandardToLLVM/StandardToLLVM.cpp b/mlir/lib/Conversion/StandardToLLVM/StandardToLLVM.cpp index e37e7e2..97e763f 100644 --- a/mlir/lib/Conversion/StandardToLLVM/StandardToLLVM.cpp +++ b/mlir/lib/Conversion/StandardToLLVM/StandardToLLVM.cpp @@ -1085,12 +1085,6 @@ Value ConvertToLLVMPattern::getStridedElementPtr( : base; } -Value ConvertToLLVMPattern::getDataPtr( - Location loc, MemRefType type, Value memRefDesc, ValueRange indices, - ConversionPatternRewriter &rewriter) const { - return getStridedElementPtr(loc, type, memRefDesc, indices, rewriter); -} - // Check if the MemRefType `type` is supported by the lowering. We currently // only support memrefs with identity maps. bool ConvertToLLVMPattern::isSupportedMemRefType(MemRefType type) const { -- 2.7.4