diff --git a/mlir/include/mlir/IR/MLIRContext.h b/mlir/include/mlir/IR/MLIRContext.h --- a/mlir/include/mlir/IR/MLIRContext.h +++ b/mlir/include/mlir/IR/MLIRContext.h @@ -156,9 +156,6 @@ void enterMultiThreadedExecution(); void exitMultiThreadedExecution(); -private: - const std::unique_ptr impl; - /// Get a dialect for the provided namespace and TypeID: abort the program if /// a dialect exist for this namespace with different TypeID. If a dialect has /// not been loaded for this namespace/TypeID yet, use the provided ctor to @@ -167,6 +164,9 @@ Dialect *getOrLoadDialect(StringRef dialectNamespace, TypeID dialectID, function_ref()> ctor); +private: + const std::unique_ptr impl; + MLIRContext(const MLIRContext &) = delete; void operator=(const MLIRContext &) = delete; };