Lines Matching defs:monomial
29 /// given monomial type, and stores the parsed coefficient value on the
30 /// monomial.
34 /// Try to parse a monomial. If successful, populate the fields of the outparam
35 /// `monomial` with the results, and the `variable` outparam with the parsed
36 /// variable name. Sets shouldParseMore to true if the monomial is followed by
41 parseMonomial(AsmParser &parser, Monomial &monomial, llvm::StringRef &variable,
44 OptionalParseResult parsedCoeffResult = parseAndStoreCoefficient(monomial);
56 monomial.setExponent(APInt(apintBitWidth, 0));
62 // A monomial can be a trailing constant term, as in `x + 1`.
70 monomial.setExponent(APInt(apintBitWidth, 0));
92 monomial.setExponent(parsedExponent);
94 monomial.setExponent(APInt(apintBitWidth, 1));
116 parser.emitError(parser.getCurrentLocation(), "expected a monomial");
159 [&](IntMonomial &monomial) -> OptionalParseResult {
163 monomial.setCoefficient(parsedCoeff);
185 [&](FloatMonomial &monomial) -> OptionalParseResult {
188 monomial.setCoefficient(APFloat(coeffValue));