[PATCH] D128142: [MemProf] Memprof profile matching and annotation

Mingjie Xu via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jul 1 03:05:41 PDT 2022


Enna1 added inline comments.


================
Comment at: llvm/lib/Analysis/MemoryBuiltins.cpp:288-290
+bool llvm::isNewLikeFn(const Value *V, const TargetLibraryInfo *TLI) {
+  return getAllocationData(V, OpNewLike, TLI).hasValue();
+}
----------------
nit: place the definition of `llvm::isNewLikeFn` just after `llvm::isAllocationFn(const Value *V, function_ref<const TargetLibraryInfo &(Function &)> GetTLI)` ? 



Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D128142/new/

https://reviews.llvm.org/D128142



More information about the llvm-commits mailing list