Using instrumentation library

Hi,

  i ran the insert-function-profiling pass on my bytecode and when i
jit it, i get ' cant resolve 'llvm_start_func_profiling'. How do I link
the "instrument" library. ?

Thanks
-Sriraman.

That's in llvm/runtime/libprofile, if you build it, it should become
libprofile_rt.so in the appropriate build dir, link that with your
executable.

Sriraman Tallam wrote:

Hi,

  i ran the insert-function-profiling pass on my bytecode and when i
jit it, i get ' cant resolve 'llvm_start_func_profiling'. How do I link
the "instrument" library. ?

I believe you can use lli's -load option to load the libprofile_rt.so library. That library should be built in $OBJ_ROOT/Debug/lib, where $OBJ_ROOT is the directory in which you built LLVM.

-- John T.