#include "mlir/Tools/PDLL/ODS/Context.h"
#include "mlir/Tools/PDLL/ODS/Constraint.h"
#include "mlir/Tools/PDLL/ODS/Dialect.h"
#include "mlir/Tools/PDLL/ODS/Operation.h"
#include "llvm/Support/ScopedPrinter.h"
#include "llvm/Support/raw_ostream.h"
#include <optional>
usingnamespacemlir;
usingnamespacemlir::pdll::ods;
Context::Context() = default;
Context::~Context() = default;
const AttributeConstraint &
Context::insertAttributeConstraint(StringRef name, StringRef summary,
StringRef cppClass) { … }
const TypeConstraint &Context::insertTypeConstraint(StringRef name,
StringRef summary,
StringRef cppClass) { … }
Dialect &Context::insertDialect(StringRef name) { … }
const Dialect *Context::lookupDialect(StringRef name) const { … }
std::pair<Operation *, bool>
Context::insertOperation(StringRef name, StringRef summary, StringRef desc,
StringRef nativeClassName,
bool supportsResultTypeInferrence, SMLoc loc) { … }
const Operation *Context::lookupOperation(StringRef name) const { … }
template <typename T>
SmallVector<T *> sortMapByName(const llvm::StringMap<std::unique_ptr<T>> &map) { … }
void Context::print(raw_ostream &os) const { … }