This is an archive of the discontinued LLVM Phabricator instance.

[AArch64][SVE] NFC: Rename isOrig -> isReverseInstr
ClosedPublic

Authored by sdesmalen on Jul 1 2020, 9:15 AM.

Details

Summary

This is a non-functional to clarify some of the terminology in the
AArch64SVEInstrInfo/SVEInstrFormats.td files around the tables
for mapping an instruction to it's reverse instruction counter part,
and vice versa. e.g. DIV -> DIVR and DIVR -> DIV.

Diff Detail

Event Timeline

sdesmalen created this revision.Jul 1 2020, 9:15 AM
Herald added a reviewer: efriedma. · View Herald Transcript
Herald added a project: Restricted Project. · View Herald Transcript
This revision is now accepted and ready to land.Jul 1 2020, 12:09 PM
paulwalker-arm accepted this revision.Jul 2 2020, 4:47 AM
paulwalker-arm added inline comments.
llvm/lib/Target/AArch64/AArch64ExpandPseudoInsts.cpp
446–447

Not the fault of this patch but we might want to consider something like below, unless we're confident there won't actually be a double lookup.

if ((int RevOpcode = AArch64::getSVERevInstr(Opcode)) != -1)
  Opcode = RevOpcode;
This revision was automatically updated to reflect the committed changes.
sdesmalen marked an inline comment as done.