[PATCH] D106237: [ISel] Port AArch64 HADD and RHADD to ISel
Eli Friedman via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sun Jul 18 11:44:30 PDT 2021
efriedma added inline comments.
================
Comment at: llvm/include/llvm/CodeGen/ISDOpcodes.h:614
+ /// HADDS/HADDU - Having add - Add two integers using an integer of type
+ /// i[N+1], halving the result by shifting it one bit right.
----------------
RKSimon wrote:
> having add?
> Maybe add a code snippet?
There's really very little incentive to keep ISD opcode names short, particularly rarely used ones like this. I'd prefer to spell it out (particularly the "h"; for example, x86 has "haddps", where the "h" stands for "horizontal").
Maybe ADD_HALVE_UNSIGNED_ROUND_DOWN and ADD_HALVE_SIGNED_ROUND_UP?
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D106237/new/
https://reviews.llvm.org/D106237
More information about the llvm-commits
mailing list