HomePhabricator

[TableGen] Support encoding per-HwMode
Audit Required88a5fbfcea79

Authored by jmolloy on Sep 19 2019, 6:39 AM.

Description

[TableGen] Support encoding per-HwMode

Much like ValueTypeByHwMode/RegInfoByHwMode, this patch allows targets
to modify an instruction's encoding based on HwMode. When the
EncodingInfos field is non-empty the Inst and Size fields of the Instruction
are ignored and taken from EncodingInfos instead.

As part of this promote getHwMode() from TargetSubtargetInfo to MCSubtargetInfo.

This is NFC for all existing targets - new code is generated only if targets
use EncodingByHwMode.

llvm-svn: 372320

Details

Auditors
grosbach
Committed
jmolloySep 19 2019, 6:39 AM
Parents
rGb88800d8829b: Clean out unused diagnostics. NFC.
Branches
Unknown
Tags
Unknown