From 14b392fdea8077f0b6e625969965bd753651e61c Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Tue, 28 Oct 2003 19:16:35 +0000 Subject: Initial checkin of llvmprof stub llvm-svn: 9551 --- llvm/tools/llvm-prof/llvm-prof.cpp | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 llvm/tools/llvm-prof/llvm-prof.cpp (limited to 'llvm/tools/llvm-prof/llvm-prof.cpp') diff --git a/llvm/tools/llvm-prof/llvm-prof.cpp b/llvm/tools/llvm-prof/llvm-prof.cpp new file mode 100644 index 00000000000..0d5778ae517 --- /dev/null +++ b/llvm/tools/llvm-prof/llvm-prof.cpp @@ -0,0 +1,36 @@ +//===- llvm-prof.cpp - Read in and process llvmprof.out data files --------===// +// +// 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 tools is meant for use with the various LLVM profiling instrumentation +// passes. It reads in the data file produced by executing an instrumented +// program, and outputs a nice report. +// +//===----------------------------------------------------------------------===// + +#include "llvm/Bytecode/Reader.h" +#include "Support/CommandLine.h" + +namespace { + cl::opt + BytecodeFile(cl::Positional, cl::desc(""), + cl::Required); + + cl::opt + ProfileDataFile(cl::Positional, cl::desc(""), + cl::Optional, cl::init("llvmprof.out")); +} + +int main(int argc, char **argv) { + cl::ParseCommandLineOptions(argc, argv, " llvm profile dump decoder\n"); + + + + + return 0; +} -- cgit v1.2.3