<div dir="ltr">Hi All,<div><br></div><div>A correction in my query.</div><div><br></div><div>Please ignore this part --> "if any of the functions with external linkage allocate memory". I think I have not used the term "external linkage" promptly as per its definition.</div><div><br></div><div>What I would like to know is about the possibility of memory allocation by those functions whose definitions are not there in the linked LLMV-IR.</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><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Nov 2, 2021 at 4:26 PM raghesh <<a href="mailto:raghesh.a@gmail.com">raghesh.a@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><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" target="_blank">https://llvm.org/docs/LangRef.html</a></div><div><br></div><div>Regards,</div><div>Raghesh<br clear="all"><div><div dir="ltr"><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>
</blockquote></div>