Unless I am missing something, those functions should only access
either memory accessible through their arguments or inaccessible memory.
If I am not missing anything, it would probably be worth to add that
attribute to most libcalls.
Paths
| Differential D132406
[LibCalls] Mark puts/printf/perror as inaccessible_mem_or_argmem. Needs RevisionPublic Authored by fhahn on Aug 22 2022, 12:09 PM.
Details
Summary Unless I am missing something, those functions should only access If I am not missing anything, it would probably be worth to add that
Diff Detail
Unit TestsFailed
Event TimelineThis revision now requires changes to proceed.Aug 22 2022, 12:21 PM Comment Actions
Argh, right, that's a shame. I think the most interesting property would be that they don't access local objects that have been captured. But I think we don't have a way to model that at the moment?
Revision Contents
Diff 454591 llvm/lib/Transforms/Utils/BuildLibCalls.cpp
llvm/test/Transforms/InferFunctionAttrs/annotate.ll
|