summaryrefslogtreecommitdiffstats
path: root/llvm/test/Instrumentation/SanitizerCoverage/const-cmp-tracing.ll
diff options
context:
space:
mode:
authorLeonard Chan <leonardchan@google.com>2019-07-11 22:35:40 +0000
committerLeonard Chan <leonardchan@google.com>2019-07-11 22:35:40 +0000
commit5652f35817f07b16f8b3856d594cc42f4d7ee29c (patch)
tree2d2827d336ffa7ca7db5066ad5302252da1ac20e /llvm/test/Instrumentation/SanitizerCoverage/const-cmp-tracing.ll
parent28550c8680453b81fa00a3b221f003ac467d15c3 (diff)
downloadbcm5719-llvm-5652f35817f07b16f8b3856d594cc42f4d7ee29c.tar.gz
bcm5719-llvm-5652f35817f07b16f8b3856d594cc42f4d7ee29c.zip
[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. Differential Revision: https://reviews.llvm.org/D62888 llvm-svn: 365838
Diffstat (limited to 'llvm/test/Instrumentation/SanitizerCoverage/const-cmp-tracing.ll')
-rw-r--r--llvm/test/Instrumentation/SanitizerCoverage/const-cmp-tracing.ll1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/test/Instrumentation/SanitizerCoverage/const-cmp-tracing.ll b/llvm/test/Instrumentation/SanitizerCoverage/const-cmp-tracing.ll
index b61b4eef5df..0ee1a339ee5 100644
--- a/llvm/test/Instrumentation/SanitizerCoverage/const-cmp-tracing.ll
+++ b/llvm/test/Instrumentation/SanitizerCoverage/const-cmp-tracing.ll
@@ -1,5 +1,6 @@
; Test -sanitizer-coverage-trace-compares=1
; RUN: opt < %s -sancov -sanitizer-coverage-level=1 -sanitizer-coverage-trace-compares=1 -S | FileCheck %s
+; RUN: opt < %s -passes='module(sancov-module),function(sancov-func)' -sanitizer-coverage-level=1 -sanitizer-coverage-trace-compares=1 -S | FileCheck %s
target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64"
target triple = "x86_64-unknown-linux-gnu"
OpenPOWER on IntegriCloud