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
26 #ifndef SHARE_VM_SHARK_LLVMHEADERS_HPP
27 #define SHARE_VM_SHARK_LLVMHEADERS_HPP
28
29 #ifdef assert
30 #undef assert
31 #endif
32
33 #ifdef DEBUG
34 #define SHARK_DEBUG
35 #undef DEBUG
36 #endif
37
38 #include <llvm/Argument.h>
39 #include <llvm/Constants.h>
40 #include <llvm/DerivedTypes.h>
41 #include <llvm/ExecutionEngine/ExecutionEngine.h>
42 #include <llvm/Instructions.h>
43 #include <llvm/LLVMContext.h>
44 #include <llvm/Module.h>
45 #if SHARK_LLVM_VERSION < 27
46 #include <llvm/ModuleProvider.h>
47 #endif
48 #include <llvm/Support/IRBuilder.h>
49 #if SHARK_LLVM_VERSION >= 29
50 #include <llvm/Support/Threading.h>
51 #else
52 #include <llvm/System/Threading.h>
53 #endif
54 #include <llvm/Target/TargetSelect.h>
55 #include <llvm/Type.h>
56 #include <llvm/ExecutionEngine/JITMemoryManager.h>
57 #include <llvm/Support/CommandLine.h>
58 #if SHARK_LLVM_VERSION >= 27
59 #include <llvm/ExecutionEngine/JIT.h>
60 #include <llvm/ADT/StringMap.h>
61 #include <llvm/Support/Debug.h>
62 #if SHARK_LLVM_VERSION >= 29
63 #include <llvm/Support/Host.h>
64 #else
65 #include <llvm/System/Host.h>
66 #endif
67 #endif
68
69 #include <map>
70
71 #ifdef assert
72 #undef assert
73 #endif
74
75 // from hotspot/src/share/vm/utilities/debug.hpp
76 #ifdef ASSERT
77 #ifndef USE_REPEATED_ASSERTS
78 #define assert(p, msg) \
79 do { \
80 if (!(p)) { \
81 report_vm_error(__FILE__, __LINE__, "assert(" #p ") failed", msg); \
82 BREAKPOINT; \
83 } \
84 } while (0)
85 #else // #ifndef USE_REPEATED_ASSERTS
86 #define assert(p, msg)
87 do { \
|
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
26 #ifndef SHARE_VM_SHARK_LLVMHEADERS_HPP
27 #define SHARE_VM_SHARK_LLVMHEADERS_HPP
28
29 #ifdef assert
30 #undef assert
31 #endif
32
33 #ifdef DEBUG
34 #define SHARK_DEBUG
35 #undef DEBUG
36 #endif
37
38 #include <llvm/Analysis/Verifier.h>
39 #include <llvm/Argument.h>
40 #include <llvm/Constants.h>
41 #include <llvm/DerivedTypes.h>
42 #include <llvm/ExecutionEngine/ExecutionEngine.h>
43 #include <llvm/Instructions.h>
44 #include <llvm/LLVMContext.h>
45 #include <llvm/Module.h>
46 #if SHARK_LLVM_VERSION <= 31
47 #include <llvm/Support/IRBuilder.h>
48 #else
49 #include <llvm/IRBuilder.h>
50 #endif
51 #include <llvm/Support/Threading.h>
52 #include <llvm/Support/TargetSelect.h>
53 #include <llvm/Type.h>
54 #include <llvm/ExecutionEngine/JITMemoryManager.h>
55 #include <llvm/Support/CommandLine.h>
56 #include <llvm/ExecutionEngine/MCJIT.h>
57 #include <llvm/ExecutionEngine/JIT.h>
58 #include <llvm/ADT/StringMap.h>
59 #include <llvm/Support/Debug.h>
60 #include <llvm/Support/Host.h>
61
62 #include <map>
63
64 #ifdef assert
65 #undef assert
66 #endif
67
68 // from hotspot/src/share/vm/utilities/debug.hpp
69 #ifdef ASSERT
70 #ifndef USE_REPEATED_ASSERTS
71 #define assert(p, msg) \
72 do { \
73 if (!(p)) { \
74 report_vm_error(__FILE__, __LINE__, "assert(" #p ") failed", msg); \
75 BREAKPOINT; \
76 } \
77 } while (0)
78 #else // #ifndef USE_REPEATED_ASSERTS
79 #define assert(p, msg)
80 do { \
|