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:
		
							parent
							
								
									51684a3833
								
							
						
					
					
						commit
						c3f4ab06d3
					
				| 
						 | 
					@ -42,7 +42,7 @@ namespace mhlo {
 | 
				
			||||||
namespace {
 | 
					namespace {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
template <typename T>
 | 
					template <typename T>
 | 
				
			||||||
using BaseOpConversion = BufferizeOpConversionPattern<T>;
 | 
					using BaseOpConversion = OpConversionPattern<T>;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Value InsertDynamicAllocAndDealloc(Location loc, Value result,
 | 
					Value InsertDynamicAllocAndDealloc(Location loc, Value result,
 | 
				
			||||||
                                   Value shape_operand,
 | 
					                                   Value shape_operand,
 | 
				
			||||||
| 
						 | 
					@ -623,7 +623,7 @@ void populateHLOToLHLOConversionPattern(MLIRContext* context,
 | 
				
			||||||
      HloToLhloReturnOpConverter,
 | 
					      HloToLhloReturnOpConverter,
 | 
				
			||||||
      HloToLhloTensorLoadOpConverter,
 | 
					      HloToLhloTensorLoadOpConverter,
 | 
				
			||||||
      HloToLhloTensorStoreOpConverter
 | 
					      HloToLhloTensorStoreOpConverter
 | 
				
			||||||
  >(context, *converter);
 | 
					  >(context);
 | 
				
			||||||
  // clang-format on
 | 
					  // clang-format on
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue