LLVM: lib/Transforms/Utils/CountVisits.cpp Source File (original) (raw)

Go to the documentation of this file.

1

2

3

4

5

6

7

8

13

14using namespace llvm;

15

16#define DEBUG_TYPE "count-visits"

17

18STATISTIC(MaxVisited, "Max number of times we visited a function");

19

22 Counts[F.getName()] = Count;

23 if (Count > MaxVisited)

24 MaxVisited = Count;

26}

This header defines various interfaces for pass management in LLVM.

This file defines the 'Statistic' class, which is designed to be an easy way to expose various metric...

#define STATISTIC(VARNAME, DESC)

A set of analyses that are preserved following a run of a transformation pass.

static PreservedAnalyses all()

Construct a special preserved set that preserves all passes.

This is an optimization pass for GlobalISel generic memory operations.

FunctionAddr VTableAddr Count

AnalysisManager< Function > FunctionAnalysisManager

Convenience typedef for the Function analysis manager.

PreservedAnalyses run(Function &F, FunctionAnalysisManager &)

Definition CountVisits.cpp:20