[llvm] [AArch64][SVE] Add partial reduction SDNodes (PR #117185)
Benjamin Maxwell via llvm-commits
llvm-commits at lists.llvm.org
Mon Dec 2 01:54:21 PST 2024
================
@@ -462,6 +462,16 @@ class TargetLoweringBase {
return true;
}
+ /// Return true if there is a sign extend on the input to this function. Used
+ /// to determine whether to transform the
+ /// @llvm.experimental.vector.partial.reduce.* intrinsic to
+ /// PARTIAL_REDUCE_SADD or PARTIAL_REDUCE_UADD. It also removes the extend
+ /// from the input. \p Input The 'Input' operand to the
+ /// @llvm.experimental.vector.partial.reduce.* intrinsic.
+ virtual bool isPartialReductionInputSigned(SDValue &Input) const {
+ return false;
+ }
----------------
MacDue wrote:
Why is the a TLI hook? There does not look like there's anything target-specific about the implementation in `AArch64TargetLowering::isPartialReductionInputSigned`.
https://github.com/llvm/llvm-project/pull/117185
More information about the llvm-commits
mailing list