================
@@ -11151,6 +11161,20 @@ SDValue
PPCTargetLowering::LowerINTRINSIC_WO_CHAIN(SDValue Op,
SDLoc dl(Op);
+ // Lowers BCD intrinsics with rounding operand
+ auto MapNodeWithSplatVector = [&](unsigned Opcode) -> SDValue {
+ SDValue SplatVal =
+ DAG.getNode(ISD::SPLAT_VECTOR, dl, MVT::v4i32, Op.getOperand(2));
----------------
amy-kwan wrote:
I agree with Tony that the elaborated comment would be good.
Also, could the lambdas be combined? It seems the only differentiating line is
the return statement, so perhaps we can just check the PPCISD opcode coming in
and perform the appropriate return line depending on the opcode?
https://github.com/llvm/llvm-project/pull/154715
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits