[PATCH] D77244: sancov/inline-bool-flag feature + tests + docs.
Pratyai Mazumder via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Apr 1 14:38:24 PDT 2020
pratyai created this revision.
pratyai added reviewers: kcc, vitalybuka.
Herald added subscribers: Sanitizers, cfe-commits, jfb, hiraditya.
Herald added projects: clang, Sanitizers.
pratyai updated this revision to Diff 254312.
pratyai added a comment.
Removed some unintentional diffs.
Removed some unintentional diffs from clang/lib/Frontend/CompilerInvocation.cpp.
New SanitizerCoverage feature `inline-bool-flag` which inserts an atomic store of `1` to a boolean (which is an 8bit integer in practice) flag on every instrumented edge.
Implementation-wise it's very similar to `inline-8bit-counters` features. So, much of wiring and test just follows the same pattern.
Tested with `cmake --build . -- check-llvm`.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D77244
Files:
clang/docs/SanitizerCoverage.rst
clang/include/clang/Basic/CodeGenOptions.def
clang/include/clang/Driver/CC1Options.td
clang/include/clang/Driver/Options.td
clang/lib/CodeGen/BackendUtil.cpp
clang/lib/Driver/SanitizerArgs.cpp
clang/lib/Frontend/CompilerInvocation.cpp
clang/test/Driver/autocomplete.c
clang/test/Driver/fsanitize-coverage.c
compiler-rt/test/sanitizer_common/TestCases/sanitizer_coverage_inline_bool_flag.cpp
llvm/include/llvm/Transforms/Instrumentation.h
llvm/lib/Transforms/Instrumentation/SanitizerCoverage.cpp
llvm/test/Instrumentation/SanitizerCoverage/coff-pc-table-inline-bool-flag.ll
llvm/test/Instrumentation/SanitizerCoverage/inline-bool-flag.ll
llvm/test/Instrumentation/SanitizerCoverage/pc-table.ll
llvm/test/Instrumentation/SanitizerCoverage/trace-pc-guard-inline-bool-flag.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D77244.254312.patch
Type: text/x-patch
Size: 30221 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20200401/92cb882f/attachment-0001.bin>
More information about the cfe-commits
mailing list