[HWASan][NFC] Introduce constants for tag bits and masks.
authorMatt Morehouse <mascasa@google.com>
Mon, 22 Mar 2021 19:29:08 +0000 (12:29 -0700)
committerMatt Morehouse <mascasa@google.com>
Mon, 22 Mar 2021 19:32:29 +0000 (12:32 -0700)
commitfe5f66d925c31dd8e4d6e6692284a5b28208bd28
tree57d23874d61973d4d4f7ca8dd630ffbbc43d8c65
parent3e32e8c588e911f1fdf2589b01855a1cce3bda92
[HWASan][NFC] Introduce constants for tag bits and masks.

x86_64 aliasing mode will use fewer than 8 bits for tags, so refactor
existing code to remove hard-coded 0xff and 8 values.

Reviewed By: vitalybuka, eugenis

Differential Revision: https://reviews.llvm.org/D98072
compiler-rt/lib/hwasan/hwasan.h
compiler-rt/lib/hwasan/hwasan_thread.cpp
compiler-rt/lib/hwasan/hwasan_thread.h