Index: mlir/lib/IR/MLIRContext.cpp =================================================================== --- mlir/lib/IR/MLIRContext.cpp +++ mlir/lib/IR/MLIRContext.cpp @@ -175,11 +175,6 @@ /// destruction with the context. std::unique_ptr ownedThreadPool; - /// This is a list of dialects that are created referring to this context. - /// The MLIRContext owns the objects. - DenseMap> loadedDialects; - DialectRegistry dialectsRegistry; - /// An allocator used for AbstractAttribute and AbstractType objects. llvm::BumpPtrAllocator abstractDialectSymbolAllocator; @@ -193,6 +188,11 @@ /// and efficient `getRegisteredOperations` implementation. SmallVector sortedRegisteredOperations; + /// This is a list of dialects that are created referring to this context. + /// The MLIRContext owns the objects. + DenseMap> loadedDialects; + DialectRegistry dialectsRegistry; + /// A mutex used when accessing operation information. llvm::sys::SmartRWMutex operationInfoMutex;