<div dir="ltr"><div class="gmail_default" style="font-size:small">Hi,</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Given one structure type, is there any method to get the metadata that describes the structure information?</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">For example: </div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default">%2 = getelementptr inbounds %"class.std::thread", %"class.std::thread"* %this, i64 0, i32 0, i32 0, !dbg !2748<br></div><div class="gmail_default"><br></div><div class="gmail_default">then I know the pointer operand type is class.std::thread. I want to find the associated metadata of this type:</div><div class="gmail_default"><br></div><div class="gmail_default">!217 = !DICompositeType(tag: DW_TAG_class_type, name: "thread", scope: !34, file: !218, line: 60, size: 64, align: 64, elements: !219, identifier: "_ZTSSt6thread")                                         </div><div class="gmail_default"><br></div><div class="gmail_default">The challenge is that the structure name is different in the IR instruction, from the one in the metadata. One is  class.std::thread, while another is _ZTSSt6thread. </div><div class="gmail_default" style="font-size:small"><br></div><div><div class="gmail_signature"><div dir="ltr">Regards,<div>Hu Hong</div></div></div></div>
</div>