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>
29
class
LlvmModelLibraryProcessor
:
public
LlvmBaseModelLibraryProcessorImpl
<Base> {
30
public
:
31
37
LlvmModelLibraryProcessor
(
ModelLibraryCSourceGen<Base>
& librarySourceGen) :
38
LlvmBaseModelLibraryProcessorImpl
<Base>(librarySourceGen,
"10"
) {
39
}
40
41
virtual
~
LlvmModelLibraryProcessor
() =
default
;
42
43
using
LlvmBaseModelLibraryProcessorImpl<Base>::create
;
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
CppAD::cg::LlvmBaseModelLibraryProcessorImpl
Definition:
llvm_base_model_library_processor_impl.hpp:30
CppAD::cg::ModelLibraryCSourceGen
Definition:
declare_cg.hpp:163
CppAD
Definition:
abstract_atomic_fun.hpp:19
CppAD::cg::LlvmModelLibraryProcessor
Definition:
llvm_model_library_processor.hpp:29
CppAD::cg::LlvmModelLibraryProcessor::LlvmModelLibraryProcessor
LlvmModelLibraryProcessor(ModelLibraryCSourceGen< Base > &librarySourceGen)
Definition:
llvm_model_library_processor.hpp:37
include
cppad
cg
model
llvm
v10_0
llvm_model_library_processor.hpp
Generated on Sat May 3 2025 16:08:05 for CppADCodeGen by
1.8.13