1 //===- FrontendPluginRegistry.h ---------------------------------*- C++ -*-===// 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 // Pluggable Frontend Action Interface 10 // 11 // Coding style: https://mlir.llvm.org/getting_started/DeveloperGuide/ 12 // 13 //===----------------------------------------------------------------------===// 14 15 #ifndef FORTRAN_FRONTEND_FRONTENDPLUGINREGISTRY_H 16 #define FORTRAN_FRONTEND_FRONTENDPLUGINREGISTRY_H 17 18 #include "flang/Frontend/FrontendActions.h" 19 #include "llvm/Support/Registry.h" 20 21 namespace Fortran::frontend { 22 23 /// The frontend plugin registry. 24 using FrontendPluginRegistry = llvm::Registry<PluginParseTreeAction>; 25 26 } // namespace Fortran::frontend 27 28 namespace llvm { 29 extern template class Registry<Fortran::frontend::PluginParseTreeAction>; 30 } 31 32 #endif // FORTRAN_FRONTEND_FRONTENDPLUGINREGISTRY_H 33