Skip to content

Commit 602fa0c

Browse files
authored
[SDAG] Fix whitespace errors (NFC) (#168897)
To make life easier for future contributors. Note that formatting changes are due to git clang-format on the touched whitespace-error lines.
1 parent 6ce4794 commit 602fa0c

File tree

2 files changed

+17
-17
lines changed

2 files changed

+17
-17
lines changed

llvm/lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3128,7 +3128,7 @@ void DAGTypeLegalizer::ExpandIntegerResult(SDNode *N, unsigned ResNo) {
31283128
case ISD::USHLSAT: ExpandIntRes_SHLSAT(N, Lo, Hi); break;
31293129

31303130
case ISD::AVGCEILS:
3131-
case ISD::AVGCEILU:
3131+
case ISD::AVGCEILU:
31323132
case ISD::AVGFLOORS:
31333133
case ISD::AVGFLOORU: ExpandIntRes_AVG(N, Lo, Hi); break;
31343134

llvm/lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1091,14 +1091,14 @@ SDValue DAGTypeLegalizer::ScalarizeVecOp_FP_ROUND(SDNode *N, unsigned OpNo) {
10911091
return DAG.getNode(ISD::SCALAR_TO_VECTOR, SDLoc(N), N->getValueType(0), Res);
10921092
}
10931093

1094-
SDValue DAGTypeLegalizer::ScalarizeVecOp_STRICT_FP_ROUND(SDNode *N,
1094+
SDValue DAGTypeLegalizer::ScalarizeVecOp_STRICT_FP_ROUND(SDNode *N,
10951095
unsigned OpNo) {
10961096
assert(OpNo == 1 && "Wrong operand for scalarization!");
10971097
SDValue Elt = GetScalarizedVector(N->getOperand(1));
1098-
SDValue Res = DAG.getNode(ISD::STRICT_FP_ROUND, SDLoc(N),
1099-
{ N->getValueType(0).getVectorElementType(),
1100-
MVT::Other },
1101-
{ N->getOperand(0), Elt, N->getOperand(2) });
1098+
SDValue Res =
1099+
DAG.getNode(ISD::STRICT_FP_ROUND, SDLoc(N),
1100+
{N->getValueType(0).getVectorElementType(), MVT::Other},
1101+
{N->getOperand(0), Elt, N->getOperand(2)});
11021102
// Legalize the chain result - switch anything that used the old chain to
11031103
// use the new one.
11041104
ReplaceValueWith(SDValue(N, 1), Res.getValue(1));
@@ -3842,16 +3842,16 @@ SDValue DAGTypeLegalizer::SplitVecOp_UnaryOp(SDNode *N) {
38423842
InVT.getVectorElementCount());
38433843

38443844
if (N->isStrictFPOpcode()) {
3845-
Lo = DAG.getNode(N->getOpcode(), dl, { OutVT, MVT::Other },
3846-
{ N->getOperand(0), Lo });
3847-
Hi = DAG.getNode(N->getOpcode(), dl, { OutVT, MVT::Other },
3848-
{ N->getOperand(0), Hi });
3845+
Lo = DAG.getNode(N->getOpcode(), dl, {OutVT, MVT::Other},
3846+
{N->getOperand(0), Lo});
3847+
Hi = DAG.getNode(N->getOpcode(), dl, {OutVT, MVT::Other},
3848+
{N->getOperand(0), Hi});
38493849

38503850
// Build a factor node to remember that this operation is independent
38513851
// of the other one.
38523852
SDValue Ch = DAG.getNode(ISD::TokenFactor, dl, MVT::Other, Lo.getValue(1),
38533853
Hi.getValue(1));
3854-
3854+
38553855
// Legalize the chain result - switch anything that used the old chain to
38563856
// use the new one.
38573857
ReplaceValueWith(SDValue(N, 1), Ch);
@@ -4638,13 +4638,13 @@ SDValue DAGTypeLegalizer::SplitVecOp_FP_ROUND(SDNode *N) {
46384638
InVT.getVectorElementCount());
46394639

46404640
if (N->isStrictFPOpcode()) {
4641-
Lo = DAG.getNode(N->getOpcode(), DL, { OutVT, MVT::Other },
4642-
{ N->getOperand(0), Lo, N->getOperand(2) });
4643-
Hi = DAG.getNode(N->getOpcode(), DL, { OutVT, MVT::Other },
4644-
{ N->getOperand(0), Hi, N->getOperand(2) });
4641+
Lo = DAG.getNode(N->getOpcode(), DL, {OutVT, MVT::Other},
4642+
{N->getOperand(0), Lo, N->getOperand(2)});
4643+
Hi = DAG.getNode(N->getOpcode(), DL, {OutVT, MVT::Other},
4644+
{N->getOperand(0), Hi, N->getOperand(2)});
46454645
// Legalize the chain result - switch anything that used the old chain to
46464646
// use the new one.
4647-
SDValue NewChain = DAG.getNode(ISD::TokenFactor, DL, MVT::Other,
4647+
SDValue NewChain = DAG.getNode(ISD::TokenFactor, DL, MVT::Other,
46484648
Lo.getValue(1), Hi.getValue(1));
46494649
ReplaceValueWith(SDValue(N, 1), NewChain);
46504650
} else if (N->getOpcode() == ISD::VP_FP_ROUND) {
@@ -5517,7 +5517,7 @@ SDValue DAGTypeLegalizer::WidenVecRes_StrictFP(SDNode *N) {
55175517
EOps.push_back(Op);
55185518
}
55195519

5520-
EVT WidenVT[] = {WidenEltVT, MVT::Other};
5520+
EVT WidenVT[] = {WidenEltVT, MVT::Other};
55215521
SDValue Oper = DAG.getNode(Opcode, dl, WidenVT, EOps);
55225522
ConcatOps[ConcatEnd++] = Oper;
55235523
Chains.push_back(Oper.getValue(1));

0 commit comments

Comments
 (0)