This is an archive of the discontinued LLVM Phabricator instance.

[RISCV] Add a common base class for RVInstR variations. NFC
ClosedPublic

Authored by craig.topper on Jul 28 2023, 11:58 PM.

Details

Summary

We have multiple variations of InstrFormatR that pack different
fields into the upper 7 bits. The other 25 bits are all the same.

Add base class to capture this commonality and allow subclasses to
explicitly define Inst{31-25}.

Diff Detail

Event Timeline

craig.topper created this revision.Jul 28 2023, 11:58 PM
Herald added a project: Restricted Project. · View Herald TranscriptJul 28 2023, 11:58 PM
craig.topper requested review of this revision.Jul 28 2023, 11:58 PM
Herald added a project: Restricted Project. · View Herald TranscriptJul 28 2023, 11:58 PM
asb accepted this revision.Jul 31 2023, 12:50 PM

LGTM

This revision is now accepted and ready to land.Jul 31 2023, 12:50 PM