This is an archive of the discontinued LLVM Phabricator instance.

[RISCV] Use tablegen size for getInstSizeInBytes.
ClosedPublic

Authored by craig.topper on Jan 25 2022, 12:19 PM.

Details

Summary

Fix the pseudos to have the correct size in the MCInstrDesc description.

Inspired by D118009 and D117970.

Diff Detail

Event Timeline

craig.topper created this revision.Jan 25 2022, 12:19 PM
craig.topper requested review of this revision.Jan 25 2022, 12:19 PM
Herald added a project: Restricted Project. · View Herald TranscriptJan 25 2022, 12:19 PM
asb accepted this revision.Jan 28 2022, 6:12 AM

This is definitely cleaner, thanks.

This revision is now accepted and ready to land.Jan 28 2022, 6:12 AM
This revision was landed with ongoing or failed builds.Jan 28 2022, 9:21 AM
This revision was automatically updated to reflect the committed changes.
jrtc27 added inline comments.Jan 28 2022, 9:26 AM
llvm/lib/Target/RISCV/RISCVInstrInfo.cpp
988

Hm, we've lost these cross-references, and RISCVExpandAtomicPseudo::expandMI, RISCVExpandPseudo::expandMI and ISCVMCCodeEmitter::encodeInstruction now have stale references back to here