diff options
author | Leonard Chan <leonardchan@google.com> | 2019-07-11 22:35:40 +0000 |
---|---|---|
committer | Leonard Chan <leonardchan@google.com> | 2019-07-11 22:35:40 +0000 |
commit | 5652f35817f07b16f8b3856d594cc42f4d7ee29c (patch) | |
tree | 2d2827d336ffa7ca7db5066ad5302252da1ac20e /llvm/test/Instrumentation/SanitizerCoverage/tracing.ll | |
parent | 28550c8680453b81fa00a3b221f003ac467d15c3 (diff) | |
download | bcm5719-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/tracing.ll')
-rw-r--r-- | llvm/test/Instrumentation/SanitizerCoverage/tracing.ll | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/test/Instrumentation/SanitizerCoverage/tracing.ll b/llvm/test/Instrumentation/SanitizerCoverage/tracing.ll index 7bf8cf7e18e..c27fd0eac0b 100644 --- a/llvm/test/Instrumentation/SanitizerCoverage/tracing.ll +++ b/llvm/test/Instrumentation/SanitizerCoverage/tracing.ll @@ -3,6 +3,10 @@ ; RUN: opt < %s -sancov -sanitizer-coverage-level=3 -sanitizer-coverage-trace-pc-guard -S | FileCheck %s --check-prefix=CHECK_PC_GUARD ; RUN: opt < %s -sancov -sanitizer-coverage-level=3 -sanitizer-coverage-trace-pc-guard -S -mtriple=x86_64-apple-macosx | FileCheck %s --check-prefix=CHECK_PC_GUARD_DARWIN +; RUN: opt < %s -passes='module(sancov-module),function(sancov-func)' -sanitizer-coverage-level=3 -sanitizer-coverage-trace-pc -S | FileCheck %s --check-prefix=CHECK_PC +; RUN: opt < %s -passes='module(sancov-module),function(sancov-func)' -sanitizer-coverage-level=3 -sanitizer-coverage-trace-pc-guard -S | FileCheck %s --check-prefix=CHECK_PC_GUARD +; RUN: opt < %s -passes='module(sancov-module),function(sancov-func)' -sanitizer-coverage-level=3 -sanitizer-coverage-trace-pc-guard -S -mtriple=x86_64-apple-macosx | FileCheck %s --check-prefix=CHECK_PC_GUARD_DARWIN + 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" define void @foo(i32* %a) sanitize_address { |