[hwasan] Add a basic API.
authorEvgeniy Stepanov <eugeni.stepanov@gmail.com>
Wed, 15 Aug 2018 00:39:35 +0000 (00:39 +0000)
committerEvgeniy Stepanov <eugeni.stepanov@gmail.com>
Wed, 15 Aug 2018 00:39:35 +0000 (00:39 +0000)
commita265a13bbea0ecc80312744c6c57c2edda7ac524
tree0a350aa92ae28b0082cac1843652e258528a0cab
parent3ccf14eb8e17aa166a456f6fec527f4fa97ecc71
[hwasan] Add a basic API.

Summary:
Add user tag manipulation functions:
  __hwasan_tag_memory
  __hwasan_tag_pointer
  __hwasan_print_shadow (very simple and ugly, for now)

Reviewers: vitalybuka, kcc

Subscribers: kubamracek, hiraditya, llvm-commits

Differential Revision: https://reviews.llvm.org/D50746

llvm-svn: 339746
compiler-rt/include/sanitizer/hwasan_interface.h
compiler-rt/lib/hwasan/hwasan.cc
compiler-rt/lib/hwasan/hwasan_interface_internal.h
compiler-rt/test/hwasan/TestCases/hwasan-print-shadow.cc [new file with mode: 0644]
llvm/lib/Transforms/Instrumentation/HWAddressSanitizer.cpp