This is an archive of the discontinued LLVM Phabricator instance.

[AMDGPU][AsmParser][NFC] Refine defining single-bit custom operands.
ClosedPublic

Authored by kosarev on Jan 9 2023, 9:38 AM.

Diff Detail

Event Timeline

kosarev created this revision.Jan 9 2023, 9:38 AM
Herald added a project: Restricted Project. · View Herald TranscriptJan 9 2023, 9:38 AM
kosarev requested review of this revision.Jan 9 2023, 9:38 AM
Herald added a project: Restricted Project. · View Herald TranscriptJan 9 2023, 9:38 AM
dp added inline comments.Jan 10 2023, 4:27 AM
llvm/lib/Target/AMDGPU/SIInstrInfo.td
1177–1186

"Mixin" is an abstraction which does not explain the purpose of this class. Maybe CustomOperandProps would be a better name?

1215

This currently works with named bit operands only, correct? Would it be possible to extract the type from Op to avoid hardcoded i1?

1285

Maybe ConvertDppBoundCtrl?

kosarev updated this revision to Diff 488919.Jan 13 2023, 2:27 AM

Rebased and changed as suggested.

kosarev marked 3 inline comments as done.Jan 13 2023, 2:29 AM
dp accepted this revision.Jan 13 2023, 2:50 AM

LGTM.

This revision is now accepted and ready to land.Jan 13 2023, 2:50 AM
This revision was landed with ongoing or failed builds.Jan 16 2023, 8:22 AM
This revision was automatically updated to reflect the committed changes.