search for: howmanytimethisfunctiongetcalled

Displaying 3 results from an estimated 3 matches for "howmanytimethisfunctiongetcalled".

2011 Nov 03
0
[LLVMdev] Instrument examples
...ction calls and basic blocks. But I don't know where to start. I wonder > if there are any example codes to show how to instrument codes in the IR > level? No idea what exactly you want to achieve, but let me try. First, you might need a function doing the instrument. Say, void HowManyTimeThisFunctionGetCalled(); Then you can insert a call to the function above while creating a LLVM function [1]. In that way, every time that LLVM function get called the function doing the instrument will be called. You might need to take a look on ${LLVM_SOURCE}/example/HowToUseJIT to get a feel on how to create a...
2011 Oct 31
4
[LLVMdev] Instrument examples
Hi, I am new to LLVM. I want to use LLVM to instrument codes, such as function calls and basic blocks. But I don't know where to start. I wonder if there are any example codes to show how to instrument codes in the IR level? Thanks. -- zhouxu -------------- next part -------------- An HTML attachment was scrubbed... URL:
2011 Nov 04
1
[LLVMdev] Instrument examples
> No idea what exactly you want to achieve, but let me try. > > First, you might need a function doing the instrument. Say, > > void HowManyTimeThisFunctionGetCalled(); > > Then you can insert a call to the function above while creating > a LLVM function [1]. In that way, every time that LLVM function > get called the function doing the instrument will be called. > > You might need to take a look on ${LLVM_SOURCE}/example/HowToUseJIT > to...