#include "mlir/IR/AffineMap.h"
#include "mlir/IR/AsmState.h"
#include "mlir/IR/Attributes.h"
+#include "mlir/IR/Builders.h"
#include "mlir/IR/BuiltinTypes.h"
#include "mlir/IR/Dialect.h"
#include "mlir/IR/DialectImplementation.h"
DialectAsmParser::~DialectAsmParser() {}
OpAsmParser::~OpAsmParser() {}
-//===--------------------------------------------------------------------===//
+MLIRContext *AsmParser::getContext() const { return getBuilder().getContext(); }
+
+//===----------------------------------------------------------------------===//
// DialectAsmPrinter
-//===--------------------------------------------------------------------===//
+//===----------------------------------------------------------------------===//
DialectAsmPrinter::~DialectAsmPrinter() {}
-//===--------------------------------------------------------------------===//
+//===----------------------------------------------------------------------===//
// OpAsmPrinter
-//===--------------------------------------------------------------------===//
+//===----------------------------------------------------------------------===//
OpAsmPrinter::~OpAsmPrinter() {}
os << ')';
}
-//===--------------------------------------------------------------------===//
+//===----------------------------------------------------------------------===//
// Operation OpAsm interface.
-//===--------------------------------------------------------------------===//
+//===----------------------------------------------------------------------===//
/// The OpAsmOpInterface, see OpAsmInterface.td for more details.
#include "mlir/IR/OpAsmInterface.cpp.inc"