@@ -114,7 +114,7 @@ class DimLvlExpr {
114
114
115
115
// / Checks whether the variables bound/used by this spec are valid
116
116
// / with respect to the given ranks.
117
- bool isValid (Ranks const &ranks) const ;
117
+ [[nodiscard]] bool isValid (Ranks const &ranks) const ;
118
118
119
119
void print (llvm::raw_ostream &os) const ;
120
120
void print (AsmPrinter &printer) const ;
@@ -224,7 +224,7 @@ class DimSpec final {
224
224
// / respect to the given ranks. Note that null `DimExpr` is considered
225
225
// / to be vacuously valid, and therefore calling `setExpr` invalidates
226
226
// / the result of this predicate.
227
- bool isValid (Ranks const &ranks) const ;
227
+ [[nodiscard]] bool isValid (Ranks const &ranks) const ;
228
228
229
229
// TODO(wrengr): Use it or loose it.
230
230
bool isFunctionOf (Var var) const ;
@@ -273,7 +273,7 @@ class LvlSpec final {
273
273
//
274
274
// NOTE: Once we introduce "counting expressions" this will need
275
275
// a more sophisticated implementation than `DimSpec::isValid` does.
276
- bool isValid (Ranks const &ranks) const ;
276
+ [[nodiscard]] bool isValid (Ranks const &ranks) const ;
277
277
278
278
// TODO(wrengr): Use it or loose it.
279
279
bool isFunctionOf (Var var) const ;
@@ -297,7 +297,7 @@ class DimLvlMap final {
297
297
298
298
// Checks for integrity of variable-binding structure.
299
299
// This is already called by the ctor.
300
- bool isWF () const ;
300
+ [[nodiscard]] bool isWF () const ;
301
301
302
302
public:
303
303
DimLvlMap (unsigned symRank, ArrayRef<DimSpec> dimSpecs,
0 commit comments