CppADCodeGen  2.3.0
A C++ Algorithmic Differentiation Package with Source Code Generation
llvm.hpp
1 #ifndef CPPAD_CG_LLVM_INCLUDED
2 #define CPPAD_CG_LLVM_INCLUDED
3 /* --------------------------------------------------------------------------
4  * CppADCodeGen: C++ Algorithmic Differentiation with Source Code Generation:
5  * Copyright (C) 2014 Ciengis
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 #ifdef LLVM_VERSION_MAJOR
19 
20 #if LLVM_VERSION_MAJOR==3 && LLVM_VERSION_MINOR==2
21 #include <cppad/cg/model/llvm/v3_2/llvm3_2.hpp>
22 #elif LLVM_VERSION_MAJOR==3 && (LLVM_VERSION_MINOR==3 || LLVM_VERSION_MINOR==4)
23 #include <cppad/cg/model/llvm/v3_4/llvm3_4.hpp>
24 #elif LLVM_VERSION_MAJOR==3 && LLVM_VERSION_MINOR==6
25 #include <cppad/cg/model/llvm/v3_6/llvm3_6.hpp>
26 #elif LLVM_VERSION_MAJOR==3 && LLVM_VERSION_MINOR==8
27 #include <cppad/cg/model/llvm/v3_8/llvm3_8.hpp>
28 #elif LLVM_VERSION_MAJOR==4 && LLVM_VERSION_MINOR==0
29 #include <cppad/cg/model/llvm/v4_0/llvm4_0.hpp>
30 #elif LLVM_VERSION_MAJOR==5 && LLVM_VERSION_MINOR==0
31 #include <cppad/cg/model/llvm/v5_0/llvm5_0.hpp>
32 #elif LLVM_VERSION_MAJOR==6 && LLVM_VERSION_MINOR==0
33 #include <cppad/cg/model/llvm/v6_0/llvm6_0.hpp>
34 #endif
35 
36 #endif
37 
38 #endif