<div dir="ltr">Hi, <br><br><div>I am using IR to do some dataflow analysis, and I want to get the source location related to the dataflow. In my thought, when I iterate the Users of a Value, there should be an corresponding instruction, then I could get source location from dbg info.</div><div><br></div><div>However, in some cases, I got some Operators as the Users of a Value, such as GEPOperator, BitCastOperator, etc. </div><div>My question is, how could I got the corresponding instruction that use this Operator as Operand?</div><div><br></div><div>For example, when I got the GEPOperator as follows, how could I get the LoadInst?</div><div><br></div><div><b><i>%39 = load i32, i32* getelementptr inbounds (%struct.TTT, %struct.TTT* @ttt, i32 0, i32 2), align 8, !dbg !971</i></b><br></div><div><br></div><div><br></div><div>Sincerely,</div><div>Shulin</div></div>