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.
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 . Is this correct?
Please let me know if there are any other reliable methods to do the same.