Mercurial > hg > truffle
annotate src/share/vm/shark/llvmHeaders.hpp @ 4181:319860ae697a
Simplify FrameMap: make offsets of spill slots and outgoing parameters independent so that they can be allocated at the same time, eliminating the separate phases. This makes the separate StackBlock unnecesary. Change CiStackSlot to use byte offsets instead of spill slot index. This makes CiTarget.spillSlotSize unnecessary.
author | Christian Wimmer <Christian.Wimmer@Oracle.com> |
---|---|
date | Mon, 02 Jan 2012 14:16:08 -0800 |
parents | 1fcd6e9c3965 |
children | 2cd5e15048e6 |
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 | |
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> | |
2483
1fcd6e9c3965
7036220: Shark fails to find LLVM 2.9 System headers during build
twisti
parents:
1972
diff
changeset
|
49 #if SHARK_LLVM_VERSION >= 29 |
1fcd6e9c3965
7036220: Shark fails to find LLVM 2.9 System headers during build
twisti
parents:
1972
diff
changeset
|
50 #include <llvm/Support/Threading.h> |
1fcd6e9c3965
7036220: Shark fails to find LLVM 2.9 System headers during build
twisti
parents:
1972
diff
changeset
|
51 #else |
1692 | 52 #include <llvm/System/Threading.h> |
2483
1fcd6e9c3965
7036220: Shark fails to find LLVM 2.9 System headers during build
twisti
parents:
1972
diff
changeset
|
53 #endif |
1692 | 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> | |
2483
1fcd6e9c3965
7036220: Shark fails to find LLVM 2.9 System headers during build
twisti
parents:
1972
diff
changeset
|
62 #if SHARK_LLVM_VERSION >= 29 |
1fcd6e9c3965
7036220: Shark fails to find LLVM 2.9 System headers during build
twisti
parents:
1972
diff
changeset
|
63 #include <llvm/Support/Host.h> |
1fcd6e9c3965
7036220: Shark fails to find LLVM 2.9 System headers during build
twisti
parents:
1972
diff
changeset
|
64 #else |
1692 | 65 #include <llvm/System/Host.h> |
66 #endif | |
2483
1fcd6e9c3965
7036220: Shark fails to find LLVM 2.9 System headers during build
twisti
parents:
1972
diff
changeset
|
67 #endif |
1692 | 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 { \ | |
88 for (int __i = 0; __i < AssertRepeat; __i++) { \ | |
89 if (!(p)) { \ | |
90 report_vm_error(__FILE__, __LINE__, "assert(" #p ") failed", msg); \ | |
91 BREAKPOINT; \ | |
92 } \ | |
93 } \ | |
94 } while (0) | |
95 #endif // #ifndef USE_REPEATED_ASSERTS | |
96 #else | |
97 #define assert(p, msg) | |
98 #endif | |
99 | |
100 #ifdef DEBUG | |
101 #undef DEBUG | |
102 #endif | |
103 #ifdef SHARK_DEBUG | |
104 #define DEBUG | |
105 #undef SHARK_DEBUG | |
106 #endif | |
1972 | 107 |
108 #endif // SHARE_VM_SHARK_LLVMHEADERS_HPP |