summaryrefslogtreecommitdiffstats
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorWalter Lee <waltl@google.com>2018-05-18 04:10:38 +0000
committerWalter Lee <waltl@google.com>2018-05-18 04:10:38 +0000
commitcdbb207bd1cdca701c9564a7a033af128c78330b (patch)
tree26211e9b2e506c180106118b73f18774e6842327 /clang/lib/Frontend/CompilerInvocation.cpp
parente35f57f023fc76df8618a77f205caf8d71e21cd7 (diff)
downloadbcm5719-llvm-cdbb207bd1cdca701c9564a7a033af128c78330b.tar.gz
bcm5719-llvm-cdbb207bd1cdca701c9564a7a033af128c78330b.zip
[asan] Add instrumentation support for Myriad
1. Define Myriad-specific ASan constants. 2. Add code to generate an outer loop that checks that the address is in DRAM range, and strip the cache bit from the address. The former is required because Myriad has no memory protection, and it is up to the instrumentation to range-check before using it to index into the shadow memory. 3. Do not add an unreachable instruction after the error reporting function; on Myriad such function may return if the run-time has not been initialized. 4. Add a test. Differential Revision: https://reviews.llvm.org/D46451 llvm-svn: 332692
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud