[PATCH] D115003: [funcattrs] Infer writeonly argument attribute [part 2]
Philip Reames via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Dec 2 15:05:46 PST 2021
reames created this revision.
reames added reviewers: jdoerfert, anna, aeubanks, modimo, sstefan1.
Herald added subscribers: jeroen.dobbelaere, ormris, kerbowa, bollu, hiraditya, sbc100, nhaehnle, jvesely, mcrosier.
reames requested review of this revision.
Herald added subscribers: cfe-commits, aheejin.
Herald added projects: clang, LLVM.
This builds on the code from D114963 <https://reviews.llvm.org/D114963>, and extends it to handle calls both direct and indirect. I ended up deciding to do this in the current code structure (before a cleanup) so that the cornercases were a bit more obvious.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D115003
Files:
clang/test/CodeGen/arm-vfp16-arguments.c
clang/test/CodeGenCXX/wasm-args-returns.cpp
clang/test/CodeGenOpenCL/amdgpu-abi-struct-coerce.cl
llvm/lib/Transforms/IPO/FunctionAttrs.cpp
llvm/test/Analysis/TypeBasedAliasAnalysis/functionattrs.ll
llvm/test/Other/cgscc-devirt-iteration.ll
llvm/test/Transforms/FunctionAttrs/nocapture.ll
llvm/test/Transforms/FunctionAttrs/norecurse.ll
llvm/test/Transforms/FunctionAttrs/writeonly.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D115003.391474.patch
Type: text/x-patch
Size: 8599 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20211202/559202ba/attachment.bin>
More information about the cfe-commits
mailing list