[PATCH] D62687: [Attributor] Deduce "nofree" function attribute
Hideto Ueno via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu May 30 09:17:49 PDT 2019
uenoku created this revision.
Herald added subscribers: llvm-commits, hiraditya.
Herald added a project: LLVM.
Deduce "nofree" function attribute.
There are a few things to consider.
1. To use llvm::isFreeCall, I need TargetLibraryInfo(TLI) in AANoFreeFunction. For now, I lift TLI to AANoFreeFunction constructor from AttributorPass::run. Therefore, I changed some interface. I'm not sure this is appropriate. Perhaps it is better that Attributor have TLI as a member.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D62687
Files:
llvm/include/llvm/Analysis/MemoryBuiltins.h
llvm/include/llvm/IR/Attributes.td
llvm/include/llvm/Transforms/IPO/Attributor.h
llvm/lib/Analysis/MemoryBuiltins.cpp
llvm/lib/Transforms/IPO/Attributor.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D62687.202201.patch
Type: text/x-patch
Size: 11107 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190530/7b4878bc/attachment-0001.bin>
More information about the llvm-commits
mailing list