[PATCH] D143664: [SanitizerBinaryMetadata] Support ignore list

Marco Elver via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Feb 9 10:03:43 PST 2023


melver created this revision.
melver added reviewers: dvyukov, vitalybuka.
Herald added subscribers: Enna1, ormris, hiraditya.
Herald added a project: All.
melver requested review of this revision.
Herald added subscribers: llvm-commits, cfe-commits, MaskRay.
Herald added projects: clang, LLVM.

For large projects it will be required to opt out entire subdirectories.
In the absence of fine-grained control over the flags passed via the
build system, introduce -fexperimental-sanitize-metadata-ignorelist=.

The format is identical to other sanitizer ignore lists, and its effect
will be to simply not instrument either functions or entire modules
based on the rules in the ignore list file.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D143664

Files:
  clang/include/clang/Basic/CodeGenOptions.h
  clang/include/clang/Basic/DiagnosticDriverKinds.td
  clang/include/clang/Driver/Options.td
  clang/include/clang/Driver/SanitizerArgs.h
  clang/lib/CodeGen/BackendUtil.cpp
  clang/lib/Driver/SanitizerArgs.cpp
  clang/test/CodeGen/sanitize-metadata-ignorelist.c
  clang/test/Driver/fsanitize-metadata-ignorelist.c
  llvm/include/llvm/Transforms/Instrumentation/SanitizerBinaryMetadata.h
  llvm/lib/Transforms/Instrumentation/SanitizerBinaryMetadata.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D143664.496165.patch
Type: text/x-patch
Size: 12309 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230209/a80983a3/attachment.bin>


More information about the cfe-commits mailing list