[PATCH] D125038: [Instrumentation] Share InstrumentationIRBuilder between TSan and SanCov

Marco Elver via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu May 5 13:12:38 PDT 2022


melver created this revision.
melver added reviewers: nickdesaulniers, dblaikie.
Herald added a subscriber: hiraditya.
Herald added a project: All.
melver requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

Factor our InstrumentationIRBuilder and share it between ThreadSanitizer
and SanitizerCoverage. Simplify its usage at the same time (use function
of passed Instruction or BasicBlock).

This class may be used in other instrumentation passes in future.

NFCI.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D125038

Files:
  llvm/include/llvm/Transforms/Instrumentation.h
  llvm/lib/Transforms/Instrumentation/SanitizerCoverage.cpp
  llvm/lib/Transforms/Instrumentation/ThreadSanitizer.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D125038.427422.patch
Type: text/x-patch
Size: 7707 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220505/64a2f083/attachment.bin>


More information about the llvm-commits mailing list