[LLVMdev] offset of extra function argument

dan mihai dnmh68 at hotmail.com
Fri Apr 9 15:10:50 PDT 2010


I am instrumenting certain calls, and want to add an extra argument.
   original:   foo(int x, int y)
changed into
   modified: foo(int x, int y, int EXTRA)

This is in opt, before lowering.
Given the list of original arguments, is it possible to tell the stack offset of the EXTRA argument?

Thank you,

Hotmail has tools for the New Busy. Search, chat and e-mail from your inbox.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20100409/2a9e8b62/attachment.html>

More information about the llvm-dev mailing list