CppADCodeGen 2.4.3
A C++ Algorithmic Differentiation Package with Source Code Generation
Loading...
Searching...
No Matches
llvm3_4.hpp
1#ifndef CPPAD_CG_LLVM3_4_INCLUDED
2#define CPPAD_CG_LLVM3_4_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
24#ifdef LLVM_WITH_NDEBUG
25
26// save the original NDEBUG definition
27#ifdef NDEBUG
28#define _OUTER_NDEBUG_DEFINED
29#endif
30
31#if LLVM_WITH_NDEBUG == 1
32#define NDEBUG
33#else
34#undef NDEBUG
35#endif
36
37#endif
38
39#include <llvm/Analysis/Passes.h>
40#include <llvm/Analysis/Verifier.h>
41#include <llvm/ExecutionEngine/ExecutionEngine.h>
42#include <llvm/ExecutionEngine/JIT.h>
43#include <llvm/PassManager.h>
44#include <llvm/IR/Module.h>
45#include <llvm/IR/LLVMContext.h>
46#include <llvm/Pass.h>
47#include <llvm/Transforms/IPO/PassManagerBuilder.h>
48#include <llvm/ADT/OwningPtr.h>
49#include <llvm/Bitcode/ReaderWriter.h>
50#include <llvm/Support/ManagedStatic.h>
51#include <llvm/Support/MemoryBuffer.h>
52#include <llvm/Support/TargetSelect.h>
53#include <llvm/Support/system_error.h>
54#include <llvm/Linker.h>
55
56#ifdef LLVM_WITH_NDEBUG
57
58// recover the original NDEBUG
59#ifdef _OUTER_NDEBUG_DEFINED
60#define NDEBUG
61#else
62#undef NDEBUG
63#endif
64
65// no need for this anymore
66#undef _OUTER_NDEBUG_DEFINED
67
68#endif
69
70#include <cppad/cg/model/compiler/clang_compiler.hpp>
71#include <cppad/cg/model/llvm/llvm_model_library.hpp>
72#include <cppad/cg/model/llvm/llvm_model.hpp>
73#include <cppad/cg/model/llvm/v3_4/llvm_model_library_3_4.hpp>
74#include <cppad/cg/model/llvm/v3_4/llvm_model_library_processor.hpp>
75
76#endif