]> git.lizzy.rs Git - rust.git/blob - src/rustllvm/rustllvm.h
Register new snapshots
[rust.git] / src / rustllvm / rustllvm.h
1 // Copyright 2013 The Rust Project Developers. See the COPYRIGHT
2 // file at the top-level directory of this distribution and at
3 // http://rust-lang.org/COPYRIGHT.
4 //
5 // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6 // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7 // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
8 // option. This file may not be copied, modified, or distributed
9 // except according to those terms.
10
11 #include "llvm/IR/IRBuilder.h"
12 #include "llvm/IR/InlineAsm.h"
13 #include "llvm/IR/LLVMContext.h"
14 #include "llvm/IR/Module.h"
15 #include "llvm/PassManager.h"
16 #include "llvm/IR/InlineAsm.h"
17 #include "llvm/IR/LLVMContext.h"
18 #include "llvm/Analysis/Passes.h"
19 #include "llvm/Analysis/Lint.h"
20 #include "llvm/ADT/ArrayRef.h"
21 #include "llvm/ADT/Triple.h"
22 #include "llvm/ADT/DenseSet.h"
23 #include "llvm/Support/CommandLine.h"
24 #include "llvm/Support/FormattedStream.h"
25 #include "llvm/Support/Timer.h"
26 #include "llvm/Support/raw_ostream.h"
27 #include "llvm/Support/TargetSelect.h"
28 #include "llvm/Support/TargetRegistry.h"
29 #include "llvm/Support/SourceMgr.h"
30 #include "llvm/Support/Host.h"
31 #include "llvm/Support/Debug.h"
32 #include "llvm/Support/DynamicLibrary.h"
33 #include "llvm/Support/Memory.h"
34 #include "llvm/ExecutionEngine/ExecutionEngine.h"
35 #include "llvm/ExecutionEngine/JIT.h"
36 #include "llvm/ExecutionEngine/JITMemoryManager.h"
37 #include "llvm/ExecutionEngine/MCJIT.h"
38 #include "llvm/ExecutionEngine/Interpreter.h"
39 #include "llvm/Target/TargetMachine.h"
40 #include "llvm/Target/TargetOptions.h"
41 #include "llvm/Transforms/Scalar.h"
42 #include "llvm/Transforms/IPO.h"
43 #include "llvm/Transforms/Instrumentation.h"
44 #include "llvm/Transforms/Vectorize.h"
45 #include "llvm/Bitcode/ReaderWriter.h"
46 #include "llvm-c/Core.h"
47 #include "llvm-c/BitReader.h"
48 #include "llvm-c/ExecutionEngine.h"
49 #include "llvm-c/Object.h"
50
51 #if LLVM_VERSION_MINOR >= 5
52 #include "llvm/IR/IRPrintingPasses.h"
53 #include "llvm/IR/DebugInfo.h"
54 #include "llvm/IR/DIBuilder.h"
55 #include "llvm/Linker/Linker.h"
56 #else
57 #include "llvm/Assembly/PrintModulePass.h"
58 #include "llvm/DebugInfo.h"
59 #include "llvm/DIBuilder.h"
60 #include "llvm/Linker.h"
61 #endif
62
63 // Used by RustMCJITMemoryManager::getPointerToNamedFunction()
64 // to get around glibc issues. See the function for more information.
65 #ifdef __linux__
66 #include <sys/stat.h>
67 #include <fcntl.h>
68 #include <unistd.h>
69 #endif
70
71 extern const char* LLVMRustError;