This is an archive of the discontinued LLVM Phabricator instance.

[IR] Add interface to remove a CallBase string function attribute
ClosedPublic

Authored by tejohnson on Apr 25 2023, 2:13 PM.

Details

Summary

Adds an interface to remove a string function attribute attached to a
CallBase, and a corresponding unittest.

This was extracted from D141077, and will be used by a follow on patch
that removes memprof attributes when needed.

Diff Detail

Event Timeline

tejohnson created this revision.Apr 25 2023, 2:13 PM
Herald added a project: Restricted Project. · View Herald TranscriptApr 25 2023, 2:13 PM
tejohnson requested review of this revision.Apr 25 2023, 2:13 PM
Herald added a project: Restricted Project. · View Herald TranscriptApr 25 2023, 2:13 PM
snehasish accepted this revision.Apr 25 2023, 2:15 PM

lgtm

llvm/unittests/IR/InstructionsTest.cpp
107

ASSERT_TRUE since it doesn't make sense to continue if we fail here.

This revision is now accepted and ready to land.Apr 25 2023, 2:15 PM
tejohnson marked an inline comment as done.Apr 26 2023, 8:45 AM
tejohnson updated this revision to Diff 517194.Apr 26 2023, 8:45 AM

Address comment

This revision was landed with ongoing or failed builds.Apr 26 2023, 8:47 AM
This revision was automatically updated to reflect the committed changes.