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. IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20190227/e062ce41/attachment.html>
Krzysztof Parzyszek via llvm-dev
2019-Feb-27 12:47 UTC
[llvm-dev] Read Operand Inside Values
On 2/27/2019 1:10 AM, Ramakota Reddy via llvm-dev wrote:> > Could anyone please give your suggestions to get operand inside values.You can cast it to User (or ConstantExpr in this case) and use the getOperand member function. -Krzysztof