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