<div dir="ltr"><div><div><div><div>Hi,<br><br></div></div>I want to get the information where the address of load/store comes from, <br>like below load instruction, %152 may come from a getelementpr, or comes from some gep+ptrtoint+add+inttoptr... instructions. what's the recommended way to find the original memory pointer?<br><br>  %153 = load <2 x i16> addrspace(1)* %152, align 2<br><br></div>going through the use-def chain seems not easy, because the 'add' operation contains two operands, one come from a pointer, the other is an integer offset. I could not know which is at operand 0 and which is at operand 1.<br><br></div>Thanks!<br>Ruiling<br><div><div><br></div></div></div>