< prev index next >

src/hotspot/share/gc/shenandoah/c2/shenandoahBarrierSetC2.hpp

Print this page

105   static const TypeFunc* shenandoah_load_reference_barrier_Type();
106   virtual bool has_load_barrier_nodes() const { return true; }
107 
108   // This is the entry-point for the backend to perform accesses through the Access API.
109   virtual void clone_at_expansion(PhaseMacroExpand* phase, ArrayCopyNode* ac) const;
110 
111   // These are general helper methods used by C2
112   virtual bool array_copy_requires_gc_barriers(bool tightly_coupled_alloc, BasicType type, bool is_clone, bool is_clone_instance, ArrayCopyPhase phase) const;
113 
114   // Support for GC barriers emitted during parsing
115   virtual bool is_gc_barrier_node(Node* node) const;
116   virtual Node* step_over_gc_barrier(Node* c) const;
117   virtual bool expand_barriers(Compile* C, PhaseIterGVN& igvn) const;
118   virtual bool optimize_loops(PhaseIdealLoop* phase, LoopOptsMode mode, VectorSet& visited, Node_Stack& nstack, Node_List& worklist) const;
119   virtual bool strip_mined_loops_expanded(LoopOptsMode mode) const { return mode == LoopOptsShenandoahExpand || mode == LoopOptsShenandoahPostExpand; }
120   virtual bool is_gc_specific_loop_opts_pass(LoopOptsMode mode) const { return mode == LoopOptsShenandoahExpand || mode == LoopOptsShenandoahPostExpand; }
121 
122   // Support for macro expanded GC barriers
123   virtual void register_potential_barrier_node(Node* node) const;
124   virtual void unregister_potential_barrier_node(Node* node) const;
125   virtual void eliminate_gc_barrier(PhaseMacroExpand* macro, Node* node) const;
126   virtual void enqueue_useful_gc_barrier(PhaseIterGVN* igvn, Node* node) const;
127   virtual void eliminate_useless_gc_barriers(Unique_Node_List &useful, Compile* C) const;
128 
129   // Allow barrier sets to have shared state that is preserved across a compilation unit.
130   // This could for example comprise macro nodes to be expanded during macro expansion.
131   virtual void* create_barrier_state(Arena* comp_arena) const;
132   // If the BarrierSetC2 state has kept macro nodes in its compilation unit state to be
133   // expanded later, then now is the time to do so.
134   virtual bool expand_macro_nodes(PhaseMacroExpand* macro) const;
135 
136 #ifdef ASSERT
137   virtual void verify_gc_barriers(Compile* compile, CompilePhase phase) const;
138 #endif
139 
140   virtual Node* ideal_node(PhaseGVN* phase, Node* n, bool can_reshape) const;
141   virtual bool final_graph_reshaping(Compile* compile, Node* n, uint opcode) const;
142 
143   virtual bool escape_add_to_con_graph(ConnectionGraph* conn_graph, PhaseGVN* gvn, Unique_Node_List* delayed_worklist, Node* n, uint opcode) const;
144   virtual bool escape_add_final_edges(ConnectionGraph* conn_graph, PhaseGVN* gvn, Node* n, uint opcode) const;
145   virtual bool escape_has_out_with_unsafe_object(Node* n) const;

105   static const TypeFunc* shenandoah_load_reference_barrier_Type();
106   virtual bool has_load_barrier_nodes() const { return true; }
107 
108   // This is the entry-point for the backend to perform accesses through the Access API.
109   virtual void clone_at_expansion(PhaseMacroExpand* phase, ArrayCopyNode* ac) const;
110 
111   // These are general helper methods used by C2
112   virtual bool array_copy_requires_gc_barriers(bool tightly_coupled_alloc, BasicType type, bool is_clone, bool is_clone_instance, ArrayCopyPhase phase) const;
113 
114   // Support for GC barriers emitted during parsing
115   virtual bool is_gc_barrier_node(Node* node) const;
116   virtual Node* step_over_gc_barrier(Node* c) const;
117   virtual bool expand_barriers(Compile* C, PhaseIterGVN& igvn) const;
118   virtual bool optimize_loops(PhaseIdealLoop* phase, LoopOptsMode mode, VectorSet& visited, Node_Stack& nstack, Node_List& worklist) const;
119   virtual bool strip_mined_loops_expanded(LoopOptsMode mode) const { return mode == LoopOptsShenandoahExpand || mode == LoopOptsShenandoahPostExpand; }
120   virtual bool is_gc_specific_loop_opts_pass(LoopOptsMode mode) const { return mode == LoopOptsShenandoahExpand || mode == LoopOptsShenandoahPostExpand; }
121 
122   // Support for macro expanded GC barriers
123   virtual void register_potential_barrier_node(Node* node) const;
124   virtual void unregister_potential_barrier_node(Node* node) const;
125   virtual void eliminate_gc_barrier(PhaseIterGVN* igvn, Node* node) const;
126   virtual void enqueue_useful_gc_barrier(PhaseIterGVN* igvn, Node* node) const;
127   virtual void eliminate_useless_gc_barriers(Unique_Node_List &useful, Compile* C) const;
128 
129   // Allow barrier sets to have shared state that is preserved across a compilation unit.
130   // This could for example comprise macro nodes to be expanded during macro expansion.
131   virtual void* create_barrier_state(Arena* comp_arena) const;
132   // If the BarrierSetC2 state has kept macro nodes in its compilation unit state to be
133   // expanded later, then now is the time to do so.
134   virtual bool expand_macro_nodes(PhaseMacroExpand* macro) const;
135 
136 #ifdef ASSERT
137   virtual void verify_gc_barriers(Compile* compile, CompilePhase phase) const;
138 #endif
139 
140   virtual Node* ideal_node(PhaseGVN* phase, Node* n, bool can_reshape) const;
141   virtual bool final_graph_reshaping(Compile* compile, Node* n, uint opcode) const;
142 
143   virtual bool escape_add_to_con_graph(ConnectionGraph* conn_graph, PhaseGVN* gvn, Unique_Node_List* delayed_worklist, Node* n, uint opcode) const;
144   virtual bool escape_add_final_edges(ConnectionGraph* conn_graph, PhaseGVN* gvn, Node* n, uint opcode) const;
145   virtual bool escape_has_out_with_unsafe_object(Node* n) const;
< prev index next >