This is an archive of the discontinued LLVM Phabricator instance.

[ARM] Accept shortened forms of the T2 ADC instruction
ClosedPublic

Authored by JiruiWu on Jan 16 2023, 7:31 AM.

Details

Summary

The previous T2 ADC instruction requires three operands. This patch
supports its shortened forms.

Diff Detail

Event Timeline

JiruiWu created this revision.Jan 16 2023, 7:31 AM
Herald added a project: Restricted Project. · View Herald TranscriptJan 16 2023, 7:31 AM
JiruiWu requested review of this revision.Jan 16 2023, 7:31 AM
Herald added a project: Restricted Project. · View Herald TranscriptJan 16 2023, 7:31 AM
lenary accepted this revision.Jan 23 2023, 7:06 AM
This revision is now accepted and ready to land.Jan 23 2023, 7:06 AM
dmgreen added inline comments.
llvm/lib/Target/ARM/ARMInstrThumb2.td
1026–1027

Nit: It looks like PostISelHook needn't be a parameter if it is always passed 1.

lenary added inline comments.Jan 25 2023, 5:43 AM
llvm/lib/Target/ARM/ARMInstrThumb2.td
1026–1027

I wasn't sure if other instructions wanted to use T2I_adde_sube_irs without PostISelHook, even though none do right now, which is why i suggested this approach, but maybe the instruction definitions are now stable enough that this would be fine?

dmgreen added inline comments.Jan 25 2023, 5:51 AM
llvm/lib/Target/ARM/ARMInstrThumb2.td
1026–1027

It's not a big deal either way. Arm is fairly stable though, and if the parameter is needed by another patch I would suggest it should be simple enough to add there.

This revision was automatically updated to reflect the committed changes.