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