[PATCH] D26230: [AddressSanitizer] Add support for (constant-)masked loads and stores.

Filipe Cabecinhas via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 1 19:36:43 PDT 2016


filcab created this revision.
filcab added reviewers: RKSimon, dvyukov, kcc, zaks.anna.
filcab added a subscriber: llvm-commits.

This patch adds support for instrumenting masked loads and stores under
ASan, if they have a constant mask.

isInterestingMemoryAccess now supports returning a mask to be applied to
the loads, and instrumentMop will use it to generate additional checks.

Added tests for v4i32 v8i32, and v4p0i32 (~v4i64) for both loads and
stores (as well as a test to verify we don't add checks to non-constant
masks).


https://reviews.llvm.org/D26230

Files:
  lib/Transforms/Instrumentation/AddressSanitizer.cpp
  test/Instrumentation/AddressSanitizer/asan-masked-load-store.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D26230.76669.patch
Type: text/x-patch
Size: 14056 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20161102/b897f83a/attachment.bin>


More information about the llvm-commits mailing list