Daniel Berlin,您好!
given
int a1,a2,a3,a4;
a1 = 1 ;
a2 = 2 ;
a3 = 3 ;
a4 = 4 ;
foo(a1+a2,a3+a4);
I want get foo function first argument stmt tree--(a1+a2). then look
the argument stmt tree OPERAND to find a1 and a2 variable.
On Wed, 2005-07-06 at 23:30 +0800, alert7 wrote:
> Daniel Berlin,您好!
>
> I'am gcc beginner,thank your answer .
>
> Is it the return Value of GetCallArgOperand function that u given stmt
> tree?
No.
>
> I pass return value--ops to function FOR_EACH_SSA_TREE_OPERAND
> F
Daniel Berlin,您好!
I'am gcc beginner,thank your answer .
Is it the return Value of GetCallArgOperand function that u given stmt
tree?
I pass return value--ops to function FOR_EACH_SSA_TREE_OPERAND
FOR_EACH_SSA_TREE_OPERAND (use, ops, iter, SSA_OP_ALL_USES){