]> granicus.if.org Git - clang/commit
[NewPM] Port HWASan and Kernel HWASan
authorLeonard Chan <leonardchan@google.com>
Tue, 14 May 2019 21:17:21 +0000 (21:17 +0000)
committerLeonard Chan <leonardchan@google.com>
Tue, 14 May 2019 21:17:21 +0000 (21:17 +0000)
commit2c07cb571f9a6d046084a96046676c946725a8fe
treea28557f8313fd35a319e6e01d65ca717514317bf
parentf77f47729a92f6f998fc969ce46fdb8fab547d71
[NewPM] Port HWASan and Kernel HWASan

Port hardware assisted address sanitizer to new PM following the same guidelines as msan and tsan.

Changes:
- Separate HWAddressSanitizer into a pass class and a sanitizer class.
- Create new PM wrapper pass for the sanitizer class.
- Use the getOrINsert pattern for some module level initialization declarations.
- Also enable kernel-kwasan in new PM
- Update llvm tests and add clang test.

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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@360707 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/BackendUtil.cpp
test/CodeGen/hwasan-new-pm.c [new file with mode: 0644]