This is an archive of the discontinued LLVM Phabricator instance.

[TableGen][RISCV][Hexagon][LoongArch] Add a list of Predicates to HwMode.
ClosedPublic

Authored by craig.topper on Mar 13 2023, 11:58 PM.

Details

Summary

Use the predicate condition instead of checkFeatures in *GenDAGISel.inc.

This makes the code similar to isel pattern predicates.

checkFeatures is still used by code created by SubtargetEmitter so
we can't remove the string. So backends need to be careful to keep
the string and predicates in sync, but I don't that's a big issue.

I haven't measured it, but this should be a compile time improvement
for isel since we don't have to do any of the string processing that's
inside checkFeatures.

Diff Detail

Event Timeline

craig.topper created this revision.Mar 13 2023, 11:58 PM
Herald added a project: Restricted Project. · View Herald TranscriptMar 13 2023, 11:58 PM
craig.topper requested review of this revision.Mar 13 2023, 11:58 PM
Herald added a project: Restricted Project. · View Herald TranscriptMar 13 2023, 11:58 PM
kparzysz accepted this revision.Mar 14 2023, 10:52 AM

Looks good, thanks!

This revision is now accepted and ready to land.Mar 14 2023, 10:52 AM