diff --git a/mlir/lib/Dialect/Tosa/IR/TosaOps.cpp b/mlir/lib/Dialect/Tosa/IR/TosaOps.cpp --- a/mlir/lib/Dialect/Tosa/IR/TosaOps.cpp +++ b/mlir/lib/Dialect/Tosa/IR/TosaOps.cpp @@ -586,7 +586,7 @@ return valueAttr(); } -#define ReduceFolder(OP) \ +#define REDUCE_FOLDER(OP) \ OpFoldResult OP::fold(ArrayRef operands) { \ ShapedType inputTy = input().getType().cast(); \ if (!inputTy.hasRank()) \ @@ -596,13 +596,13 @@ return {}; \ } -ReduceFolder(ReduceAllOp); -ReduceFolder(ReduceAnyOp); -ReduceFolder(ReduceMaxOp); -ReduceFolder(ReduceMinOp); -ReduceFolder(ReduceProdOp); -ReduceFolder(ReduceSumOp); -#undef ReduceFolder +REDUCE_FOLDER(ReduceAllOp) +REDUCE_FOLDER(ReduceAnyOp) +REDUCE_FOLDER(ReduceMaxOp) +REDUCE_FOLDER(ReduceMinOp) +REDUCE_FOLDER(ReduceProdOp) +REDUCE_FOLDER(ReduceSumOp) +#undef REDUCE_FOLDER OpFoldResult ReshapeOp::fold(ArrayRef operands) { auto inputTy = input1().getType().dyn_cast();