MLIR  20.0.0git
Namespaces | Typedefs | Functions
PolynomialAttributes.cpp File Reference
#include "mlir/Dialect/Polynomial/IR/PolynomialAttributes.h"
#include "mlir/Dialect/Polynomial/IR/Polynomial.h"
#include "mlir/Support/LLVM.h"
#include "llvm/ADT/SmallVector.h"
#include "llvm/ADT/StringExtras.h"
#include "llvm/ADT/StringRef.h"
#include "llvm/ADT/StringSet.h"

Go to the source code of this file.

Namespaces

 mlir
 Include the generated interface declarations.
 
 mlir::polynomial
 

Typedefs

template<typename MonomialType >
using mlir::polynomial::ParseCoefficientFn = std::function< OptionalParseResult(MonomialType &)>
 A callable that parses the coefficient using the appropriate method for the given monomial type, and stores the parsed coefficient value on the monomial. More...
 

Functions

template<typename Monomial >
ParseResult mlir::polynomial::parseMonomial (AsmParser &parser, Monomial &monomial, llvm::StringRef &variable, bool &isConstantTerm, bool &shouldParseMore, ParseCoefficientFn< Monomial > parseAndStoreCoefficient)
 Try to parse a monomial. More...
 
template<typename Monomial >
LogicalResult mlir::polynomial::parsePolynomialAttr (AsmParser &parser, llvm::SmallVector< Monomial > &monomials, llvm::StringSet<> &variables, ParseCoefficientFn< Monomial > parseAndStoreCoefficient)