[PATCH] D88335: [BuildLibCalls] Add noalias for strcat and stpcpy
Florian Hahn via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Sep 25 14:13:33 PDT 2020
fhahn added a comment.
In D88335#2295923 <https://reviews.llvm.org/D88335#2295923>, @efriedma wrote:
>> noalias on its own is probably not too useful in this context, but I think without noalias, we cannot mark either argument as readonly/writeonly
>
> That isn't how readonly works. From LangRef: "On an argument, this attribute indicates that the function does not write through this pointer argument, even though it may write to the memory that the pointer points to."
Oh right, I forgot about that exception.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D88335/new/
https://reviews.llvm.org/D88335
More information about the llvm-commits
mailing list