Read Operand Inside Values

Hi All,

I have Instruction like below-

%2 = icmp ugt i32* %0, inttoptr (i64 655360000 to i32*).

First operand is:- i32* %0

Second operand is:- inttoptr (i64 655360000 to i32*)

Here how can I read(get) values from inside second operand(i.e. i64 655360000) ?

Could anyone please give your suggestions to get operand inside values.

Thanks & Regards,

Ramakota Reddy.

You can cast it to User (or ConstantExpr in this case) and use the getOperand member function.