[llvm-commits] CVS: llvm/tools/llvm-prof/Makefile llvm-prof.cpp
Chris Lattner
lattner at cs.uiuc.edu
Tue Oct 28 13:17:04 PST 2003
Changes in directory llvm/tools/llvm-prof:
Makefile added (r1.1)
llvm-prof.cpp added (r1.1)
---
Log message:
Initial checkin of llvmprof stub
---
Diffs of the changes: (+49 -0)
Index: llvm/tools/llvm-prof/Makefile
diff -c /dev/null llvm/tools/llvm-prof/Makefile:1.1
*** /dev/null Tue Oct 28 13:16:45 2003
--- llvm/tools/llvm-prof/Makefile Tue Oct 28 13:16:35 2003
***************
*** 0 ****
--- 1,13 ----
+ ##===- tools/llvm-prof/Makefile ----------------------------*- Makefile -*-===##
+ #
+ # 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.
+ #
+ ##===----------------------------------------------------------------------===##
+ LEVEL = ../..
+
+ TOOLNAME = llvm-prof
+ USEDLIBS = bcreader vmcore support.a
+ include $(LEVEL)/Makefile.common
Index: llvm/tools/llvm-prof/llvm-prof.cpp
diff -c /dev/null llvm/tools/llvm-prof/llvm-prof.cpp:1.1
*** /dev/null Tue Oct 28 13:16:45 2003
--- llvm/tools/llvm-prof/llvm-prof.cpp Tue Oct 28 13:16:35 2003
***************
*** 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<std::string>
+ BytecodeFile(cl::Positional, cl::desc("<program bytecode file>"),
+ cl::Required);
+
+ cl::opt<std::string>
+ ProfileDataFile(cl::Positional, cl::desc("<llvmprof.out file>"),
+ cl::Optional, cl::init("llvmprof.out"));
+ }
+
+ int main(int argc, char **argv) {
+ cl::ParseCommandLineOptions(argc, argv, " llvm profile dump decoder\n");
+
+
+
+
+ return 0;
+ }
More information about the llvm-commits
mailing list