Fangqing Du via llvm-dev
2019-Mar-12 21:56 UTC
[llvm-dev] missing handling of function attr 'ArgMemOnly' in pass 'functionattrs'
Hi All, I notice that in pass 'functionattrs', there is no handling of function attribute 'ArgMemOnly'. Do you already has a patch or do you have plan to add this? If no patch or no plan, maybe I can try to send a patch for this. Thanks, Fangqing Xilinx Inc. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20190312/4639e11a/attachment.html>
Lin-Ya Yu via llvm-dev
2019-Mar-13 11:42 UTC
[llvm-dev] missing handling of function attr 'ArgMemOnly' in pass 'functionattrs'
Hi Fangqing, I think there are no existed codes to deduce "argmemonly" attribute for function in LLVM. I saw codes in lib/Transforms/Utils/BuildLibCalls.cpp to directly mark some lib functions as "argmemonly". There is also an option called -force-attribute option to force function to be argmemonly. A patch for deducing "argmentonly" is useful, like for alias analysis, it can get more information to have more precise result. Thanks, Lin-Ya Fangqing Du via llvm-dev <llvm-dev at lists.llvm.org> 於 2019年3月12日 週二 下午9:56寫道:> Hi All, > > I notice that in pass 'functionattrs', there is no handling of function > attribute 'ArgMemOnly'. > Do you already has a patch or do you have plan to add this? > > If no patch or no plan, maybe I can try to send a patch for this. > > Thanks, > Fangqing > Xilinx Inc. > _______________________________________________ > LLVM Developers mailing list > llvm-dev at lists.llvm.org > https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20190313/d7729f20/attachment.html>