This is an archive of the discontinued LLVM Phabricator instance.

[MacroFusion] Expose useful static methods. NFC.
ClosedPublic

Authored by Joe_Nash on Oct 4 2021, 9:09 AM.

Details

Summary

hasLessThanNumFused and fuseInstructionPair are useful for
DAG mutations similar to MacroFusion, but which cannot use
MacroFusion as a whole (such as fusing non-dependent instruction).

Event Timeline

Joe_Nash created this revision.Oct 4 2021, 9:09 AM
Joe_Nash requested review of this revision.Oct 4 2021, 9:09 AM
Herald added a project: Restricted Project. · View Herald TranscriptOct 4 2021, 9:09 AM
MatzeB accepted this revision.Oct 4 2021, 2:16 PM

LGTM with docu comments added.

llvm/include/llvm/CodeGen/MacroFusion.h
37–39

Please add some documentation when making the API available to more users!

This revision is now accepted and ready to land.Oct 4 2021, 2:16 PM
Joe_Nash updated this revision to Diff 377199.Oct 5 2021, 6:49 AM

add doc comment

Joe_Nash marked an inline comment as done.Oct 5 2021, 6:51 AM

Thanks. Adding the comment even gave me an idea for my client code :)

This revision was automatically updated to reflect the committed changes.