1 //===-- Optimizer/Support/InitFIR.cpp -------------------------------------===// 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 "flang/Optimizer/Support/InitFIR.h" 10 #include "mlir/Target/LLVMIR/Dialect/LLVMIR/LLVMToLLVMIRTranslation.h" 11 #include "mlir/Target/LLVMIR/Dialect/OpenMP/OpenMPToLLVMIRTranslation.h" 12 registerLLVMTranslation(mlir::MLIRContext & context)13void fir::support::registerLLVMTranslation(mlir::MLIRContext &context) { 14 mlir::DialectRegistry registry; 15 // Register OpenMP dialect interface here as well. 16 mlir::registerOpenMPDialectTranslation(registry); 17 // Register LLVM-IR dialect interface. 18 registerLLVMDialectTranslation(registry); 19 context.appendDialectRegistry(registry); 20 } 21