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) 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
21
namespace
CppAD
{
22
namespace
cg {
23
29
template
<
class
Base>
30
class
LlvmModelLibraryProcessor :
public
LlvmBaseModelLibraryProcessorImpl<Base> {
31
public
:
32
38
LlvmModelLibraryProcessor
(
ModelLibraryCSourceGen<Base>
& librarySourceGen) :
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
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:38
include
cppad
cg
model
llvm
v5_0
llvm_model_library_processor.hpp
Generated on Sat May 3 2025 16:08:05 for CppADCodeGen by
1.8.13