Update FunctionAttrs to use FunctionModRefBehavior instead
MemoryAccessKind.
This allows for adding support for inferring argmemonly and others,
see D121415.
Paths
| Differential D121460
[FunctionAttrs] Replace MemoryAccessKind with FMRB. ClosedPublic Authored by fhahn on Mar 11 2022, 6:07 AM.
Details Summary Update FunctionAttrs to use FunctionModRefBehavior instead This allows for adding support for inferring argmemonly and others,
Diff Detail
Event TimelineComment Actions Hm, could we maybe replace MemoryAccessKind with FunctionModRefBehavior? That's basically ArgMemOnly + InaccessibleMemOnly + ModRef, which seems like where we'll want to end up here as well? Comment Actions
Yeah that seems to work and overall less work. I updated this patch to replace MemoryAccessKind with FunctionModRefBehavior. fhahn retitled this revision from [FunctionAttrs] Turn MemoryAccessKind into class (NFC). to [FunctionAttrs] Replace MemoryAccessKind with FMRB..Mar 11 2022, 8:46 AM Comment Actions It looks like some changes to support argmemonly made into this patch. If you want to remove those, and land the refactoring, LGTM to that. Comment Actions
Oh yes, I removed those and the stale cstdint include. This revision is now accepted and ready to land.Mar 11 2022, 12:34 PM This revision was landed with ongoing or failed builds.Mar 15 2022, 12:36 PM Closed by commit rG014f5bcf7a8b: [FunctionAttrs] Replace MemoryAccessKind with FMRB. (authored by fhahn). · Explain Why This revision was automatically updated to reflect the committed changes. fhahn marked 3 inline comments as done.
Revision Contents
Diff 415545 llvm/include/llvm/Transforms/IPO/FunctionAttrs.h
llvm/lib/Transforms/IPO/FunctionAttrs.cpp
llvm/lib/Transforms/IPO/ThinLTOBitcodeWriter.cpp
llvm/lib/Transforms/IPO/WholeProgramDevirt.cpp
|
Why?