Displaying 4 results from an estimated 4 matches for "yaos4".
Did you mean:
yao
2016 Sep 06
2
How to insert instructions before each function calls?
> On 5 Sep 2016, at 16:14, SHUCAI YAO <yaos4 at mcmaster.ca> wrote:
>
>
> Hi Dean,
>
> Do you have any example for this? I would like have a look at how you handle this in XRay if it is possible.
>
Yes, this is all upstream -- if you look in lib/CodeGen/XRayInstrument.cpp and the associated lowering code for X86 in...
2016 Sep 05
2
How to insert instructions before each function calls?
> On 5 Sep 2016, at 11:49, SHUCAI YAO <yaos4 at mcmaster.ca> wrote:
>
> For the function call lowering, do you mean lowercall function? I did insert the instruction before the stack adjustments, but the inserted code appears in the prologue of the function, other than before the function call. Maybe I did something wrong with the it...
2016 Sep 05
2
How to insert instructions before each function calls?
...lps.
-- Dean
> On 5 Sep 2016, at 00:23, Ryan Taylor via llvm-dev <llvm-dev at lists.llvm.org> wrote:
>
> Personally I would add a new pass that iterates, looks for the call you want then inserts the new instruction.
>
>
> On Sep 4, 2016 10:20, "SHUCAI YAO" <yaos4 at mcmaster.ca> wrote:
>
>
> On Sun, Sep 4, 2016 at 7:44 AM, Ryan Taylor <ryta1203 at gmail.com> wrote:
> Mehdi,
>
> Sorry, I misread his original post.
>
> So something like:
>
> XXXInsrtInfo *XII; // target instruction info
> MachineBasicBl...
2016 Sep 04
1
How to insert instructions before each function calls?
On Sun, Sep 4, 2016 at 7:44 AM, Ryan Taylor <ryta1203 at gmail.com> wrote:
> Mehdi,
>
> Sorry, I misread his original post.
>
> So something like:
>
> XXXInsrtInfo *XII; // target instruction info
> MachineBasicBlock::iterator MI = MachineBasicBlock(YourCallInst);
> MachineBasicBlock *MBB = YourCallInst->getParent(); // basic block
> location of