OSDN Git Service

[msan] Instrument x86 BMI intrinsics.
authorEvgeniy Stepanov <eugeni.stepanov@gmail.com>
Mon, 4 Mar 2019 22:58:20 +0000 (22:58 +0000)
committerEvgeniy Stepanov <eugeni.stepanov@gmail.com>
Mon, 4 Mar 2019 22:58:20 +0000 (22:58 +0000)
commit2b856d4d48daa8be25bad2b9adca0fd38d3cdaa8
tree8fe1fa6ff6c086753ef7c6724ce49e71ff7fc9c9
parent6005be2936a5f9f0dbfab13c7a5e56db0c02a90b
[msan] Instrument x86 BMI intrinsics.

Summary:
They simply shuffle bits. MSan needs to do the same with shadow bits,
after making sure that the shuffle mask is fully initialized.

Reviewers: pcc, vitalybuka

Subscribers: hiraditya, #sanitizers, llvm-commits

Tags: #sanitizers, #llvm

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@355348 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Instrumentation/MemorySanitizer.cpp
test/Instrumentation/MemorySanitizer/bmi.ll [new file with mode: 0644]