58 return llvm::make_pointee_range(llvm::make_second_range(dialects));
64 std::pair<Operation *, bool>
66 StringRef nativeClassName,
bool supportsResultTypeInferrence,
77 llvm::StringMap<std::unique_ptr<AttributeConstraint>> attributeConstraints;
78 llvm::StringMap<std::unique_ptr<Dialect>> dialects;
79 llvm::StringMap<std::unique_ptr<TypeConstraint>> typeConstraints;
std::pair< Operation *, bool > insertOperation(StringRef name, StringRef summary, StringRef desc, StringRef nativeClassName, bool supportsResultTypeInferrence, SMLoc loc)
Insert a new operation with the context.
const TypeConstraint & insertTypeConstraint(StringRef name, StringRef summary, StringRef cppClass)
Insert a new type constraint with the context.
auto getDialects() const
Return a range of all of the registered dialects.
Dialect & insertDialect(StringRef name)
Insert a new dialect with the context.
const Dialect * lookupDialect(StringRef name) const
Lookup a dialect registered with the given name, or null if no dialect with that name was inserted.
const AttributeConstraint & insertAttributeConstraint(StringRef name, StringRef summary, StringRef cppClass)
Insert a new attribute constraint with the context.
const Operation * lookupOperation(StringRef name) const
Lookup an operation registered with the given name, or null if no operation with that name is registe...
void print(raw_ostream &os) const
Print the contents of this context to the provided stream.