Skip to content

Commit

Permalink
clang format
Browse files Browse the repository at this point in the history
  • Loading branch information
yashssh committed Jul 10, 2024
1 parent 4eeb079 commit 08639b5
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions ffi/custom_passes.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1299,18 +1299,23 @@ typedef struct PruneStats {
} PRUNESTATS;

API_EXPORT(void)
LLVMPY_DumpRefPruneStats(PRUNESTATS *buf, bool do_print) {
LLVMPY_DumpRefPruneStats(PRUNESTATS* buf, bool do_print)
{
/* PRUNESTATS is updated with the statistics about what has been pruned from
* the RefPrune static state vars. This isn't threadsafe but neither is
* the LLVM pass infrastructure so it's all done under a python thread lock.
*
* do_print if set will print the stats to stderr.
*/
if (do_print) {
errs() << "refprune stats " << "per-BB " << RefPrune::stats_per_bb
<< " " << "diamond " << RefPrune::stats_diamond << " "
<< "fanout " << RefPrune::stats_fanout << " " << "fanout+raise "
<< RefPrune::stats_fanout_raise << " " << "\n";
errs() << "refprune stats "
<< "per-BB " << RefPrune::stats_per_bb
<< " "
<< "diamond " << RefPrune::stats_diamond << " "
<< "fanout " << RefPrune::stats_fanout << " "
<< "fanout+raise "
<< RefPrune::stats_fanout_raise << " "
<< "\n";
};

buf->basicblock = RefPrune::stats_per_bb;
Expand Down

0 comments on commit 08639b5

Please sign in to comment.