[llvm] [LLVM][CodeGen] Add lowering for scalable vector bfloat operations. (PR #109803)
Paul Walker via llvm-commits
llvm-commits at lists.llvm.org
Thu Oct 3 08:54:54 PDT 2024
================
@@ -11917,3 +11923,38 @@ bool TargetLowering::LegalizeSetCCCondCode(SelectionDAG &DAG, EVT VT,
}
return false;
}
+
+SDValue TargetLowering::expandVectorNaryOpBySplitting(SDNode *Node,
+ SelectionDAG &DAG) const {
+ EVT VT = Node->getValueType(0);
+ // Despite its documentation, GetSplitDestVTs will assert if VT cannot be
+ // split into two equal parts.
+ if (!VT.isVector() || !VT.getVectorElementCount().isKnownMultipleOf(2))
+ return SDValue();
+
+ EVT LoVT, HiVT;
+ std::tie(LoVT, HiVT) = DAG.GetSplitDestVTs(VT);
----------------
paulwalker-arm wrote:
Oh nice. Done.
https://github.com/llvm/llvm-project/pull/109803
More information about the llvm-commits
mailing list