annotate src/share/vm/opto/idealKit.hpp @ 1972:f95d63e2154a

6989984: Use standard include model for Hospot Summary: Replaced MakeDeps and the includeDB files with more standardized solutions. Reviewed-by: coleenp, kvn, kamg
author stefank
date Tue, 23 Nov 2010 13:22:55 -0800
parents c18cbe5936b8
children 9dc311b8473e
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
a61af66fc99e Initial load
duke
parents:
diff changeset
1 /*
1972
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1552
diff changeset
2 * Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved.
0
a61af66fc99e Initial load
duke
parents:
diff changeset
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
a61af66fc99e Initial load
duke
parents:
diff changeset
4 *
a61af66fc99e Initial load
duke
parents:
diff changeset
5 * This code is free software; you can redistribute it and/or modify it
a61af66fc99e Initial load
duke
parents:
diff changeset
6 * under the terms of the GNU General Public License version 2 only, as
a61af66fc99e Initial load
duke
parents:
diff changeset
7 * published by the Free Software Foundation.
a61af66fc99e Initial load
duke
parents:
diff changeset
8 *
a61af66fc99e Initial load
duke
parents:
diff changeset
9 * This code is distributed in the hope that it will be useful, but WITHOUT
a61af66fc99e Initial load
duke
parents:
diff changeset
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
a61af66fc99e Initial load
duke
parents:
diff changeset
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
a61af66fc99e Initial load
duke
parents:
diff changeset
12 * version 2 for more details (a copy is included in the LICENSE file that
a61af66fc99e Initial load
duke
parents:
diff changeset
13 * accompanied this code).
a61af66fc99e Initial load
duke
parents:
diff changeset
14 *
a61af66fc99e Initial load
duke
parents:
diff changeset
15 * You should have received a copy of the GNU General Public License version
a61af66fc99e Initial load
duke
parents:
diff changeset
16 * 2 along with this work; if not, write to the Free Software Foundation,
a61af66fc99e Initial load
duke
parents:
diff changeset
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
a61af66fc99e Initial load
duke
parents:
diff changeset
18 *
1552
c18cbe5936b8 6941466: Oracle rebranding changes for Hotspot repositories
trims
parents: 1000
diff changeset
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
c18cbe5936b8 6941466: Oracle rebranding changes for Hotspot repositories
trims
parents: 1000
diff changeset
20 * or visit www.oracle.com if you need additional information or have any
c18cbe5936b8 6941466: Oracle rebranding changes for Hotspot repositories
trims
parents: 1000
diff changeset
21 * questions.
0
a61af66fc99e Initial load
duke
parents:
diff changeset
22 *
a61af66fc99e Initial load
duke
parents:
diff changeset
23 */
a61af66fc99e Initial load
duke
parents:
diff changeset
24
1972
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1552
diff changeset
25 #ifndef SHARE_VM_OPTO_IDEALKIT_HPP
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1552
diff changeset
26 #define SHARE_VM_OPTO_IDEALKIT_HPP
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1552
diff changeset
27
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1552
diff changeset
28 #include "opto/addnode.hpp"
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1552
diff changeset
29 #include "opto/cfgnode.hpp"
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1552
diff changeset
30 #include "opto/connode.hpp"
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1552
diff changeset
31 #include "opto/divnode.hpp"
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1552
diff changeset
32 #include "opto/mulnode.hpp"
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1552
diff changeset
33 #include "opto/phaseX.hpp"
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1552
diff changeset
34 #include "opto/subnode.hpp"
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1552
diff changeset
35 #include "opto/type.hpp"
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1552
diff changeset
36
0
a61af66fc99e Initial load
duke
parents:
diff changeset
37 //-----------------------------------------------------------------------------
a61af66fc99e Initial load
duke
parents:
diff changeset
38 //----------------------------IdealKit-----------------------------------------
a61af66fc99e Initial load
duke
parents:
diff changeset
39 // Set of utilities for creating control flow and scalar SSA data flow.
a61af66fc99e Initial load
duke
parents:
diff changeset
40 // Control:
a61af66fc99e Initial load
duke
parents:
diff changeset
41 // if_then(left, relop, right)
a61af66fc99e Initial load
duke
parents:
diff changeset
42 // else_ (optional)
a61af66fc99e Initial load
duke
parents:
diff changeset
43 // end_if
a61af66fc99e Initial load
duke
parents:
diff changeset
44 // loop(iv variable, initial, relop, limit)
a61af66fc99e Initial load
duke
parents:
diff changeset
45 // - sets iv to initial for first trip
a61af66fc99e Initial load
duke
parents:
diff changeset
46 // - exits when relation on limit is true
a61af66fc99e Initial load
duke
parents:
diff changeset
47 // - the values of initial and limit should be loop invariant
a61af66fc99e Initial load
duke
parents:
diff changeset
48 // - no increment, must be explicitly coded
a61af66fc99e Initial load
duke
parents:
diff changeset
49 // - final value of iv is available after end_loop (until dead())
a61af66fc99e Initial load
duke
parents:
diff changeset
50 // end_loop
a61af66fc99e Initial load
duke
parents:
diff changeset
51 // make_label(number of gotos)
a61af66fc99e Initial load
duke
parents:
diff changeset
52 // goto_(label)
a61af66fc99e Initial load
duke
parents:
diff changeset
53 // bind(label)
a61af66fc99e Initial load
duke
parents:
diff changeset
54 // Data:
a61af66fc99e Initial load
duke
parents:
diff changeset
55 // ConI(integer constant) - create an integer constant
a61af66fc99e Initial load
duke
parents:
diff changeset
56 // set(variable, value) - assignment
a61af66fc99e Initial load
duke
parents:
diff changeset
57 // value(variable) - reference value
a61af66fc99e Initial load
duke
parents:
diff changeset
58 // dead(variable) - variable's value is no longer live
a61af66fc99e Initial load
duke
parents:
diff changeset
59 // increment(variable, value) - increment variable by value
a61af66fc99e Initial load
duke
parents:
diff changeset
60 // simple operations: AddI, SubI, AndI, LShiftI, etc.
a61af66fc99e Initial load
duke
parents:
diff changeset
61 // Example:
a61af66fc99e Initial load
duke
parents:
diff changeset
62 // Node* limit = ??
a61af66fc99e Initial load
duke
parents:
diff changeset
63 // IdealVariable i(kit), j(kit);
851
fc4be448891f 6851742: (EA) allocation elimination doesn't work with UseG1GC
kvn
parents: 0
diff changeset
64 // declarations_done();
0
a61af66fc99e Initial load
duke
parents:
diff changeset
65 // Node* exit = make_label(1); // 1 goto
a61af66fc99e Initial load
duke
parents:
diff changeset
66 // set(j, ConI(0));
a61af66fc99e Initial load
duke
parents:
diff changeset
67 // loop(i, ConI(0), BoolTest::lt, limit); {
a61af66fc99e Initial load
duke
parents:
diff changeset
68 // if_then(value(i), BoolTest::gt, ConI(5)) {
a61af66fc99e Initial load
duke
parents:
diff changeset
69 // set(j, ConI(1));
a61af66fc99e Initial load
duke
parents:
diff changeset
70 // goto_(exit); dead(i);
a61af66fc99e Initial load
duke
parents:
diff changeset
71 // } end_if();
a61af66fc99e Initial load
duke
parents:
diff changeset
72 // increment(i, ConI(1));
a61af66fc99e Initial load
duke
parents:
diff changeset
73 // } end_loop(); dead(i);
a61af66fc99e Initial load
duke
parents:
diff changeset
74 // bind(exit);
a61af66fc99e Initial load
duke
parents:
diff changeset
75 //
a61af66fc99e Initial load
duke
parents:
diff changeset
76 // See string_indexOf for a more complete example.
a61af66fc99e Initial load
duke
parents:
diff changeset
77
a61af66fc99e Initial load
duke
parents:
diff changeset
78 class IdealKit;
a61af66fc99e Initial load
duke
parents:
diff changeset
79
a61af66fc99e Initial load
duke
parents:
diff changeset
80 // Variable definition for IdealKit
a61af66fc99e Initial load
duke
parents:
diff changeset
81 class IdealVariable: public StackObj {
a61af66fc99e Initial load
duke
parents:
diff changeset
82 friend class IdealKit;
a61af66fc99e Initial load
duke
parents:
diff changeset
83 private:
a61af66fc99e Initial load
duke
parents:
diff changeset
84 int _id;
a61af66fc99e Initial load
duke
parents:
diff changeset
85 void set_id(int id) { _id = id; }
a61af66fc99e Initial load
duke
parents:
diff changeset
86 public:
a61af66fc99e Initial load
duke
parents:
diff changeset
87 IdealVariable(IdealKit &k);
a61af66fc99e Initial load
duke
parents:
diff changeset
88 int id() { assert(has_id(),"uninitialized id"); return _id; }
a61af66fc99e Initial load
duke
parents:
diff changeset
89 bool has_id() { return _id >= 0; }
a61af66fc99e Initial load
duke
parents:
diff changeset
90 };
a61af66fc99e Initial load
duke
parents:
diff changeset
91
a61af66fc99e Initial load
duke
parents:
diff changeset
92 class IdealKit: public StackObj {
a61af66fc99e Initial load
duke
parents:
diff changeset
93 friend class IdealVariable;
a61af66fc99e Initial load
duke
parents:
diff changeset
94 // The main state (called a cvstate for Control and Variables)
a61af66fc99e Initial load
duke
parents:
diff changeset
95 // contains both the current values of the variables and the
a61af66fc99e Initial load
duke
parents:
diff changeset
96 // current set of predecessor control edges. The variable values
a61af66fc99e Initial load
duke
parents:
diff changeset
97 // are managed via a Node [in(1)..in(_var_ct)], and the predecessor
a61af66fc99e Initial load
duke
parents:
diff changeset
98 // control edges managed via a RegionNode. The in(0) of the Node
a61af66fc99e Initial load
duke
parents:
diff changeset
99 // for variables points to the RegionNode for the control edges.
a61af66fc99e Initial load
duke
parents:
diff changeset
100 protected:
a61af66fc99e Initial load
duke
parents:
diff changeset
101 Compile * const C;
a61af66fc99e Initial load
duke
parents:
diff changeset
102 PhaseGVN &_gvn;
a61af66fc99e Initial load
duke
parents:
diff changeset
103 GrowableArray<Node*>* _pending_cvstates; // stack of cvstates
a61af66fc99e Initial load
duke
parents:
diff changeset
104 GrowableArray<Node*>* _delay_transform; // delay invoking gvn.transform until drain
a61af66fc99e Initial load
duke
parents:
diff changeset
105 Node* _cvstate; // current cvstate (control, memory and variables)
a61af66fc99e Initial load
duke
parents:
diff changeset
106 uint _var_ct; // number of variables
a61af66fc99e Initial load
duke
parents:
diff changeset
107 bool _delay_all_transforms; // flag forcing all transforms to be delayed
a61af66fc99e Initial load
duke
parents:
diff changeset
108 Node* _initial_ctrl; // saves initial control until variables declared
a61af66fc99e Initial load
duke
parents:
diff changeset
109 Node* _initial_memory; // saves initial memory until variables declared
a61af66fc99e Initial load
duke
parents:
diff changeset
110
a61af66fc99e Initial load
duke
parents:
diff changeset
111 PhaseGVN& gvn() const { return _gvn; }
a61af66fc99e Initial load
duke
parents:
diff changeset
112 // Create a new cvstate filled with nulls
a61af66fc99e Initial load
duke
parents:
diff changeset
113 Node* new_cvstate(); // Create a new cvstate
a61af66fc99e Initial load
duke
parents:
diff changeset
114 Node* cvstate() { return _cvstate; } // current cvstate
a61af66fc99e Initial load
duke
parents:
diff changeset
115 Node* copy_cvstate(); // copy current cvstate
a61af66fc99e Initial load
duke
parents:
diff changeset
116
a61af66fc99e Initial load
duke
parents:
diff changeset
117 void set_memory(Node* mem, uint alias_idx );
a61af66fc99e Initial load
duke
parents:
diff changeset
118 void do_memory_merge(Node* merging, Node* join);
a61af66fc99e Initial load
duke
parents:
diff changeset
119 void clear(Node* m); // clear a cvstate
a61af66fc99e Initial load
duke
parents:
diff changeset
120 void stop() { clear(_cvstate); } // clear current cvstate
a61af66fc99e Initial load
duke
parents:
diff changeset
121 Node* delay_transform(Node* n);
a61af66fc99e Initial load
duke
parents:
diff changeset
122 Node* transform(Node* n); // gvn.transform or push node on delay list
a61af66fc99e Initial load
duke
parents:
diff changeset
123 Node* promote_to_phi(Node* n, Node* reg);// Promote "n" to a phi on region "reg"
a61af66fc99e Initial load
duke
parents:
diff changeset
124 bool was_promoted_to_phi(Node* n, Node* reg) {
a61af66fc99e Initial load
duke
parents:
diff changeset
125 return (n->is_Phi() && n->in(0) == reg);
a61af66fc99e Initial load
duke
parents:
diff changeset
126 }
a61af66fc99e Initial load
duke
parents:
diff changeset
127 void declare(IdealVariable* v) { v->set_id(_var_ct++); }
a61af66fc99e Initial load
duke
parents:
diff changeset
128 // This declares the position where vars are kept in the cvstate
a61af66fc99e Initial load
duke
parents:
diff changeset
129 // For some degree of consistency we use the TypeFunc enum to
a61af66fc99e Initial load
duke
parents:
diff changeset
130 // soak up spots in the inputs even though we only use early Control
a61af66fc99e Initial load
duke
parents:
diff changeset
131 // and Memory slots. (So far.)
a61af66fc99e Initial load
duke
parents:
diff changeset
132 static const uint first_var; // = TypeFunc::Parms + 1;
a61af66fc99e Initial load
duke
parents:
diff changeset
133
a61af66fc99e Initial load
duke
parents:
diff changeset
134 #ifdef ASSERT
a61af66fc99e Initial load
duke
parents:
diff changeset
135 enum State { NullS=0, BlockS=1, LoopS=2, IfThenS=4, ElseS=8, EndifS= 16 };
a61af66fc99e Initial load
duke
parents:
diff changeset
136 GrowableArray<int>* _state;
a61af66fc99e Initial load
duke
parents:
diff changeset
137 State state() { return (State)(_state->top()); }
a61af66fc99e Initial load
duke
parents:
diff changeset
138 #endif
a61af66fc99e Initial load
duke
parents:
diff changeset
139
a61af66fc99e Initial load
duke
parents:
diff changeset
140 // Users should not care about slices only MergedMem so no access for them.
a61af66fc99e Initial load
duke
parents:
diff changeset
141 Node* memory(uint alias_idx);
a61af66fc99e Initial load
duke
parents:
diff changeset
142
a61af66fc99e Initial load
duke
parents:
diff changeset
143 public:
851
fc4be448891f 6851742: (EA) allocation elimination doesn't work with UseG1GC
kvn
parents: 0
diff changeset
144 IdealKit(PhaseGVN &gvn, Node* control, Node* memory, bool delay_all_transforms = false, bool has_declarations = false);
0
a61af66fc99e Initial load
duke
parents:
diff changeset
145 ~IdealKit() {
a61af66fc99e Initial load
duke
parents:
diff changeset
146 stop();
a61af66fc99e Initial load
duke
parents:
diff changeset
147 drain_delay_transform();
a61af66fc99e Initial load
duke
parents:
diff changeset
148 }
a61af66fc99e Initial load
duke
parents:
diff changeset
149 // Control
a61af66fc99e Initial load
duke
parents:
diff changeset
150 Node* ctrl() { return _cvstate->in(TypeFunc::Control); }
851
fc4be448891f 6851742: (EA) allocation elimination doesn't work with UseG1GC
kvn
parents: 0
diff changeset
151 void set_ctrl(Node* ctrl) { _cvstate->set_req(TypeFunc::Control, ctrl); }
0
a61af66fc99e Initial load
duke
parents:
diff changeset
152 Node* top() { return C->top(); }
a61af66fc99e Initial load
duke
parents:
diff changeset
153 MergeMemNode* merged_memory() { return _cvstate->in(TypeFunc::Memory)->as_MergeMem(); }
851
fc4be448891f 6851742: (EA) allocation elimination doesn't work with UseG1GC
kvn
parents: 0
diff changeset
154 void set_all_memory(Node* mem) { _cvstate->set_req(TypeFunc::Memory, mem); }
0
a61af66fc99e Initial load
duke
parents:
diff changeset
155 void set(IdealVariable& v, Node* rhs) { _cvstate->set_req(first_var + v.id(), rhs); }
a61af66fc99e Initial load
duke
parents:
diff changeset
156 Node* value(IdealVariable& v) { return _cvstate->in(first_var + v.id()); }
a61af66fc99e Initial load
duke
parents:
diff changeset
157 void dead(IdealVariable& v) { set(v, (Node*)NULL); }
a61af66fc99e Initial load
duke
parents:
diff changeset
158 void if_then(Node* left, BoolTest::mask relop, Node* right,
a61af66fc99e Initial load
duke
parents:
diff changeset
159 float prob = PROB_FAIR, float cnt = COUNT_UNKNOWN,
a61af66fc99e Initial load
duke
parents:
diff changeset
160 bool push_new_state = true);
a61af66fc99e Initial load
duke
parents:
diff changeset
161 void else_();
a61af66fc99e Initial load
duke
parents:
diff changeset
162 void end_if();
a61af66fc99e Initial load
duke
parents:
diff changeset
163 void loop(IdealVariable& iv, Node* init, BoolTest::mask cmp, Node* limit,
a61af66fc99e Initial load
duke
parents:
diff changeset
164 float prob = PROB_LIKELY(0.9), float cnt = COUNT_UNKNOWN);
a61af66fc99e Initial load
duke
parents:
diff changeset
165 void end_loop();
a61af66fc99e Initial load
duke
parents:
diff changeset
166 Node* make_label(int goto_ct);
a61af66fc99e Initial load
duke
parents:
diff changeset
167 void bind(Node* lab);
a61af66fc99e Initial load
duke
parents:
diff changeset
168 void goto_(Node* lab, bool bind = false);
851
fc4be448891f 6851742: (EA) allocation elimination doesn't work with UseG1GC
kvn
parents: 0
diff changeset
169 void declarations_done();
0
a61af66fc99e Initial load
duke
parents:
diff changeset
170 void drain_delay_transform();
a61af66fc99e Initial load
duke
parents:
diff changeset
171
a61af66fc99e Initial load
duke
parents:
diff changeset
172 Node* IfTrue(IfNode* iff) { return transform(new (C,1) IfTrueNode(iff)); }
a61af66fc99e Initial load
duke
parents:
diff changeset
173 Node* IfFalse(IfNode* iff) { return transform(new (C,1) IfFalseNode(iff)); }
a61af66fc99e Initial load
duke
parents:
diff changeset
174
a61af66fc99e Initial load
duke
parents:
diff changeset
175 // Data
a61af66fc99e Initial load
duke
parents:
diff changeset
176 Node* ConI(jint k) { return (Node*)gvn().intcon(k); }
a61af66fc99e Initial load
duke
parents:
diff changeset
177 Node* makecon(const Type *t) const { return _gvn.makecon(t); }
a61af66fc99e Initial load
duke
parents:
diff changeset
178
a61af66fc99e Initial load
duke
parents:
diff changeset
179 Node* AddI(Node* l, Node* r) { return transform(new (C,3) AddINode(l, r)); }
a61af66fc99e Initial load
duke
parents:
diff changeset
180 Node* SubI(Node* l, Node* r) { return transform(new (C,3) SubINode(l, r)); }
a61af66fc99e Initial load
duke
parents:
diff changeset
181 Node* AndI(Node* l, Node* r) { return transform(new (C,3) AndINode(l, r)); }
a61af66fc99e Initial load
duke
parents:
diff changeset
182 Node* MaxI(Node* l, Node* r) { return transform(new (C,3) MaxINode(l, r)); }
a61af66fc99e Initial load
duke
parents:
diff changeset
183 Node* LShiftI(Node* l, Node* r) { return transform(new (C,3) LShiftINode(l, r)); }
a61af66fc99e Initial load
duke
parents:
diff changeset
184 Node* CmpI(Node* l, Node* r) { return transform(new (C,3) CmpINode(l, r)); }
a61af66fc99e Initial load
duke
parents:
diff changeset
185 Node* Bool(Node* cmp, BoolTest::mask relop) { return transform(new (C,2) BoolNode(cmp, relop)); }
a61af66fc99e Initial load
duke
parents:
diff changeset
186 void increment(IdealVariable& v, Node* j) { set(v, AddI(value(v), j)); }
a61af66fc99e Initial load
duke
parents:
diff changeset
187 void decrement(IdealVariable& v, Node* j) { set(v, SubI(value(v), j)); }
a61af66fc99e Initial load
duke
parents:
diff changeset
188
a61af66fc99e Initial load
duke
parents:
diff changeset
189 Node* CmpL(Node* l, Node* r) { return transform(new (C,3) CmpLNode(l, r)); }
a61af66fc99e Initial load
duke
parents:
diff changeset
190
a61af66fc99e Initial load
duke
parents:
diff changeset
191 // TLS
a61af66fc99e Initial load
duke
parents:
diff changeset
192 Node* thread() { return gvn().transform(new (C, 1) ThreadLocalNode()); }
a61af66fc99e Initial load
duke
parents:
diff changeset
193
a61af66fc99e Initial load
duke
parents:
diff changeset
194 // Pointers
a61af66fc99e Initial load
duke
parents:
diff changeset
195 Node* AddP(Node *base, Node *ptr, Node *off) { return transform(new (C,4) AddPNode(base, ptr, off)); }
a61af66fc99e Initial load
duke
parents:
diff changeset
196 Node* CmpP(Node* l, Node* r) { return transform(new (C,3) CmpPNode(l, r)); }
a61af66fc99e Initial load
duke
parents:
diff changeset
197 #ifdef _LP64
a61af66fc99e Initial load
duke
parents:
diff changeset
198 Node* XorX(Node* l, Node* r) { return transform(new (C,3) XorLNode(l, r)); }
a61af66fc99e Initial load
duke
parents:
diff changeset
199 #else // _LP64
a61af66fc99e Initial load
duke
parents:
diff changeset
200 Node* XorX(Node* l, Node* r) { return transform(new (C,3) XorINode(l, r)); }
a61af66fc99e Initial load
duke
parents:
diff changeset
201 #endif // _LP64
a61af66fc99e Initial load
duke
parents:
diff changeset
202 Node* URShiftX(Node* l, Node* r) { return transform(new (C,3) URShiftXNode(l, r)); }
a61af66fc99e Initial load
duke
parents:
diff changeset
203 Node* ConX(jint k) { return (Node*)gvn().MakeConX(k); }
a61af66fc99e Initial load
duke
parents:
diff changeset
204 Node* CastPX(Node* ctl, Node* p) { return transform(new (C,2) CastP2XNode(ctl, p)); }
a61af66fc99e Initial load
duke
parents:
diff changeset
205 // Add a fixed offset to a pointer
a61af66fc99e Initial load
duke
parents:
diff changeset
206 Node* basic_plus_adr(Node* base, Node* ptr, intptr_t offset);
a61af66fc99e Initial load
duke
parents:
diff changeset
207
a61af66fc99e Initial load
duke
parents:
diff changeset
208 // Memory operations
a61af66fc99e Initial load
duke
parents:
diff changeset
209
a61af66fc99e Initial load
duke
parents:
diff changeset
210 // This is the base version which is given an alias index.
a61af66fc99e Initial load
duke
parents:
diff changeset
211 Node* load(Node* ctl,
a61af66fc99e Initial load
duke
parents:
diff changeset
212 Node* adr,
a61af66fc99e Initial load
duke
parents:
diff changeset
213 const Type* t,
a61af66fc99e Initial load
duke
parents:
diff changeset
214 BasicType bt,
a61af66fc99e Initial load
duke
parents:
diff changeset
215 int adr_idx,
a61af66fc99e Initial load
duke
parents:
diff changeset
216 bool require_atomic_access = false);
a61af66fc99e Initial load
duke
parents:
diff changeset
217
a61af66fc99e Initial load
duke
parents:
diff changeset
218 // Return the new StoreXNode
a61af66fc99e Initial load
duke
parents:
diff changeset
219 Node* store(Node* ctl,
a61af66fc99e Initial load
duke
parents:
diff changeset
220 Node* adr,
a61af66fc99e Initial load
duke
parents:
diff changeset
221 Node* val,
a61af66fc99e Initial load
duke
parents:
diff changeset
222 BasicType bt,
a61af66fc99e Initial load
duke
parents:
diff changeset
223 int adr_idx,
a61af66fc99e Initial load
duke
parents:
diff changeset
224 bool require_atomic_access = false);
a61af66fc99e Initial load
duke
parents:
diff changeset
225
a61af66fc99e Initial load
duke
parents:
diff changeset
226 // Store a card mark ordered after store_oop
a61af66fc99e Initial load
duke
parents:
diff changeset
227 Node* storeCM(Node* ctl,
a61af66fc99e Initial load
duke
parents:
diff changeset
228 Node* adr,
a61af66fc99e Initial load
duke
parents:
diff changeset
229 Node* val,
a61af66fc99e Initial load
duke
parents:
diff changeset
230 Node* oop_store,
985
685e959d09ea 6877254: Server vm crashes with no branches off of store slice" when run with CMS and UseSuperWord(default)
cfang
parents: 851
diff changeset
231 int oop_adr_idx,
0
a61af66fc99e Initial load
duke
parents:
diff changeset
232 BasicType bt,
a61af66fc99e Initial load
duke
parents:
diff changeset
233 int adr_idx);
a61af66fc99e Initial load
duke
parents:
diff changeset
234
a61af66fc99e Initial load
duke
parents:
diff changeset
235 // Trivial call
a61af66fc99e Initial load
duke
parents:
diff changeset
236 void make_leaf_call(const TypeFunc *slow_call_type,
a61af66fc99e Initial load
duke
parents:
diff changeset
237 address slow_call,
a61af66fc99e Initial load
duke
parents:
diff changeset
238 const char *leaf_name,
a61af66fc99e Initial load
duke
parents:
diff changeset
239 Node* parm0,
a61af66fc99e Initial load
duke
parents:
diff changeset
240 Node* parm1 = NULL,
a61af66fc99e Initial load
duke
parents:
diff changeset
241 Node* parm2 = NULL);
a61af66fc99e Initial load
duke
parents:
diff changeset
242 };
1972
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1552
diff changeset
243
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1552
diff changeset
244 #endif // SHARE_VM_OPTO_IDEALKIT_HPP