This is an archive of the discontinued LLVM Phabricator instance.

[asan] Add support for disable_sanitizer_instrumentation attribute
ClosedPublic

Authored by glider on Feb 17 2022, 6:55 AM.

Details

Summary

For ASan this will effectively serve as a synonym for
attribute((no_sanitize("address"))).

Adding the disable_sanitizer_instrumentation to functions will drop the
sanitize_XXX attributes on the IR level.

This is the third reland of https://reviews.llvm.org/D114421.
Now that TSan test is fixed (https://reviews.llvm.org/D120050) there
should be no deadlocks.

Diff Detail

Event Timeline

glider created this revision.Feb 17 2022, 6:55 AM
glider requested review of this revision.Feb 17 2022, 6:55 AM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptFeb 17 2022, 6:55 AM
This revision was not accepted when it landed; it landed in state Needs Review.Feb 18 2022, 12:52 AM
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.