Commit b95f2911 by Jeff Law Committed by Jeff Law

gimple-ssa-sprintf.c (sprintf_dom_walker): Remove virtual keyword on FINAL OVERRIDE members.

	* gimple-ssa-sprintf.c (sprintf_dom_walker): Remove
	virtual keyword on FINAL OVERRIDE members.

	* tree-ssa-propagate.h (ssa_propagation_engine): Group
	virtuals together.  Add virtual destructor.
	(substitute_and_fold_engine): Similarly.

From-SVN: r254345
parent 3c3947b8
2017-11-02 Jeff Law <law@redhat.com>
* gimple-ssa-sprintf.c (sprintf_dom_walker): Remove
virtual keyword on FINAL OVERRIDE members.
* tree-ssa-propagate.h (ssa_propagation_engine): Group
virtuals together. Add virtual destructor.
(substitute_and_fold_engine): Similarly.
2017-11-02 Jan Hubicka <hubicka@ucw.cz> 2017-11-02 Jan Hubicka <hubicka@ucw.cz>
* x86-tune.def (X86_TUNE_USE_INCDEC): Enable for Haswell+. * x86-tune.def (X86_TUNE_USE_INCDEC): Enable for Haswell+.
...@@ -120,7 +120,7 @@ class sprintf_dom_walker : public dom_walker ...@@ -120,7 +120,7 @@ class sprintf_dom_walker : public dom_walker
sprintf_dom_walker () : dom_walker (CDI_DOMINATORS) {} sprintf_dom_walker () : dom_walker (CDI_DOMINATORS) {}
~sprintf_dom_walker () {} ~sprintf_dom_walker () {}
virtual edge before_dom_children (basic_block) FINAL OVERRIDE; edge before_dom_children (basic_block) FINAL OVERRIDE;
bool handle_gimple_call (gimple_stmt_iterator *); bool handle_gimple_call (gimple_stmt_iterator *);
struct call_info; struct call_info;
......
...@@ -81,14 +81,16 @@ class ssa_propagation_engine ...@@ -81,14 +81,16 @@ class ssa_propagation_engine
{ {
public: public:
/* Main interface into the propagation engine. */ virtual ~ssa_propagation_engine (void) { }
void ssa_propagate (void);
/* Virtual functions the clients must provide to visit statements /* Virtual functions the clients must provide to visit statements
and phi nodes respectively. */ and phi nodes respectively. */
virtual enum ssa_prop_result visit_stmt (gimple *, edge *, tree *) = 0; virtual enum ssa_prop_result visit_stmt (gimple *, edge *, tree *) = 0;
virtual enum ssa_prop_result visit_phi (gphi *) = 0; virtual enum ssa_prop_result visit_phi (gphi *) = 0;
/* Main interface into the propagation engine. */
void ssa_propagate (void);
private: private:
/* Internal implementation details. */ /* Internal implementation details. */
void simulate_stmt (gimple *stmt); void simulate_stmt (gimple *stmt);
...@@ -100,10 +102,12 @@ class ssa_propagation_engine ...@@ -100,10 +102,12 @@ class ssa_propagation_engine
class substitute_and_fold_engine class substitute_and_fold_engine
{ {
public: public:
bool substitute_and_fold (void); virtual ~substitute_and_fold_engine (void) { }
bool replace_uses_in (gimple *);
virtual bool fold_stmt (gimple_stmt_iterator *) { return false; } virtual bool fold_stmt (gimple_stmt_iterator *) { return false; }
virtual tree get_value (tree) { return NULL_TREE; } virtual tree get_value (tree) { return NULL_TREE; }
bool substitute_and_fold (void);
bool replace_uses_in (gimple *);
bool replace_phi_args_in (gphi *); bool replace_phi_args_in (gphi *);
}; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment