Use OpConversionPattern instead of BufferizeOpConversionPattern

As described in mlir/Transforms/Bufferize.h, patterns that don't need the special methods on a BufferizeTypeConverter should use a regular OpConversionPattern.

PiperOrigin-RevId: 338424819
This commit is contained in:
Sean Silva 2020-10-22 01:20:06 -07:00 committed by TensorFlow MLIR Team
parent 51684a3833
commit c3f4ab06d3
1 changed files with 2 additions and 2 deletions

View File

@ -42,7 +42,7 @@ namespace mhlo {
namespace {
template <typename T>
using BaseOpConversion = BufferizeOpConversionPattern<T>;
using BaseOpConversion = OpConversionPattern<T>;
Value InsertDynamicAllocAndDealloc(Location loc, Value result,
Value shape_operand,
@ -623,7 +623,7 @@ void populateHLOToLHLOConversionPattern(MLIRContext* context,
HloToLhloReturnOpConverter,
HloToLhloTensorLoadOpConverter,
HloToLhloTensorStoreOpConverter
>(context, *converter);
>(context);
// clang-format on
}