X-Git-Url: http://plrg.eecs.uci.edu/git/?a=blobdiff_plain;f=utils%2Fprofile.pl;h=782e5dc24d468e686dbada7cd30827adb3fedd7a;hb=b10946a5a938a433ca4d7301b8b5ff5a8c11a7ff;hp=f9950f97fea82179c1e22a23b820db1ef18211ac;hpb=111e8ce3a2b6279dcc348878349fd459c4ed883c;p=oota-llvm.git diff --git a/utils/profile.pl b/utils/profile.pl index f9950f97fea..782e5dc24d4 100755 --- a/utils/profile.pl +++ b/utils/profile.pl @@ -5,7 +5,7 @@ # Synopsis: Insert instrumentation code into a program, run it with the JIT, # then print out a profile report. # -# Syntax: profile.pl [OPTIONS] bytecodefile +# Syntax: profile.pl [OPTIONS] bitcodefile # # OPTIONS may include one or more of the following: # -block - Enable basicblock profiling @@ -56,7 +56,7 @@ while (scalar(@ARGV) and ($_ = $ARGV[0], /^[-+]/)) { $LLVMProfOpts .= " " . $_; } -die "Must specify LLVM bytecode file as first argument!" if (@ARGV == 0); +die "Must specify LLVM bitcode file as first argument!" if (@ARGV == 0); my $BytecodeFile = $ARGV[0]; @@ -65,7 +65,7 @@ shift @ARGV; my $libdir = `llvm-config --libdir`; chomp $libdir; -my $LibProfPath = $libdir . "/profile_rt.so"; +my $LibProfPath = $libdir . "/libprofile_rt.so"; system "opt -q -f $ProfilePass $BytecodeFile -o $BytecodeFile.inst"; system "lli -fake-argv0 '$BytecodeFile' -load $LibProfPath " .