[PATCH] D50442: [MSan] add KMSAN support to Clang driver

Alexander Potapenko via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 8 06:00:14 PDT 2018


glider created this revision.
glider added reviewers: eugenis, kcc, dvyukov.
Herald added subscribers: llvm-commits, cryptoad.

Boilerplate code for using KMSAN instrumentation in Clang.

We add a new command line flag, `-fsanitize=kernel-memory`, with a corresponding `SanitizerKind::KernelMemory`, which, along with `SanitizerKind::Memory`, maps to the `memory_sanitizer` feature.
KMSAN is only supported on x86_64 Linux.
It's incompatible with other sanitizers, but supports code coverage instrumentation.

This revision depends on https://reviews.llvm.org/D34451


Repository:
  rL LLVM

https://reviews.llvm.org/D50442

Files:
  include/clang/Basic/Features.def
  include/clang/Basic/Sanitizers.def
  lib/CodeGen/BackendUtil.cpp
  lib/CodeGen/CGDeclCXX.cpp
  lib/CodeGen/CodeGenFunction.cpp
  lib/Driver/SanitizerArgs.cpp
  lib/Driver/ToolChains/Linux.cpp
  lib/Frontend/CompilerInvocation.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D50442.159694.patch
Type: text/x-patch
Size: 7625 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180808/3a03f3f9/attachment.bin>


More information about the llvm-commits mailing list