HomePhabricator

[NewPM] Port Sancov

Authored by leonardchan on Jul 11 2019, 3:35 PM.

Description

[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

Details

Committed
leonardchanJul 11 2019, 3:35 PM
Differential Revision
D62888: [NewPM] Port Sancov
Parents
rG28550c868045: [AMDGPU] Fixed asan error with agpr spilling
Branches
Unknown
Tags
Unknown
Reverted By
rGbb147aabc68c: Revert "[NewPM] Port Sancov"