This is an archive of the discontinued LLVM Phabricator instance.

[IR] Adds Instruction::setNoSanitizeMetadata()
ClosedPublic

Authored by Enna1 on May 15 2023, 8:28 PM.

Details

Summary

This patch adds a new method setNoSanitizeMetadata() for Instruction, and use it in SanitizerMetadata and SanitizerCoverage.

Diff Detail

Event Timeline

Enna1 created this revision.May 15 2023, 8:28 PM
Herald added a project: Restricted Project. · View Herald TranscriptMay 15 2023, 8:28 PM
Herald added a subscriber: hiraditya. · View Herald Transcript
Enna1 edited the summary of this revision. (Show Details)May 15 2023, 8:30 PM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptMay 15 2023, 11:10 PM
clang/lib/CodeGen/SanitizerMetadata.cpp
103

How about deleting this definition and updating the two call sites in:

  1. clang/lib/CodeGen/ItaniumCXXABI.cpp
  2. clang/lib/CodeGen/CodeGenFunction.cpp
Enna1 updated this revision to Diff 522884.May 16 2023, 7:44 PM

address review comments

Enna1 marked an inline comment as done.May 16 2023, 7:44 PM
MaskRay accepted this revision.May 16 2023, 9:04 PM

LGTM.

llvm/include/llvm/IR/Instruction.h
353

Set.

Imperative sentences are more common in comments. Ignore Sets above that's inconsistent with other places in this file.

This revision is now accepted and ready to land.May 16 2023, 9:04 PM
nickdesaulniers accepted this revision.May 17 2023, 9:43 AM
This revision was automatically updated to reflect the committed changes.