CppADCodeGen  HEAD
A C++ Algorithmic Differentiation Package with Source Code Generation
llvm_model_library_processor.hpp
1 #ifndef CPPAD_CG_LLVM_MODEL_LIBRARY_PROCESSOR_INCLUDED
2 #define CPPAD_CG_LLVM_MODEL_LIBRARY_PROCESSOR_INCLUDED
3 /* --------------------------------------------------------------------------
4  * CppADCodeGen: C++ Algorithmic Differentiation with Source Code Generation:
5  * Copyright (C) 2020 Joao Leal
6  *
7  * CppADCodeGen is distributed under multiple licenses:
8  *
9  * - Eclipse Public License Version 1.0 (EPL1), and
10  * - GNU General Public License Version 3 (GPL3).
11  *
12  * EPL1 terms and conditions can be found in the file "epl-v10.txt", while
13  * terms and conditions for the GPL3 can be found in the file "gpl3.txt".
14  * ----------------------------------------------------------------------------
15  * Author: Joao Leal
16  */
17 
18 #include <cppad/cg/model/llvm/v5_0/llvm_base_model_library_processor_impl.hpp>
19 
20 namespace CppAD {
21 namespace cg {
22 
28 template<class Base>
30 public:
31 
38  LlvmBaseModelLibraryProcessorImpl<Base>(librarySourceGen, "10") {
39  }
40 
41  virtual ~LlvmModelLibraryProcessor() = default;
42 
44 
45  static inline std::unique_ptr<LlvmModelLibrary<Base>> create(ModelLibraryCSourceGen<Base>& modelLibraryHelper) {
46  LlvmModelLibraryProcessor<Base> p(modelLibraryHelper);
47  return p.create();
48  }
49 };
50 
51 } // END cg namespace
52 } // END CppAD namespace
53 
54 #endif
LlvmModelLibraryProcessor(ModelLibraryCSourceGen< Base > &librarySourceGen)