@@ -125,9 +125,9 @@ static bool remainsLegalAfterInline(OpTy op, Region *src, Region *dest,
125125// Use "unused attribute" marker to silence clang-tidy warning stemming from
126126// the inability to see through "llvm::TypeSwitch".
127127template <>
128- bool LLVM_ATTRIBUTE_UNUSED remainsLegalAfterInline (AffineApplyOp op,
129- Region *src, Region *dest,
130- const IRMapping &mapping) {
128+ [[maybe_unused]] bool remainsLegalAfterInline (AffineApplyOp op, Region *src ,
129+ Region *dest,
130+ const IRMapping &mapping) {
131131 // If it's a valid dimension, we need to check that it remains so.
132132 if (isValidDim (op.getResult (), src))
133133 return remainsLegalAfterInline (
@@ -1032,8 +1032,8 @@ static void simplifyMinOrMaxExprWithOperands(AffineMap &map,
10321032// / Simplify the map while exploiting information on the values in `operands`.
10331033// Use "unused attribute" marker to silence warning stemming from the inability
10341034// to see through the template expansion.
1035- static void LLVM_ATTRIBUTE_UNUSED
1036- simplifyMapWithOperands (AffineMap &map, ArrayRef<Value> operands) {
1035+ [[maybe_unused]] static void simplifyMapWithOperands (AffineMap &map,
1036+ ArrayRef<Value> operands) {
10371037 assert (map.getNumInputs () == operands.size () && " invalid operands for map" );
10381038 SmallVector<AffineExpr> newResults;
10391039 newResults.reserve (map.getNumResults ());
0 commit comments