This is an archive of the discontinued LLVM Phabricator instance.

[RISCV][Codegen] Account for LMUL in Vector Mask instructions
ClosedPublic

Authored by michaelmaitland on Nov 4 2022, 8:18 AM.

Details

Summary

It is likley that subtargets act differently for vector fixed-point arithmetic instructions based on the LMUL. This patch creates seperate SchedRead, SchedWrite, WriteRes, ReadAdvance for each relevant LMUL.

Diff Detail

Event Timeline

michaelmaitland created this revision.Nov 4 2022, 8:18 AM
Herald added a project: Restricted Project. · View Herald TranscriptNov 4 2022, 8:18 AM
michaelmaitland requested review of this revision.Nov 4 2022, 8:18 AM
kito-cheng added inline comments.Nov 9 2022, 10:30 PM
llvm/lib/Target/RISCV/RISCVScheduleV.td
888–892

I think that could be fixed in another small document fix only NFC patch?

craig.topper added inline comments.Nov 15 2022, 6:47 PM
llvm/lib/Target/RISCV/RISCVInstrInfoV.td
721

Line this up after the bracket on the previous line. Similar to parens in C.

michaelmaitland marked an inline comment as done.

Fix formatting

llvm/lib/Target/RISCV/RISCVScheduleV.td
888–892
michaelmaitland marked an inline comment as done.Nov 30 2022, 11:11 AM
This revision is now accepted and ready to land.Dec 5 2022, 3:34 PM