Add gimple_ranger::debug.
authorAldy Hernandez <aldyh@redhat.com>
Wed, 29 Sep 2021 18:50:20 +0000 (20:50 +0200)
committerAldy Hernandez <aldyh@redhat.com>
Thu, 30 Sep 2021 06:08:50 +0000 (08:08 +0200)
I'm trying to add one debug() for each dump() to the dumping aids.

Tested on x86-64 Linux.

gcc/ChangeLog:

* gimple-range.cc (gimple_ranger::debug): New.
* gimple-range.h (class gimple_ranger): Add debug.

gcc/gimple-range.cc
gcc/gimple-range.h

index d4108db..6eb3f71 100644 (file)
@@ -412,6 +412,12 @@ gimple_ranger::dump (FILE *f)
   m_cache.dump (f);
 }
 
+void
+gimple_ranger::debug ()
+{
+  dump (stderr);
+}
+
 /* Create a new ranger instance and associate it with function FUN.
    Each call must be paired with a call to disable_ranger to release
    resources.  */
index 191a075..0713af4 100644 (file)
@@ -55,6 +55,7 @@ public:
   void export_global_ranges ();
   inline gori_compute &gori ()  { return m_cache.m_gori; }
   virtual void dump (FILE *f) OVERRIDE;
+  void debug ();
   void dump_bb (FILE *f, basic_block bb);
   auto_edge_flag non_executable_edge_flag;
 protected: