1 //===-- mlir-c/Registration.h - Registration functions for MLIR ---*- C -*-===// 2 // 3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM 4 // Exceptions. 5 // See https://llvm.org/LICENSE.txt for license information. 6 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 // 8 //===----------------------------------------------------------------------===// 9 10 #ifndef MLIR_C_REGISTRATION_H 11 #define MLIR_C_REGISTRATION_H 12 13 #include "mlir-c/IR.h" 14 15 #ifdef __cplusplus 16 extern "C" { 17 #endif 18 19 /** Registers all dialects known to core MLIR with the provided Context. 20 * This is needed before creating IR for these Dialects. 21 */ 22 MLIR_CAPI_EXPORTED void mlirRegisterAllDialects(MlirContext context); 23 24 #ifdef __cplusplus 25 } 26 #endif 27 28 #endif // MLIR_C_REGISTRATION_H 29