This is an archive of the discontinued LLVM Phabricator instance.

[AArch64][SVE] Update names and comments for gathers/scatters (NFC)
ClosedPublic

Authored by andwar on Feb 24 2020, 2:04 AM.

Details

Summary

This patch renames functions and TableGen classes for SVE gathers and scatters. The original names implied that the corresponding methods/classes are only suited for regular gathers/scatters (i.e. LD1 and ST1), which is not the case. Indeed, we will be re-using them for non-temporal and first-faulting gathers/scatters in one of the forthcoming patches. The new names also highlight the split into Vector-Scalar (VS) and Scalar-Vector (SV) cases.

List of changes:

  • performLD1GatherCombine and performST1ScatterCombine are renamed as performGatherLoadCombine and performScatterStoreCombine, respectively.
  • Selection DAG types for scatters and gathers from AArch64SVEInstrInfo.td are renamed. For example, SDT_AArch64_GLD1 is renamed as SDT_AArch64_GATHER_SV. SV stands for Scalar-Vector, as opposed to Vector-Scalar (VS).
  • The intrinsic classes from IntrinsicsAArch64.td are renamed. For example, AdvSIMD_GatherLoad_64bitOffset_Intrinsic is renamed as AdvSIMD_GatherLoad_SV_64b_Offsets_Intrinsic.
  • Updated comments in performGatherLoadCombine and performScatterStoreCombine.

Diff Detail

Event Timeline

andwar created this revision.Feb 24 2020, 2:04 AM
Herald added a reviewer: efriedma. · View Herald Transcript
Herald added a project: Restricted Project. · View Herald Transcript

nit: The title suggests that this patch refactors the entire implementation of gather/scatter, where it's mostly a few name changes to the ACLE intrinsics and updated comments.

llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
12692

This is not a non-functional change.

andwar updated this revision to Diff 246383.Feb 25 2020, 12:44 AM

I removed the functional changes from AArch64ISelLowering.cpp.

andwar retitled this revision from [AArch64][SVE] Refactor the implementation of gathers/scatters (NFC) to [AArch64][SVE] Update names and comments for gathers/scatters (NFC).Feb 25 2020, 12:53 AM
andwar edited the summary of this revision. (Show Details)

Thank you for taking a look @sdesmalen!

nit: The title suggests that this patch refactors the entire implementation of gather/scatter, where it's mostly a few name changes to the ACLE intrinsics and updated comments.

Good point, updated!

This revision is now accepted and ready to land.Feb 25 2020, 1:08 AM
This revision was automatically updated to reflect the committed changes.
andwar marked an inline comment as done.