| Index: src/IceGlobalContext.h
|
| diff --git a/src/IceGlobalContext.h b/src/IceGlobalContext.h
|
| index 3937b2a4ba4b624d016817d837caabaa1bfc099c..5d27f5ddc8d17be2cf7adae7fedf6283697752cd 100644
|
| --- a/src/IceGlobalContext.h
|
| +++ b/src/IceGlobalContext.h
|
| @@ -106,7 +106,9 @@ class GlobalContext {
|
| for (uint32_t i = 0; i < Stats.size(); ++i)
|
| Stats[i] += Other.Stats[i];
|
| }
|
| - void dump(const std::string &Name, GlobalContext *Ctx);
|
| + /// Dumps the stats for the given Cfg. If Func==nullptr, it identifies it
|
| + /// as the "final" cumulative stats instead as a specific function's name.
|
| + void dump(const Cfg *Func, GlobalContext *Ctx);
|
|
|
| private:
|
| std::array<uint32_t, CS_NUM> Stats;
|
| @@ -301,7 +303,7 @@ public:
|
| if (BuildDefs::dump())
|
| ICE_TLS_GET_FIELD(TLS)->StatsFunction.reset();
|
| }
|
| - void dumpStats(const std::string &Name, bool Final = false);
|
| + void dumpStats(const Cfg *Func = nullptr);
|
| void statsUpdateEmitted(uint32_t InstCount) {
|
| if (!getFlags().getDumpStats())
|
| return;
|
|
|