Skip to content

Commit 883fccc

Browse files
committed
[mlir][tosa] Switch missed accessors to prefixed form (NFC)
1 parent a9c5d09 commit 883fccc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

mlir/lib/Dialect/Tosa/IR/TosaCanonicalizations.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -450,11 +450,11 @@ OpFoldResult ConstOp::fold(ArrayRef<Attribute> operands) {
450450

451451
#define REDUCE_FOLDER(OP) \
452452
OpFoldResult OP::fold(ArrayRef<Attribute> operands) { \
453-
ShapedType inputTy = input().getType().cast<ShapedType>(); \
453+
ShapedType inputTy = getInput().getType().cast<ShapedType>(); \
454454
if (!inputTy.hasRank()) \
455455
return {}; \
456-
if (inputTy.getDimSize(axis()) == 1) \
457-
return input(); \
456+
if (inputTy.getDimSize(getAxis()) == 1) \
457+
return getInput(); \
458458
return {}; \
459459
}
460460

0 commit comments

Comments
 (0)