//===- DialectHandle.cpp - C Interface for MLIR Dialect Operations -------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===----------------------------------------------------------------------===// #include "mlir/CAPI/Registration.h" static inline const MlirDialectRegistrationHooks * unwrap(MlirDialectHandle handle) { … } MlirStringRef mlirDialectHandleGetNamespace(MlirDialectHandle handle) { … } void mlirDialectHandleInsertDialect(MlirDialectHandle handle, MlirDialectRegistry registry) { … } void mlirDialectHandleRegisterDialect(MlirDialectHandle handle, MlirContext ctx) { … } MlirDialect mlirDialectHandleLoadDialect(MlirDialectHandle handle, MlirContext ctx) { … }