<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr">Hi.<div>I want to do a cutomized points-to analysis on IR. Suppose that we have:</div><div><b>%91 = bitcast i8* %90 to %struct.demux_packet*, !dbg !2688</b></div><div><br></div><div>I want to store sth similar to %91 -> target of %90, which records the target of pointer named %91. How can I access the names (Here, %90 and %91)?<br></div><div>I know that I can put the whole line for an instruction into a string, using the following code:</div><div><div><b>string str;</b></div><div><b>llvm::raw_string_ostream ss(str);</b></div><div><b>inst->print(ss);</b></div></div><div><br></div><div>But a postprocessing will be needed. I need to parse for parameters which will not be easy in the general case. I appreciate any help.</div><div>Regards.</div></div></div></div></div>