1 //===- RegisterEverything.cpp - Register all MLIR entities ----------------===// 2 // 3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 4 // See https://llvm.org/LICENSE.txt for license information. 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6 // 7 //===----------------------------------------------------------------------===// 8 9 #include "mlir-c/RegisterEverything.h" 10 11 #include "mlir/CAPI/IR.h" 12 #include "mlir/InitAllDialects.h" 13 #include "mlir/InitAllPasses.h" 14 #include "mlir/Target/LLVMIR/Dialect/LLVMIR/LLVMToLLVMIRTranslation.h" 15 16 void mlirRegisterAllDialects(MlirDialectRegistry registry) { 17 mlir::registerAllDialects(*unwrap(registry)); 18 } 19 20 void mlirRegisterAllLLVMTranslations(MlirContext context) { 21 mlir::registerLLVMDialectTranslation(*unwrap(context)); 22 } 23 24 void mlirRegisterAllPasses() { mlir::registerAllPasses(); } 25