[PATCH] D46451: [asan] Add instrumentation support for Myriad

Walter Lee via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri May 4 13:42:02 PDT 2018


waltl created this revision.
waltl added reviewers: vitalybuka, eugenis, alekseyshl.
Herald added subscribers: fedor.sergeev, hiraditya.

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.


Repository:
  rL LLVM

https://reviews.llvm.org/D46451

Files:
  llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp
  llvm/test/Instrumentation/AddressSanitizer/basic-myriad.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D46451.145267.patch
Type: text/x-patch
Size: 6552 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180504/c48a13d2/attachment.bin>


More information about the llvm-commits mailing list