Skip to content

Commit a1b682a

Browse files
committed
add period to end of comments, remove SmallSet include
1 parent 2ce3cd9 commit a1b682a

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

mlir/lib/Dialect/Polynomial/IR/PolynomialAttributes.cpp

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
#include "mlir/Dialect/Polynomial/IR/Polynomial.h"
1111
#include "mlir/Support/LLVM.h"
1212
#include "mlir/Support/LogicalResult.h"
13-
#include "llvm/ADT/SmallSet.h"
1413
#include "llvm/ADT/StringExtras.h"
1514
#include "llvm/ADT/StringRef.h"
1615
#include "llvm/ADT/StringSet.h"
@@ -51,7 +50,7 @@ ParseResult parseMonomial(AsmParser &parser, Monomial &monomial,
5150
return success();
5251
}
5352

54-
// A monomial can be a trailing constant term, as in `x + 1`
53+
// A monomial can be a trailing constant term, as in `x + 1`.
5554
if (failed(parser.parseOptionalKeyword(&variable))) {
5655
// If neither a coefficient nor a variable was found, then it's effectively
5756
// parsing an empty string.
@@ -64,11 +63,11 @@ ParseResult parseMonomial(AsmParser &parser, Monomial &monomial,
6463
return success();
6564
}
6665

67-
// Parse exponentiation symbol as **
68-
// We can't use caret because it's reserved for basic block identifiers
69-
// If no star is present, it's treated as a polynomial with exponent 1
66+
// Parse exponentiation symbol as `**`. We can't use caret because it's
67+
// reserved for basic block identifiers If no star is present, it's treated
68+
// as a polynomial with exponent 1.
7069
if (succeeded(parser.parseOptionalStar())) {
71-
// If there's one * there must be two
70+
// If there's one * there must be two.
7271
if (failed(parser.parseStar())) {
7372
parser.emitError(parser.getCurrentLocation(),
7473
"exponents must be specified as a double-asterisk `**`");

0 commit comments

Comments
 (0)