[NewPM][MSan] Add Options Handling
authorPhilip Pfaffe <philip.pfaffe@gmail.com>
Mon, 4 Feb 2019 21:02:49 +0000 (21:02 +0000)
committerPhilip Pfaffe <philip.pfaffe@gmail.com>
Mon, 4 Feb 2019 21:02:49 +0000 (21:02 +0000)
commit0ee6a933cec492b334f357b97402e97b612dd1ff
tree3449a2dfd88e4b4f77913cbf499375e3ae775cae
parent90d856cd5f4c4bfe415105f6bfc66f05457a334d
[NewPM][MSan] Add Options Handling

Summary: This patch enables passing options to msan via the passes pipeline, e.e., -passes=msan<recover;kernel;track-origins=4>.

Reviewers: chandlerc, fedor.sergeev, leonardchan

Subscribers: hiraditya, bollu, llvm-commits

Tags: #llvm

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

llvm-svn: 353090
clang/lib/CodeGen/BackendUtil.cpp
llvm/include/llvm/Transforms/Instrumentation/MemorySanitizer.h
llvm/lib/Passes/PassBuilder.cpp
llvm/lib/Passes/PassRegistry.def
llvm/lib/Transforms/Instrumentation/MemorySanitizer.cpp
llvm/test/Instrumentation/MemorySanitizer/X86/vararg_call.ll
llvm/test/Instrumentation/MemorySanitizer/alloca.ll