Skip to content
This repository was archived by the owner on Mar 28, 2020. It is now read-only.

Commit fdc40a0

Browse files
author
Scott Michel
committed
Remove trailing whitespace to reduce later commit patch noise.
(Note: Eventually, commits like this will be handled via a pre-commit hook that does this automagically, as well as expand tabs to spaces and look for 80-col violations.) git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@64827 91177308-0d34-0410-b5e6-96231b3b80d8
1 parent 36375ee commit fdc40a0

File tree

10 files changed

+1729
-1729
lines changed

10 files changed

+1729
-1729
lines changed

include/llvm/CodeGen/SelectionDAG.h

Lines changed: 32 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -143,23 +143,23 @@ class SelectionDAG {
143143
///
144144
void viewGraph(const std::string &Title);
145145
void viewGraph();
146-
146+
147147
#ifndef NDEBUG
148148
std::map<const SDNode *, std::string> NodeGraphAttrs;
149149
#endif
150150

151151
/// clearGraphAttrs - Clear all previously defined node graph attributes.
152152
/// Intended to be used from a debugging tool (eg. gdb).
153153
void clearGraphAttrs();
154-
154+
155155
/// setGraphAttrs - Set graph attributes for a node. (eg. "color=red".)
156156
///
157157
void setGraphAttrs(const SDNode *N, const char *Attrs);
158-
158+
159159
/// getGraphAttrs - Get graph attributes for a node. (eg. "color=red".)
160160
/// Used from getNodeAttributes.
161161
const std::string getGraphAttrs(const SDNode *N) const;
162-
162+
163163
/// setGraphColor - Convenience for setting node color attribute.
164164
///
165165
void setGraphColor(const SDNode *N, const char *Color);
@@ -177,7 +177,7 @@ class SelectionDAG {
177177
ilist<SDNode>::size_type allnodes_size() const {
178178
return AllNodes.size();
179179
}
180-
180+
181181
/// getRoot - Return the root tag of the SelectionDAG.
182182
///
183183
const SDValue &getRoot() const { return Root; }
@@ -233,7 +233,7 @@ class SelectionDAG {
233233
SDVTList getVTList(MVT VT1, MVT VT2, MVT VT3);
234234
SDVTList getVTList(MVT VT1, MVT VT2, MVT VT3, MVT VT4);
235235
SDVTList getVTList(const MVT *VTs, unsigned NumVTs);
236-
236+
237237
/// getNodeValueTypes - These are obsolete, use getVTList instead.
238238
const MVT *getNodeValueTypes(MVT VT) {
239239
return getVTList(VT).VTs;
@@ -250,8 +250,8 @@ class SelectionDAG {
250250
const MVT *getNodeValueTypes(const std::vector<MVT> &vtList) {
251251
return getVTList(&vtList[0], (unsigned)vtList.size()).VTs;
252252
}
253-
254-
253+
254+
255255
//===--------------------------------------------------------------------===//
256256
// Node creation methods.
257257
//
@@ -320,7 +320,7 @@ class SelectionDAG {
320320
SDValue getRegister(unsigned Reg, MVT VT);
321321
SDValue getDbgStopPoint(SDValue Root, unsigned Line, unsigned Col,
322322
Value *CU);
323-
SDValue getLabel(unsigned Opcode, DebugLoc dl, SDValue Root,
323+
SDValue getLabel(unsigned Opcode, DebugLoc dl, SDValue Root,
324324
unsigned LabelID);
325325

326326
SDValue getCopyToReg(SDValue Chain, DebugLoc dl, unsigned Reg, SDValue N) {
@@ -345,13 +345,13 @@ class SelectionDAG {
345345
SDValue Ops[] = { Chain, Reg, N, Flag };
346346
return getNode(ISD::CopyToReg, dl, VTs, 2, Ops, Flag.getNode() ? 4 : 3);
347347
}
348-
348+
349349
SDValue getCopyFromReg(SDValue Chain, DebugLoc dl, unsigned Reg, MVT VT) {
350350
const MVT *VTs = getNodeValueTypes(VT, MVT::Other);
351351
SDValue Ops[] = { Chain, getRegister(Reg, VT) };
352352
return getNode(ISD::CopyFromReg, dl, VTs, 2, Ops, 2);
353353
}
354-
354+
355355
// This version of the getCopyFromReg method takes an extra operand, which
356356
// indicates that there is potentially an incoming flag value (if Flag is not
357357
// null) and that there should be a flag result.
@@ -373,7 +373,7 @@ class SelectionDAG {
373373
/// getZeroExtendInReg - Return the expression required to zero extend the Op
374374
/// value assuming it was the smaller SrcTy value.
375375
SDValue getZeroExtendInReg(SDValue Op, DebugLoc DL, MVT SrcTy);
376-
376+
377377
/// getNOT - Create a bitwise NOT operation as (XOR Val, -1).
378378
SDValue getNOT(DebugLoc DL, SDValue Val, MVT VT);
379379

@@ -383,7 +383,7 @@ class SelectionDAG {
383383
SDValue getCALLSEQ_START(SDValue Chain, SDValue Op) {
384384
const MVT *VTs = getNodeValueTypes(MVT::Other, MVT::Flag);
385385
SDValue Ops[] = { Chain, Op };
386-
return getNode(ISD::CALLSEQ_START, DebugLoc::getUnknownLoc(),
386+
return getNode(ISD::CALLSEQ_START, DebugLoc::getUnknownLoc(),
387387
VTs, 2, Ops, 2);
388388
}
389389

@@ -399,7 +399,7 @@ class SelectionDAG {
399399
Ops.push_back(Op2);
400400
Ops.push_back(InFlag);
401401
return getNode(ISD::CALLSEQ_END, DebugLoc::getUnknownLoc(), NodeTys,
402-
&Ops[0],
402+
&Ops[0],
403403
(unsigned)Ops.size() - (InFlag.getNode() == 0 ? 1 : 0));
404404
}
405405

@@ -487,15 +487,15 @@ class SelectionDAG {
487487
return getNode(ISD::SELECT_CC, DL, True.getValueType(),
488488
LHS, RHS, True, False, getCondCode(Cond));
489489
}
490-
490+
491491
/// getVAArg - VAArg produces a result and token chain, and takes a pointer
492492
/// and a source value as input.
493493
SDValue getVAArg(MVT VT, DebugLoc dl, SDValue Chain, SDValue Ptr,
494494
SDValue SV);
495495

496-
/// getAtomic - Gets a node for an atomic op, produces result and chain and
496+
/// getAtomic - Gets a node for an atomic op, produces result and chain and
497497
/// takes 3 operands
498-
SDValue getAtomic(unsigned Opcode, DebugLoc dl, MVT MemVT, SDValue Chain,
498+
SDValue getAtomic(unsigned Opcode, DebugLoc dl, MVT MemVT, SDValue Chain,
499499
SDValue Ptr, SDValue Cmp, SDValue Swp, const Value* PtrVal,
500500
unsigned Alignment=0);
501501

@@ -585,7 +585,7 @@ class SelectionDAG {
585585
SDValue Op3, SDValue Op4, SDValue Op5);
586586
SDValue UpdateNodeOperands(SDValue N,
587587
const SDValue *Ops, unsigned NumOps);
588-
588+
589589
/// SelectNodeTo - These are used for target selectors to *mutate* the
590590
/// specified node to have the specified return type, Target opcode, and
591591
/// operands. Note that target opcodes are stored as
@@ -649,14 +649,14 @@ class SelectionDAG {
649649
/// the current one.
650650
SDNode *getTargetNode(unsigned Opcode, DebugLoc dl, MVT VT);
651651
SDNode *getTargetNode(unsigned Opcode, DebugLoc dl, MVT VT, SDValue Op1);
652-
SDNode *getTargetNode(unsigned Opcode, DebugLoc dl, MVT VT, SDValue Op1,
652+
SDNode *getTargetNode(unsigned Opcode, DebugLoc dl, MVT VT, SDValue Op1,
653653
SDValue Op2);
654654
SDNode *getTargetNode(unsigned Opcode, DebugLoc dl, MVT VT,
655655
SDValue Op1, SDValue Op2, SDValue Op3);
656656
SDNode *getTargetNode(unsigned Opcode, DebugLoc dl, MVT VT,
657657
const SDValue *Ops, unsigned NumOps);
658658
SDNode *getTargetNode(unsigned Opcode, DebugLoc dl, MVT VT1, MVT VT2);
659-
SDNode *getTargetNode(unsigned Opcode, DebugLoc dl, MVT VT1, MVT VT2,
659+
SDNode *getTargetNode(unsigned Opcode, DebugLoc dl, MVT VT1, MVT VT2,
660660
SDValue Op1);
661661
SDNode *getTargetNode(unsigned Opcode, DebugLoc dl, MVT VT1,
662662
MVT VT2, SDValue Op1, SDValue Op2);
@@ -680,7 +680,7 @@ class SelectionDAG {
680680
/// else return NULL.
681681
SDNode *getNodeIfExists(unsigned Opcode, SDVTList VTs,
682682
const SDValue *Ops, unsigned NumOps);
683-
683+
684684
/// DAGUpdateListener - Clients of various APIs that cause global effects on
685685
/// the DAG can optionally implement this interface. This allows the clients
686686
/// to handle the various sorts of updates that happen.
@@ -695,12 +695,12 @@ class SelectionDAG {
695695
/// NodeUpdated - The node N that was updated.
696696
virtual void NodeUpdated(SDNode *N) = 0;
697697
};
698-
698+
699699
/// RemoveDeadNode - Remove the specified node from the system. If any of its
700700
/// operands then becomes dead, remove them as well. Inform UpdateListener
701701
/// for each node deleted.
702702
void RemoveDeadNode(SDNode *N, DAGUpdateListener *UpdateListener = 0);
703-
703+
704704
/// RemoveDeadNodes - This method deletes the unreachable nodes in the
705705
/// given list, and any nodes that become unreachable as a result.
706706
void RemoveDeadNodes(SmallVectorImpl<SDNode *> &DeadNodes,
@@ -711,7 +711,7 @@ class SelectionDAG {
711711
/// version if 'From' is known to have a single result, use the second
712712
/// if you have two nodes with identical results, use the third otherwise.
713713
///
714-
/// These methods all take an optional UpdateListener, which (if not null) is
714+
/// These methods all take an optional UpdateListener, which (if not null) is
715715
/// informed about nodes that are deleted and modified due to recursive
716716
/// changes in the dag.
717717
///
@@ -768,7 +768,7 @@ class SelectionDAG {
768768
case ISD::AND:
769769
case ISD::OR:
770770
case ISD::XOR:
771-
case ISD::ADDC:
771+
case ISD::ADDC:
772772
case ISD::ADDE: return true;
773773
default: return false;
774774
}
@@ -785,7 +785,7 @@ class SelectionDAG {
785785
/// either of the specified value types.
786786
SDValue CreateStackTemporary(MVT VT1, MVT VT2);
787787

788-
/// FoldConstantArithmetic -
788+
/// FoldConstantArithmetic -
789789
SDValue FoldConstantArithmetic(unsigned Opcode,
790790
MVT VT,
791791
ConstantSDNode *Cst1,
@@ -794,7 +794,7 @@ class SelectionDAG {
794794
/// FoldSetCC - Constant fold a setcc to true or false.
795795
SDValue FoldSetCC(MVT VT, SDValue N1,
796796
SDValue N2, ISD::CondCode Cond, DebugLoc dl);
797-
797+
798798
/// SignBitIsZero - Return true if the sign bit of Op is known to be zero. We
799799
/// use this predicate to simplify operations downstream.
800800
bool SignBitIsZero(SDValue Op, unsigned Depth = 0) const;
@@ -804,11 +804,11 @@ class SelectionDAG {
804804
/// known to be the same type.
805805
bool MaskedValueIsZero(SDValue Op, const APInt &Mask, unsigned Depth = 0)
806806
const;
807-
807+
808808
/// ComputeMaskedBits - Determine which of the bits specified in Mask are
809809
/// known to be either zero or one and return them in the KnownZero/KnownOne
810810
/// bitsets. This code only analyzes bits in Mask, in order to short-circuit
811-
/// processing. Targets can implement the computeMaskedBitsForTargetNode
811+
/// processing. Targets can implement the computeMaskedBitsForTargetNode
812812
/// method in the TargetLowering class to allow target nodes to be understood.
813813
void ComputeMaskedBits(SDValue Op, const APInt &Mask, APInt &KnownZero,
814814
APInt &KnownOne, unsigned Depth = 0) const;
@@ -829,7 +829,7 @@ class SelectionDAG {
829829
/// getShuffleScalarElt - Returns the scalar element that will make up the ith
830830
/// element of the result of the vector shuffle.
831831
SDValue getShuffleScalarElt(const SDNode *N, unsigned Idx);
832-
832+
833833
private:
834834
bool RemoveNodeFromCSEMaps(SDNode *N);
835835
void AddModifiedNodeToCSEMaps(SDNode *N, DAGUpdateListener *UpdateListener);
@@ -845,10 +845,10 @@ class SelectionDAG {
845845
unsigned getMVTAlignment(MVT MemoryVT) const;
846846

847847
void allnodes_clear();
848-
848+
849849
/// VTList - List of non-single value types.
850850
std::vector<SDVTList> VTList;
851-
851+
852852
/// CondCodeNodes - Maps to auto-CSE operations.
853853
std::vector<CondCodeSDNode*> CondCodeNodes;
854854

0 commit comments

Comments
 (0)