|
21 | 21 | #include "mlir/Transforms/DialectConversion.h"
|
22 | 22 | #include "llvm/ADT/ArrayRef.h"
|
23 | 23 | #include <cstdint>
|
24 |
| -#include <limits> |
25 | 24 | #include <numeric>
|
26 | 25 | #include <optional>
|
27 | 26 |
|
@@ -230,10 +229,8 @@ struct LinearizeVectorExtractStridedSlice final
|
230 | 229 | struct LinearizeVectorShuffle final
|
231 | 230 | : public OpConversionPattern<vector::ShuffleOp> {
|
232 | 231 | using OpConversionPattern::OpConversionPattern;
|
233 |
| - LinearizeVectorShuffle( |
234 |
| - const TypeConverter &typeConverter, MLIRContext *context, |
235 |
| - unsigned targetVectBitWidth = std::numeric_limits<unsigned>::max(), |
236 |
| - PatternBenefit benefit = 1) |
| 232 | + LinearizeVectorShuffle(const TypeConverter &typeConverter, |
| 233 | + MLIRContext *context, PatternBenefit benefit = 1) |
237 | 234 | : OpConversionPattern(typeConverter, context, benefit) {}
|
238 | 235 |
|
239 | 236 | LogicalResult
|
@@ -290,10 +287,8 @@ struct LinearizeVectorShuffle final
|
290 | 287 | struct LinearizeVectorExtract final
|
291 | 288 | : public OpConversionPattern<vector::ExtractOp> {
|
292 | 289 | using OpConversionPattern::OpConversionPattern;
|
293 |
| - LinearizeVectorExtract( |
294 |
| - const TypeConverter &typeConverter, MLIRContext *context, |
295 |
| - unsigned targetVectBitWidth = std::numeric_limits<unsigned>::max(), |
296 |
| - PatternBenefit benefit = 1) |
| 290 | + LinearizeVectorExtract(const TypeConverter &typeConverter, |
| 291 | + MLIRContext *context, PatternBenefit benefit = 1) |
297 | 292 | : OpConversionPattern(typeConverter, context, benefit) {}
|
298 | 293 | LogicalResult
|
299 | 294 | matchAndRewrite(vector::ExtractOp extractOp, OpAdaptor adaptor,
|
@@ -339,10 +334,8 @@ struct LinearizeVectorExtract final
|
339 | 334 | struct LinearizeVectorInsert final
|
340 | 335 | : public OpConversionPattern<vector::InsertOp> {
|
341 | 336 | using OpConversionPattern::OpConversionPattern;
|
342 |
| - LinearizeVectorInsert( |
343 |
| - const TypeConverter &typeConverter, MLIRContext *context, |
344 |
| - unsigned targetVectBitWidth = std::numeric_limits<unsigned>::max(), |
345 |
| - PatternBenefit benefit = 1) |
| 337 | + LinearizeVectorInsert(const TypeConverter &typeConverter, |
| 338 | + MLIRContext *context, PatternBenefit benefit = 1) |
346 | 339 | : OpConversionPattern(typeConverter, context, benefit) {}
|
347 | 340 | LogicalResult
|
348 | 341 | matchAndRewrite(vector::InsertOp insertOp, OpAdaptor adaptor,
|
@@ -408,10 +401,8 @@ struct LinearizeVectorInsert final
|
408 | 401 | struct LinearizeVectorBitCast final
|
409 | 402 | : public OpConversionPattern<vector::BitCastOp> {
|
410 | 403 | using OpConversionPattern::OpConversionPattern;
|
411 |
| - LinearizeVectorBitCast( |
412 |
| - const TypeConverter &typeConverter, MLIRContext *context, |
413 |
| - unsigned targetVectBitWidth = std::numeric_limits<unsigned>::max(), |
414 |
| - PatternBenefit benefit = 1) |
| 404 | + LinearizeVectorBitCast(const TypeConverter &typeConverter, |
| 405 | + MLIRContext *context, PatternBenefit benefit = 1) |
415 | 406 | : OpConversionPattern(typeConverter, context, benefit) {}
|
416 | 407 | LogicalResult
|
417 | 408 | matchAndRewrite(vector::BitCastOp castOp, OpAdaptor adaptor,
|
|
0 commit comments