[PATCH] D117245: [MemoryBuiltins] [NFC] Remove unused overload of isAlignedAllocLikeFn
Bryce Wilson via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Jan 13 15:19:40 PST 2022
Bryce-MW created this revision.
Herald added a subscriber: hiraditya.
This revision was not accepted when it landed; it landed in state "Draft".
This revision was automatically updated to reflect the committed changes.
Closed by commit rG68874d8b5f78: [MemoryBuiltins] [NFC] Remove unused overload of isAlignedAllocLikeFn (authored by Bryce-MW).
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D117245
Files:
llvm/include/llvm/Analysis/MemoryBuiltins.h
llvm/lib/Analysis/MemoryBuiltins.cpp
Index: llvm/lib/Analysis/MemoryBuiltins.cpp
===================================================================
--- llvm/lib/Analysis/MemoryBuiltins.cpp
+++ llvm/lib/Analysis/MemoryBuiltins.cpp
@@ -251,11 +251,6 @@
return getAllocationData(V, AlignedAllocLike, TLI)
.hasValue();
}
-bool llvm::isAlignedAllocLikeFn(
- const Value *V, function_ref<const TargetLibraryInfo &(Function &)> GetTLI) {
- return getAllocationData(V, AlignedAllocLike, GetTLI)
- .hasValue();
-}
/// Tests if a value is a call or invoke to a library function that
/// allocates zero-filled memory (such as calloc).
Index: llvm/include/llvm/Analysis/MemoryBuiltins.h
===================================================================
--- llvm/include/llvm/Analysis/MemoryBuiltins.h
+++ llvm/include/llvm/Analysis/MemoryBuiltins.h
@@ -65,8 +65,6 @@
/// Tests if a value is a call or invoke to a library function that
/// allocates uninitialized memory with alignment (such as aligned_alloc).
bool isAlignedAllocLikeFn(const Value *V, const TargetLibraryInfo *TLI);
-bool isAlignedAllocLikeFn(
- const Value *V, function_ref<const TargetLibraryInfo &(Function &)> GetTLI);
/// Tests if a value is a call or invoke to a library function that
/// allocates zero-filled memory (such as calloc).
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D117245.399809.patch
Type: text/x-patch
Size: 1297 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220113/f10984ba/attachment.bin>
More information about the llvm-commits
mailing list