This is an archive of the discontinued LLVM Phabricator instance.

[DAGCombiner] Teach MatchContextClass classes to use TargetLowering::isOperationLegalOrCustom().
ClosedPublic

Authored by fakepaper56 on Feb 15 2023, 12:24 AM.

Details

Summary

Some of TargetLowering functions needed opcodes are often used in DAGCombiner.
The patch make those MatchContextClass classes have TargetLowering members and
pass specific opcodes for those TargetLowering functions.

Diff Detail

Event Timeline

fakepaper56 created this revision.Feb 15 2023, 12:24 AM
fakepaper56 requested review of this revision.Feb 15 2023, 12:24 AM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 15 2023, 12:24 AM
RKSimon accepted this revision.Feb 15 2023, 1:32 AM

LGTM - do you have other patches dependent on this already or is it prep for future VP work?

This revision is now accepted and ready to land.Feb 15 2023, 1:32 AM

LGTM - do you have other patches dependent on this already or is it prep for future VP work?

It is just for future VP work.

This revision was landed with ongoing or failed builds.Feb 16 2023, 11:59 PM
This revision was automatically updated to reflect the committed changes.