[PATCH] D121272: [CaptureTracking][NFCI] Expose capture tracking logic

Johannes Doerfert via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Mar 8 21:55:42 PST 2022


jdoerfert created this revision.
jdoerfert added reviewers: nikic, fhahn.
Herald added subscribers: uenoku, bollu, hiraditya.
Herald added a reviewer: uenoku.
Herald added a project: All.
jdoerfert requested review of this revision.
Herald added a reviewer: sstefan1.
Herald added a reviewer: baziotis.
Herald added a project: LLVM.

The logic exposed by this patch via `llvm::DetermineUseCaptureKind` was
part of `llvm::PointerMayBeCaptured`. In the Attributor we want to keep
track of the work list items but still reuse the logic if a use might
capture a value. A follow up for the Attributor removes ~100 lines of
code and complexity while making future handling of simplified values
possible.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D121272

Files:
  llvm/include/llvm/Analysis/CaptureTracking.h
  llvm/lib/Analysis/CaptureTracking.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D121272.414009.patch
Type: text/x-patch
Size: 13908 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220309/1c889f19/attachment.bin>


More information about the llvm-commits mailing list