CppADCodeGen 2.4.3
A C++ Algorithmic Differentiation Package with Source Code Generation
Loading...
Searching...
No Matches
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 * Copyright (C) 2019 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#ifdef LLVM_VERSION_MAJOR
20
21#if LLVM_VERSION_MAJOR==3 && LLVM_VERSION_MINOR==2
22#include <cppad/cg/model/llvm/v3_2/llvm3_2.hpp>
23#elif LLVM_VERSION_MAJOR==3 && (LLVM_VERSION_MINOR==3 || LLVM_VERSION_MINOR==4)
24#include <cppad/cg/model/llvm/v3_4/llvm3_4.hpp>
25#elif LLVM_VERSION_MAJOR==3 && LLVM_VERSION_MINOR==6
26#include <cppad/cg/model/llvm/v3_6/llvm3_6.hpp>
27#elif LLVM_VERSION_MAJOR==3 && LLVM_VERSION_MINOR==8
28#include <cppad/cg/model/llvm/v3_8/llvm3_8.hpp>
29#elif LLVM_VERSION_MAJOR==4 && LLVM_VERSION_MINOR==0
30#include <cppad/cg/model/llvm/v4_0/llvm4_0.hpp>
31#elif LLVM_VERSION_MAJOR==5 && LLVM_VERSION_MINOR==0
32#include <cppad/cg/model/llvm/v5_0/llvm5_0.hpp>
33#elif LLVM_VERSION_MAJOR==6 && LLVM_VERSION_MINOR==0
34#include <cppad/cg/model/llvm/v6_0/llvm6_0.hpp>
35#elif LLVM_VERSION_MAJOR==7 && LLVM_VERSION_MINOR==0
36#include <cppad/cg/model/llvm/v7_0/llvm7_0.hpp>
37#elif LLVM_VERSION_MAJOR==8 && LLVM_VERSION_MINOR==0
38#include <cppad/cg/model/llvm/v8_0/llvm8_0.hpp>
39#elif LLVM_VERSION_MAJOR==9 && LLVM_VERSION_MINOR==0
40#include <cppad/cg/model/llvm/v9_0/llvm9_0.hpp>
41#endif
42
43#endif
44
45#endif