24 StringRef nativeClassName,
25 bool supportsResultTypeInferrence, llvm::SMLoc loc) {
26 std::unique_ptr<Operation> &operation = operations[name];
28 return std::make_pair(&*operation,
false);
30 operation.reset(
new Operation(name, summary, desc, nativeClassName,
31 supportsResultTypeInferrence, loc));
32 return std::make_pair(&*operation,
true);
Dialect(StringRef name, MLIRContext *context, TypeID id)
The constructor takes a unique namespace for this dialect as well as the context to bind to.
std::pair< Operation *, bool > insertOperation(StringRef name, StringRef summary, StringRef desc, StringRef nativeClassName, bool supportsResultTypeInferrence, SMLoc loc)
Insert a new operation with the dialect.