[PATCH] D75312: [DFSan] Add flag to insert event callbacks.
Matt Morehouse via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Feb 27 17:14:39 PST 2020
morehouse updated this revision to Diff 247140.
morehouse added a comment.
- Add comment explaining the new flag.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D75312/new/
https://reviews.llvm.org/D75312
Files:
llvm/lib/Transforms/Instrumentation/DataFlowSanitizer.cpp
Index: llvm/lib/Transforms/Instrumentation/DataFlowSanitizer.cpp
===================================================================
--- llvm/lib/Transforms/Instrumentation/DataFlowSanitizer.cpp
+++ llvm/lib/Transforms/Instrumentation/DataFlowSanitizer.cpp
@@ -162,6 +162,12 @@
"load or return with a nonzero label"),
cl::Hidden);
+// Experimental feature that inserts callbacks for certain data events.
+// Currently callbacks are only inserted for stores.
+//
+// If this flag is set to true, the user must provide definitions for the
+// following callback functions:
+// void __dfsan_store_callback(dfsan_label Label);
static cl::opt<bool> ClEventCallbacks(
"dfsan-event-callbacks",
cl::desc("Insert calls to __dfsan_*_callback functions on data events."),
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D75312.247140.patch
Type: text/x-patch
Size: 795 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200228/5b0e85d1/attachment.bin>
More information about the llvm-commits
mailing list