mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-04 09:54:09 +00:00
fd93908ae8
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21427 91177308-0d34-0410-b5e6-96231b3b80d8
32 lines
1.1 KiB
C++
32 lines
1.1 KiB
C++
//===- ProfilingUtils.h - Helper functions shared by profilers --*- C++ -*-===//
|
|
//
|
|
// The LLVM Compiler Infrastructure
|
|
//
|
|
// This file was developed by the LLVM research group and is distributed under
|
|
// the University of Illinois Open Source License. See LICENSE.TXT for details.
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
//
|
|
// This files defines a few helper functions which are used by profile
|
|
// instrumentation code to instrument the code. This allows the profiler pass
|
|
// to worry about *what* to insert, and these functions take care of *how* to do
|
|
// it.
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
#ifndef PROFILINGUTILS_H
|
|
#define PROFILINGUTILS_H
|
|
|
|
namespace llvm {
|
|
class Function;
|
|
class GlobalValue;
|
|
class BasicBlock;
|
|
|
|
void InsertProfilingInitCall(Function *MainFn, const char *FnName,
|
|
GlobalValue *Arr = 0);
|
|
void IncrementCounterInBlock(BasicBlock *BB, unsigned CounterNum,
|
|
GlobalValue *CounterArray);
|
|
}
|
|
|
|
#endif
|