This is an archive of the discontinued LLVM Phabricator instance.

[AMDGPU][NFC] Isolate KImm operands
AbandonedPublic

Authored by dp on Dec 1 2022, 4:45 AM.

Details

Reviewers
None
Summary

KImm operands are (almost) always require special handling.

This patch separates OPERAND_KIMM32 and OPERAND_KIMM16 from other operand kinds. In particular, these operands are excluded from [OPERAND_REG_INLINE_C_FIRST,OPERAND_REG_INLINE_C_LAST] and from [OPERAND_SRC_FIRST,OPERAND_SRC_LAST].
opCanUseInlineConstant, isSISrcOperand and isSISrcInlinableOperand now return false for KImm operands.

Diff Detail

Event Timeline

dp created this revision.Dec 1 2022, 4:45 AM
Herald added a project: Restricted Project. · View Herald TranscriptDec 1 2022, 4:45 AM
dp requested review of this revision.Dec 1 2022, 4:45 AM
Herald added a project: Restricted Project. · View Herald TranscriptDec 1 2022, 4:45 AM
dp abandoned this revision.Dec 1 2022, 7:19 AM