[LLVMdev] Find function parameters

lucefe noviceup at gmail.com
Sun Mar 30 08:33:05 PDT 2014


Hi,

For each variable, I want to figure out whether it is a parameter or not.
How should I do that?

For example, in the next function, I want to know that variable 'i' is a
parameter, and 'var' is a variable.

int test (int i) {
     int var;

     var = 2*i;

     return var;
}

Thanks in advance.

lucefe
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20140330/67cf1b40/attachment.html>


More information about the llvm-dev mailing list