Arnamoy Bhattacharyya
2012-Apr-01 03:48 UTC
[LLVMdev] How to Get Path Profile and Print it
Hello; I was trying to use utils/profile.pl script to get path profile and print it from a simple hello world program. First I do the following - Compile the hello.c into LLVM bitcode file using - clang hello.c -S -emit-llvm -o hello.bc But when I try to run the following script - ../llvmclang/llvm-3.0.src/utils/profile.pl -edge hello.bc I get the following error - llvm-prof: hello.bc: Invalid bitcode signature Also in the profile.pl, an argument can be "function". But when I try to run with the argument function, the output is - opt: Unknown command line argument '-insert-function-profiling'. Try: 'opt -help' 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. Thank you; -- Arnamoy Bhattacharyya Athabasca Hall 143 Department of Computing Science - University of Alberta Edmonton, Alberta, Canada, T6G 2E8 780-680-7073 -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20120331/4d4a458a/attachment.html>
Seemingly Similar Threads
- [LLVMdev] "symbol lookup error" while running a Simple Loop Pass
- [LLVMdev] "symbol lookup error" while running a Simple Loop Pass
- [LLVMdev] Identifying the instructions that uses a pointer used as a function argument
- [LLVMdev] Get the filename on which a pass is running?
- [LLVMdev] llvm::ConstantArray::get(llvm::LLVMContext&, llvm::StringRef, bool) deprecated?