Displaying 2 results from an estimated 2 matches for "enterfunct".
2017 Jul 13
2
How to add custom instrumentation?
Hi everyone,
I run some functions using ORC JIT, now I need to add custom instrumentation.
I want to add two callbacks to each function: ‘enterFunction' at the beginning and ‘leaveFunction' at the end.
Intuition says that I could ‘just' insert CallInst's to the first and the last basic blocks in the function.
Am I correct? Are there any other/better way to do this? Is there anything special I need to be aware of?
Thank you.
--...
2017 Jul 13
2
How to add custom instrumentation?
...July 13, 2017 8:57 AM
> To: llvm-dev <llvm-dev at lists.llvm.org>
> Subject: [llvm-dev] How to add custom instrumentation?
>
> Hi everyone,
>
> I run some functions using ORC JIT, now I need to add custom instrumentation.
> I want to add two callbacks to each function: ‘enterFunction' at the beginning and ‘leaveFunction' at the end.
> Intuition says that I could ‘just' insert CallInst's to the first and the last basic blocks in the function.
>
> Am I correct? Are there any other/better way to do this? Is there anything special I need to be aware of?...