<div dir="ltr"><div><div>I am working on my first llvm Pass to analyze some structure variables in source code, but in IR, there are only getelementptr to calculate the memory address to fetch the value of a specific member in the structure. For example, when I try to get the member  name of Structure S in statement "if(ss.aaaa == b)", where ss is a object of Structure S and b is an integer, <br><img alt="内嵌图片 2" src="cid:ii_151d71a3ea054f05" height="95" width="167"><br><img alt="内嵌图片 4" src="cid:ii_151d71aa7e4ced29" height="24" width="187"><br>I can only get the following IR structures, and the variable %aaaa1 is just a temporary name<br><img alt="内嵌图片 1" src="cid:ii_151d719f72d6ea8d" height="50" width="411"><br><br></div>So, the problem is, how could I get the member name of a structure in IR? more specific, how could I get the name "aaaa" while access to the "ss.aaaa"?<br><br></div>Thanks a lot.<br></div>