[08/41] timevar.def: add TVs for analyzer

Message ID 20200108090302.2425-9-dmalcolm@redhat.com
State New
Headers show
Series
  • v5 of analyzer patch kit
Related show

Commit Message

David Malcolm Jan. 8, 2020, 9:02 a.m.
Needs review.

This takes the place of the auto_client_timevar code from v1 of the kit:
  https://gcc.gnu.org/ml/gcc-patches/2019-11/msg01519.html

gcc/ChangeLog:
	* timevar.def (TV_ANALYZER): New timevar.
	(TV_ANALYZER_SUPERGRAPH): Likewise.
	(TV_ANALYZER_STATE_PURGE): Likewise.
	(TV_ANALYZER_PLAN): Likewise.
	(TV_ANALYZER_SCC): Likewise.
	(TV_ANALYZER_WORKLIST): Likewise.
	(TV_ANALYZER_DUMP): Likewise.
	(TV_ANALYZER_DIAGNOSTICS): Likewise.
	(TV_ANALYZER_SHORTEST_PATHS): Likewise.
---
 gcc/timevar.def | 11 +++++++++++
 1 file changed, 11 insertions(+)

-- 
2.21.0

Comments

Jeff Law Jan. 10, 2020, 3:39 p.m. | #1
On Wed, 2020-01-08 at 04:02 -0500, David Malcolm wrote:
> Needs review.

> 

> This takes the place of the auto_client_timevar code from v1 of the kit:

>   https://gcc.gnu.org/ml/gcc-patches/2019-11/msg01519.html

> 

> gcc/ChangeLog:

> 	* timevar.def (TV_ANALYZER): New timevar.

> 	(TV_ANALYZER_SUPERGRAPH): Likewise.

> 	(TV_ANALYZER_STATE_PURGE): Likewise.

> 	(TV_ANALYZER_PLAN): Likewise.

> 	(TV_ANALYZER_SCC): Likewise.

> 	(TV_ANALYZER_WORKLIST): Likewise.

> 	(TV_ANALYZER_DUMP): Likewise.

> 	(TV_ANALYZER_DIAGNOSTICS): Likewise.

> 	(TV_ANALYZER_SHORTEST_PATHS): Likewise.

OK
jeff
>

Patch

diff --git a/gcc/timevar.def b/gcc/timevar.def
index 46d57f935874..f467d0251f77 100644
--- a/gcc/timevar.def
+++ b/gcc/timevar.def
@@ -322,3 +322,14 @@  DEFTIMEVAR (TV_LINK		     , "link JIT code")
 DEFTIMEVAR (TV_LOAD		     , "load JIT result")
 DEFTIMEVAR (TV_JIT_ACQUIRING_MUTEX   , "acquiring JIT mutex")
 DEFTIMEVAR (TV_JIT_CLIENT_CODE   , "JIT client code")
+
+/* Analyzer timevars.  */
+DEFTIMEVAR (TV_ANALYZER              , "analyzer")
+DEFTIMEVAR (TV_ANALYZER_SUPERGRAPH   , "analyzer: supergraph")
+DEFTIMEVAR (TV_ANALYZER_STATE_PURGE  , "analyzer: state purge")
+DEFTIMEVAR (TV_ANALYZER_PLAN         , "analyzer: planning")
+DEFTIMEVAR (TV_ANALYZER_SCC          , "analyzer: scc")
+DEFTIMEVAR (TV_ANALYZER_WORKLIST     , "analyzer: processing worklist")
+DEFTIMEVAR (TV_ANALYZER_DUMP         , "analyzer: dump")
+DEFTIMEVAR (TV_ANALYZER_DIAGNOSTICS  , "analyzer: emitting diagnostics")
+DEFTIMEVAR (TV_ANALYZER_SHORTEST_PATHS, "analyzer: shortest paths")