This is an archive of the discontinued LLVM Phabricator instance.

[AArch64][SVE] NFC: Use stepvector directly in index multiclasses
ClosedPublic

Authored by c-rhodes on Sep 8 2021, 1:18 AM.

Details

Summary

Also fixes a couple of warnings identified in D109359:

SVEInstrFormats.td:5099:59: warning: unused template argument: sve_int_index_ri::step_vector
SVEInstrFormats.td:5133:59: warning: unused template argument: sve_int_index_rr::step_vector

Diff Detail

Event Timeline

c-rhodes created this revision.Sep 8 2021, 1:18 AM
c-rhodes requested review of this revision.Sep 8 2021, 1:18 AM
Herald added a project: Restricted Project. · View Herald TranscriptSep 8 2021, 1:18 AM
david-arm accepted this revision.Sep 8 2021, 1:22 AM
david-arm added a subscriber: david-arm.

LGTM!

This revision is now accepted and ready to land.Sep 8 2021, 1:22 AM
paulwalker-arm added inline comments.Sep 8 2021, 2:43 AM
llvm/lib/Target/AArch64/AArch64SVEInstrInfo.td
1480–1483

If you're going to hardwire the step_vector usage, which I'm fine with by the way, you may as well also hardwire the mul operators as well.

c-rhodes added inline comments.Sep 8 2021, 3:03 AM
llvm/lib/Target/AArch64/AArch64SVEInstrInfo.td
1480–1483

If you're going to hardwire the step_vector usage, which I'm fine with by the way, you may as well also hardwire the mul operators as well.

that will requires moving AArch64mul_p/AArch64mul_p_oneuse/SDT_AArch64Arith to SVEInstrFormats.td, separating it from the other predicated op nodes. It seems more ideal to define these things in SVEInstrFormats.td since they can be used in AArch64SVEInstrInfo.td as well but it seems outside the scope of this patch.