Mercurial > hg > truffle
annotate src/share/vm/shark/llvmHeaders.hpp @ 14680:2dfa56e10640
8027124: [TESTBUG] NonTieredLevelsTest: java.lang.RuntimeException: private TestCase$Helper(java.lang.Object) must be osr_compiled
Reviewed-by: kvn, roland
author | iignatyev |
---|---|
date | Thu, 06 Mar 2014 12:47:45 +0400 |
parents | 81ccf2c854c7 |
children | 92aa6797d639 |
rev | line source |
---|---|
1692 | 1 /* |
2483
1fcd6e9c3965
7036220: Shark fails to find LLVM 2.9 System headers during build
twisti
parents:
1972
diff
changeset
|
2 * Copyright (c) 1999, 2011, Oracle and/or its affiliates. All rights reserved. |
1692 | 3 * Copyright 2008, 2009, 2010 Red Hat, Inc. |
4 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. | |
5 * | |
6 * This code is free software; you can redistribute it and/or modify it | |
7 * under the terms of the GNU General Public License version 2 only, as | |
8 * published by the Free Software Foundation. | |
9 * | |
10 * This code is distributed in the hope that it will be useful, but WITHOUT | |
11 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | |
12 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License | |
13 * version 2 for more details (a copy is included in the LICENSE file that | |
14 * accompanied this code). | |
15 * | |
16 * You should have received a copy of the GNU General Public License version | |
17 * 2 along with this work; if not, write to the Free Software Foundation, | |
18 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. | |
19 * | |
20 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA | |
21 * or visit www.oracle.com if you need additional information or have any | |
22 * questions. | |
23 * | |
24 */ | |
25 | |
1972 | 26 #ifndef SHARE_VM_SHARK_LLVMHEADERS_HPP |
27 #define SHARE_VM_SHARK_LLVMHEADERS_HPP | |
28 | |
1692 | 29 #ifdef assert |
30 #undef assert | |
31 #endif | |
32 | |
33 #ifdef DEBUG | |
34 #define SHARK_DEBUG | |
35 #undef DEBUG | |
36 #endif | |
37 | |
7195 | 38 #include <llvm/Analysis/Verifier.h> |
14669 | 39 #include <llvm/ExecutionEngine/ExecutionEngine.h> |
40 | |
41 // includes specific to each version | |
42 #if SHARK_LLVM_VERSION <= 31 | |
43 #include <llvm/Support/IRBuilder.h> | |
44 #include <llvm/Type.h> | |
1692 | 45 #include <llvm/Argument.h> |
46 #include <llvm/Constants.h> | |
47 #include <llvm/DerivedTypes.h> | |
48 #include <llvm/Instructions.h> | |
49 #include <llvm/LLVMContext.h> | |
50 #include <llvm/Module.h> | |
14669 | 51 #elif SHARK_LLVM_VERSION <= 32 |
7195 | 52 #include <llvm/IRBuilder.h> |
14669 | 53 #include <llvm/Type.h> |
54 #include <llvm/Argument.h> | |
55 #include <llvm/Constants.h> | |
56 #include <llvm/DerivedTypes.h> | |
57 #include <llvm/Instructions.h> | |
58 #include <llvm/LLVMContext.h> | |
59 #include <llvm/Module.h> | |
60 #else // SHARK_LLVM_VERSION <= 34 | |
61 #include <llvm/IR/IRBuilder.h> | |
62 #include <llvm/IR/Argument.h> | |
63 #include <llvm/IR/Constants.h> | |
64 #include <llvm/IR/DerivedTypes.h> | |
65 #include <llvm/ExecutionEngine/ExecutionEngine.h> | |
66 #include <llvm/IR/Instructions.h> | |
67 #include <llvm/IR/LLVMContext.h> | |
68 #include <llvm/IR/Module.h> | |
69 #include <llvm/ADT/StringRef.h> | |
70 #include <llvm/IR/Type.h> | |
7195 | 71 #endif |
14669 | 72 |
73 // common includes | |
2483
1fcd6e9c3965
7036220: Shark fails to find LLVM 2.9 System headers during build
twisti
parents:
1972
diff
changeset
|
74 #include <llvm/Support/Threading.h> |
7195 | 75 #include <llvm/Support/TargetSelect.h> |
1692 | 76 #include <llvm/ExecutionEngine/JITMemoryManager.h> |
77 #include <llvm/Support/CommandLine.h> | |
7195 | 78 #include <llvm/ExecutionEngine/MCJIT.h> |
1692 | 79 #include <llvm/ExecutionEngine/JIT.h> |
80 #include <llvm/ADT/StringMap.h> | |
81 #include <llvm/Support/Debug.h> | |
2483
1fcd6e9c3965
7036220: Shark fails to find LLVM 2.9 System headers during build
twisti
parents:
1972
diff
changeset
|
82 #include <llvm/Support/Host.h> |
1692 | 83 |
84 #include <map> | |
85 | |
86 #ifdef assert | |
87 #undef assert | |
88 #endif | |
89 | |
90 // from hotspot/src/share/vm/utilities/debug.hpp | |
91 #ifdef ASSERT | |
92 #ifndef USE_REPEATED_ASSERTS | |
93 #define assert(p, msg) \ | |
94 do { \ | |
95 if (!(p)) { \ | |
96 report_vm_error(__FILE__, __LINE__, "assert(" #p ") failed", msg); \ | |
97 BREAKPOINT; \ | |
98 } \ | |
99 } while (0) | |
100 #else // #ifndef USE_REPEATED_ASSERTS | |
101 #define assert(p, msg) | |
102 do { \ | |
103 for (int __i = 0; __i < AssertRepeat; __i++) { \ | |
104 if (!(p)) { \ | |
105 report_vm_error(__FILE__, __LINE__, "assert(" #p ") failed", msg); \ | |
106 BREAKPOINT; \ | |
107 } \ | |
108 } \ | |
109 } while (0) | |
110 #endif // #ifndef USE_REPEATED_ASSERTS | |
111 #else | |
112 #define assert(p, msg) | |
113 #endif | |
114 | |
115 #ifdef DEBUG | |
116 #undef DEBUG | |
117 #endif | |
118 #ifdef SHARK_DEBUG | |
119 #define DEBUG | |
120 #undef SHARK_DEBUG | |
121 #endif | |
1972 | 122 |
123 #endif // SHARE_VM_SHARK_LLVMHEADERS_HPP |