Introduce two command-line flags for the instrumentation pass to control whether...
authorPeter Collingbourne <peter@pcc.me.uk>
Thu, 21 Nov 2013 23:20:54 +0000 (23:20 +0000)
committerPeter Collingbourne <peter@pcc.me.uk>
Thu, 21 Nov 2013 23:20:54 +0000 (23:20 +0000)
commit934d1f83aecf8f01646f4b2a09167309a4c1bb8d
treecea4255ce4407d28e7730a269a982fdb48d5d8f8
parentcd5978a7f58194aced7dd4884953d0651ca90314
Introduce two command-line flags for the instrumentation pass to control whether the labels of pointers should be ignored in load and store instructions

The new command line flags are -dfsan-ignore-pointer-label-on-store and -dfsan-ignore-pointer-label-on-load. Their default value matches the current labelling scheme.

Additionally, the function __dfsan_union_load is marked as readonly.

Patch by Lorenzo Martignoni!

Differential Revision: http://llvm-reviews.chandlerc.com/D2187

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@195382 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Instrumentation/DataFlowSanitizer.cpp
test/Instrumentation/DataFlowSanitizer/load.ll
test/Instrumentation/DataFlowSanitizer/store.ll