1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-20 03:23:01 +02:00
llvm-mirror/lib/Transforms/Instrumentation
Alexander Potapenko bf022826bd [MSan] introduce getShadowOriginPtr(). NFC.
This patch introduces getShadowOriginPtr(), a method that obtains both the shadow and origin pointers for an address as a Value pair.
The existing callers of getShadowPtr() and getOriginPtr() are updated to use getShadowOriginPtr().

The rationale for this change is to simplify KMSAN instrumentation implementation.
In KMSAN origins tracking is always enabled, and there's no direct mapping between the app memory and the shadow/origin pages.
Both the shadow and the origin pointer for a given address are obtained by calling a single runtime hook from the instrumentation,
therefore it's easier to work with those pointers together.

Reviewed at https://reviews.llvm.org/D40835.

llvm-svn: 320373
2017-12-11 15:05:22 +00:00
..
AddressSanitizer.cpp Generalize llvm::replaceDbgDeclare and actually support the use-case that 2017-12-08 21:58:18 +00:00
BoundsChecking.cpp [PM] Port BoundsChecking to the new PM. 2017-11-14 01:30:04 +00:00
CFGMST.h Revert r320104: infinite loop profiling bug fix 2017-12-08 19:38:07 +00:00
CMakeLists.txt Hardware-assisted AddressSanitizer (llvm part). 2017-12-09 00:21:41 +00:00
DataFlowSanitizer.cpp [Transforms] Fix some Clang-tidy modernize and Include What You Use warnings; other minor fixes (NFC). 2017-10-21 00:57:46 +00:00
EfficiencySanitizer.cpp Sort the remaining #include lines in include/... and lib/.... 2017-06-06 11:49:48 +00:00
GCOVProfiling.cpp Disable gcov instrumentation of functions using funclet-based exception handling 2017-10-13 13:49:15 +00:00
HWAddressSanitizer.cpp Hardware-assisted AddressSanitizer (llvm part). 2017-12-09 00:21:41 +00:00
IndirectCallPromotion.cpp [PGO] Make indirect call promotion a utility 2017-12-06 21:22:54 +00:00
InstrProfiling.cpp [PGO] Skip counter promotion for infinite loops 2017-11-30 19:16:25 +00:00
Instrumentation.cpp Hardware-assisted AddressSanitizer (llvm part). 2017-12-09 00:21:41 +00:00
LLVMBuild.txt [PGO] Resubmit "MST based PGO instrumentation infrastructure" (r254021) 2015-12-09 18:08:16 +00:00
MaximumSpanningTree.h Remove unneeded use of #undef DEBUG_TYPE. NFC 2017-07-12 20:49:21 +00:00
MemorySanitizer.cpp [MSan] introduce getShadowOriginPtr(). NFC. 2017-12-11 15:05:22 +00:00
PGOInstrumentation.cpp [PGO] change arg type to uint64_t to match member field type 2017-12-10 07:39:53 +00:00
PGOMemOPSizeOpt.cpp [NFC] Convert OptimizationRemarkEmitter old emit() calls to new closure 2017-10-11 17:12:59 +00:00
SanitizerCoverage.cpp [sanitizer-coverage] call appendToUsed once per module, not once per function (which is too slow) 2017-09-09 05:30:13 +00:00
ThreadSanitizer.cpp Enhance synchscope representation 2017-07-11 22:23:00 +00:00