<div dir="ltr">Hi All,<div><br></div><div>In a linked LLVM-IR module, I would like to know if any of the functions with external linkage allocate memory. The definitions of these functions are not available in the linked IR. For example, the 'strdup' function.</div><div><br></div><div>If I understand the definition of 'readnone' attribute correctly, I think one way to do this is to check if the function declaration has 'readnone' attached to it [1]. Is this correct?</div><div><br></div><div>Please let me know if there are any other reliable methods to do the same.</div><div><br></div><div>[1] <a href="https://llvm.org/docs/LangRef.html">https://llvm.org/docs/LangRef.html</a></div><div><br></div><div>Regards,</div><div>Raghesh<br clear="all"><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div>------------------------------</div><div>Raghesh Aloor</div><div>AMD India Pvt. Ltd.</div><div>Bengaluru.</div><div>------------------------------</div></div></div></div></div></div></div></div></div></div>