summaryrefslogtreecommitdiffstats
path: root/llvm/test/Instrumentation/SanitizerCoverage/chains.ll
diff options
context:
space:
mode:
authorLeonard Chan <leonardchan@google.com>2019-07-25 20:53:15 +0000
committerLeonard Chan <leonardchan@google.com>2019-07-25 20:53:15 +0000
commit007f674c6a4e47cf3a290c0e2d5ba96483d0f8dc (patch)
tree0c1a41c709a6ca7d1cdc5d15b142a56bb614227f /llvm/test/Instrumentation/SanitizerCoverage/chains.ll
parent9294c87282c6cf93ffd522a5b5ff82d9c0d76205 (diff)
downloadbcm5719-llvm-007f674c6a4e47cf3a290c0e2d5ba96483d0f8dc.tar.gz
bcm5719-llvm-007f674c6a4e47cf3a290c0e2d5ba96483d0f8dc.zip
Reland the "[NewPM] Port Sancov" patch from rL365838. No functional
changes were made to the patch since then. -------- [NewPM] Port Sancov This patch contains a port of SanitizerCoverage to the new pass manager. This one's a bit hefty. Changes: - Split SanitizerCoverageModule into 2 SanitizerCoverage for passing over functions and ModuleSanitizerCoverage for passing over modules. - ModuleSanitizerCoverage exists for adding 2 module level calls to initialization functions but only if there's a function that was instrumented by sancov. - Added legacy and new PM wrapper classes that own instances of the 2 new classes. - Update llvm tests and add clang tests. llvm-svn: 367053
Diffstat (limited to 'llvm/test/Instrumentation/SanitizerCoverage/chains.ll')
-rw-r--r--llvm/test/Instrumentation/SanitizerCoverage/chains.ll1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/test/Instrumentation/SanitizerCoverage/chains.ll b/llvm/test/Instrumentation/SanitizerCoverage/chains.ll
index 86b109165ee..7618267069a 100644
--- a/llvm/test/Instrumentation/SanitizerCoverage/chains.ll
+++ b/llvm/test/Instrumentation/SanitizerCoverage/chains.ll
@@ -1,4 +1,5 @@
; RUN: opt < %s -sancov -sanitizer-coverage-level=4 -sanitizer-coverage-trace-pc -sanitizer-coverage-prune-blocks=1 -S | FileCheck %s
+; RUN: opt < %s -passes='module(sancov-module),function(sancov-func)' -sanitizer-coverage-level=4 -sanitizer-coverage-trace-pc -sanitizer-coverage-prune-blocks=1 -S | FileCheck %s
define i32 @blah(i32) #0 {
%2 = icmp sgt i32 %0, 1
OpenPOWER on IntegriCloud