Skip to content

Commit 563db46

Browse files
committed
fiddle with namespaces a bit more
1 parent 66843d6 commit 563db46

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

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

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,7 @@ ParseResult parseMonomial(AsmParser &parser, Monomial &monomial,
7878
return success();
7979
}
8080

81-
mlir::Attribute mlir::polynomial::PolynomialAttr::parse(AsmParser &parser,
82-
Type type) {
81+
Attribute PolynomialAttr::parse(AsmParser &parser, Type type) {
8382
if (failed(parser.parseLess()))
8483
return {};
8584

@@ -151,8 +150,7 @@ void RingAttr::print(AsmPrinter &p) const {
151150
<< ", polynomialModulus=" << getPolynomialModulus() << '>';
152151
}
153152

154-
mlir::Attribute mlir::polynomial::RingAttr::parse(AsmParser &parser,
155-
Type type) {
153+
Attribute RingAttr::parse(AsmParser &parser, Type type) {
156154
if (failed(parser.parseLess()))
157155
return {};
158156

@@ -174,7 +172,7 @@ mlir::Attribute mlir::polynomial::RingAttr::parse(AsmParser &parser,
174172
if (failed(parser.parseEqual()))
175173
return {};
176174

177-
IntegerType iType = dyn_cast<IntegerType>(typeAttr.getValue());
175+
IntegerType iType = llvm::dyn_cast<IntegerType>(typeAttr.getValue());
178176
if (!iType) {
179177
parser.emitError(parser.getCurrentLocation(),
180178
"invalid coefficient modulus, coefficientType must "

0 commit comments

Comments
 (0)