Hello;<div><br></div><div>I was trying to use utils/<a href="http://profile.pl">profile.pl</a> script to get path profile and print it from a simple hello world program.</div><div><br></div><div>First I do the following - </div>
<div><br></div><div>Compile the hello.c into LLVM bitcode file using -</div><div><br></div><div><div>clang hello.c -S -emit-llvm -o hello.bc</div></div><div><br></div><div>But when I try to run the following script -</div>
<div><br></div><div><div>../llvmclang/llvm-3.0.src/utils/<a href="http://profile.pl">profile.pl</a> -edge hello.bc </div></div><div><br></div><div>I get the following error - </div><div><br></div><div><div>llvm-prof: hello.bc: Invalid bitcode signature</div>
<div><br></div><div>Also in the <a href="http://profile.pl">profile.pl</a>, an argument can be "function".  But when I try to run with the argument function, the output is - </div><div><br></div><div><div>opt: Unknown command line argument '-insert-function-profiling'.  Try: 'opt -help'</div>
</div><div><br></div><div>I was in the hope of getting path profiles with the -function argument.  But is "insert-path-profiling" supported in llvm?  I am asking this because I didn't see any transformation for path-profiling in the website.</div>
<div><br></div><div>Thank you;</div>-- <br>Arnamoy Bhattacharyya<br>Athabasca Hall 143<br>Department of Computing Science - University of Alberta<br>Edmonton, Alberta, Canada, T6G 2E8<br>780-680-7073<br>
</div>