Displaying 3 results from an estimated 3 matches for "llvm_start_block_profil".
2008 Jan 30
3
[LLVMdev] How to use profiling runtime for program profiling?
Hi, all
I have a question about how to profile program with LLVM. When I tried
to compile the
instrumented version of program after using "-insert-block-profiling", I got
error complaining
" undefined reference to `llvm_start_block_profiling'.
I found that there is a "runtime"directory in llvm source directory
but in the Makefile, it said
llvm gcc 4 and above already included the libraries. I was using llvm
gcc 4. Why would I
still get the error?
Thanks
Haifeng
2008 Jan 30
0
[LLVMdev] How to use profiling runtime for program profiling?
Hi Haifeng
> I have a question about how to profile program with LLVM. When I tried
> to compile the instrumented version of program after using "-insert-
> block-profiling", I got
> error complaining " undefined reference to
> `llvm_start_block_profiling'.
>
> I found that there is a "runtime"directory in llvm source directory
> but in the Makefile, it said llvm gcc 4 and above already included
> the libraries. I was using llvm
> gcc 4. Why would I still get the error?
I experienced the same error on Mac OS X when...
2004 Oct 19
1
[LLVMdev] Re:question about Insert callInst to call a function in library
Thanks Chris, but the method you mentioned is not what I want. Maybe I didn't make it clear.
As you said, /runtime/libprofile is runtime library for the following function.
llvm_start_func_profiling
llvm_start_block_profiling
llvm_start_basic_block_tracing
llvm_trace_basic_block
And those above functions can be inserted into basic block etc for getting profile. However, those functions are wroten by C/C++ which just statistic some data.
What I want is to write a Pass in external library. You know for the Pa...