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