[PATCH] D105007: [NewPM] Update some sanitizer pass names in the PassRegistry
Bjorn Pettersson via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Jun 28 02:26:45 PDT 2021
bjope created this revision.
bjope added reviewers: phosek, aeubanks.
Herald added a subscriber: hiraditya.
bjope requested review of this revision.
Herald added a project: LLVM.
khwasan is now called hwasan<kernal;recover> to indicate that
it is a specialized version of hwasan (the pass name to use in
-debug-only, -print-after etc is hwasan).
kasan is now called asan<kernel> to indicate that
it is a specialized version of asan.
kmsan was removed. There is already a parameterized version of
msan (msan<kernel>) that can be used instead.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D105007
Files:
llvm/lib/Passes/PassRegistry.def
Index: llvm/lib/Passes/PassRegistry.def
===================================================================
--- llvm/lib/Passes/PassRegistry.def
+++ llvm/lib/Passes/PassRegistry.def
@@ -61,7 +61,7 @@
MODULE_PASS("globalsplit", GlobalSplitPass())
MODULE_PASS("hotcoldsplit", HotColdSplittingPass())
MODULE_PASS("hwasan", HWAddressSanitizerPass(false, false))
-MODULE_PASS("khwasan", HWAddressSanitizerPass(true, true))
+MODULE_PASS("hwasan<kernal;recover>", HWAddressSanitizerPass(true, true))
MODULE_PASS("inferattrs", InferFunctionAttrsPass())
MODULE_PASS("inliner-wrapper", ModuleInlinerWrapperPass())
MODULE_PASS("inliner-wrapper-no-mandatory-first", ModuleInlinerWrapperPass(
@@ -323,9 +323,8 @@
FUNCTION_PASS("view-cfg-only", CFGOnlyViewerPass())
FUNCTION_PASS("transform-warning", WarnMissedTransformationsPass())
FUNCTION_PASS("asan", AddressSanitizerPass(false, false, false))
-FUNCTION_PASS("kasan", AddressSanitizerPass(true, false, false))
+FUNCTION_PASS("asan<kernel>", AddressSanitizerPass(true, false, false))
FUNCTION_PASS("msan", MemorySanitizerPass({}))
-FUNCTION_PASS("kmsan", MemorySanitizerPass({0, false, /*Kernel=*/true}))
FUNCTION_PASS("tsan", ThreadSanitizerPass())
FUNCTION_PASS("memprof", MemProfilerPass())
#undef FUNCTION_PASS
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D105007.354817.patch
Type: text/x-patch
Size: 1268 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210628/115d399d/attachment.bin>
More information about the llvm-commits
mailing list