Page MenuHomePhabricator

[NFC][RISCV] Move calculations of SDNode policy operand idx to a separate function
ClosedPublic

Authored by asi-sc on Sep 19 2022, 5:43 AM.

Details

Summary

Since there is no guaranteed correspondence of SDNode and MI operands, we need
getters simular to RISCVII::get*OpNum for SDNodes.

More uses of getVecPolicyOpIdx will be added in D130895.

Diff Detail

Event Timeline

asi-sc created this revision.Sep 19 2022, 5:43 AM
Herald added a project: Restricted Project. · View Herald TranscriptSep 19 2022, 5:43 AM
asi-sc requested review of this revision.Sep 19 2022, 5:43 AM
This revision is now accepted and ready to land.Sep 19 2022, 6:05 PM
arcbbb accepted this revision.Sep 20 2022, 12:25 AM

LGTM

@arcbbb, could you please submit the patch on my behalf? Author: Anton Sidorenko <anton.sidorenko@syntacore.com>
Thanks.