This is an archive of the discontinued LLVM Phabricator instance.

[FuzzMutate] Allow subclass of InsertFunctionStrategy to select function
Needs ReviewPublic

Authored by oakrc on Jun 20 2023, 5:13 PM.

Details

Reviewers
Peter
Summary

This revision allows subclasses to customize which function is used in
InsertFunctionStrategy::mutate(). This is useful for new custom strategies
that may insert a specific kind of function (e.g. intrinsics) but don't
otherwise need to modify how the function is called. Now instead of rewriting
mutate(), such new strategy only needs to override chooseFunction().

Diff Detail

Event Timeline

oakrc created this revision.Jun 20 2023, 5:13 PM
Herald added a project: Restricted Project. · View Herald TranscriptJun 20 2023, 5:13 PM
Herald added a subscriber: hiraditya. · View Herald Transcript
oakrc requested review of this revision.Jun 20 2023, 5:13 PM
Herald added a project: Restricted Project. · View Herald TranscriptJun 20 2023, 5:13 PM