mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 03:33:20 +01:00
Reorder args, constify.
llvm-svn: 63151
This commit is contained in:
parent
6c7c632a21
commit
e50b41d4f5
@ -902,7 +902,7 @@ public:
|
|||||||
inline bool isTargetOpcode() const;
|
inline bool isTargetOpcode() const;
|
||||||
inline bool isMachineOpcode() const;
|
inline bool isMachineOpcode() const;
|
||||||
inline unsigned getMachineOpcode() const;
|
inline unsigned getMachineOpcode() const;
|
||||||
inline DebugLoc getDebugLoc() const;
|
inline const DebugLoc getDebugLoc() const;
|
||||||
|
|
||||||
|
|
||||||
/// reachesChainWithoutSideEffects - Return true if this operand (which must
|
/// reachesChainWithoutSideEffects - Return true if this operand (which must
|
||||||
@ -1152,10 +1152,10 @@ public:
|
|||||||
void setNodeId(int Id) { NodeId = Id; }
|
void setNodeId(int Id) { NodeId = Id; }
|
||||||
|
|
||||||
/// getDebugLoc - Return the source location info.
|
/// getDebugLoc - Return the source location info.
|
||||||
DebugLoc getDebugLoc() const { return debugLoc; }
|
const DebugLoc getDebugLoc() const { return debugLoc; }
|
||||||
|
|
||||||
/// setDebugLoc - Set source location info.
|
/// setDebugLoc - Set source location info.
|
||||||
void setDebugLoc(DebugLoc sl) { debugLoc = sl; }
|
void setDebugLoc(const DebugLoc dl) { debugLoc = dl; }
|
||||||
|
|
||||||
/// use_iterator - This class provides iterator support for SDUse
|
/// use_iterator - This class provides iterator support for SDUse
|
||||||
/// operands that use a specific SDNode.
|
/// operands that use a specific SDNode.
|
||||||
@ -1363,10 +1363,10 @@ protected:
|
|||||||
/// The next two constructors specify DebugLoc explicitly; the intent
|
/// The next two constructors specify DebugLoc explicitly; the intent
|
||||||
/// is that they will replace the above two over time, and eventually
|
/// is that they will replace the above two over time, and eventually
|
||||||
/// the ones above can be removed.
|
/// the ones above can be removed.
|
||||||
SDNode(unsigned Opc, SDVTList VTs, const SDValue *Ops, unsigned NumOps,
|
SDNode(unsigned Opc, const DebugLoc dl, SDVTList VTs, const SDValue *Ops,
|
||||||
DebugLoc sl)
|
unsigned NumOps)
|
||||||
: NodeType(Opc), OperandsNeedDelete(true), SubclassData(0),
|
: NodeType(Opc), OperandsNeedDelete(true), SubclassData(0),
|
||||||
NodeId(-1), debugLoc(sl),
|
NodeId(-1), debugLoc(dl),
|
||||||
OperandList(NumOps ? new SDUse[NumOps] : 0),
|
OperandList(NumOps ? new SDUse[NumOps] : 0),
|
||||||
ValueList(VTs.VTs),
|
ValueList(VTs.VTs),
|
||||||
NumOperands(NumOps), NumValues(VTs.NumVTs),
|
NumOperands(NumOps), NumValues(VTs.NumVTs),
|
||||||
@ -1379,9 +1379,9 @@ protected:
|
|||||||
|
|
||||||
/// This constructor adds no operands itself; operands can be
|
/// This constructor adds no operands itself; operands can be
|
||||||
/// set later with InitOperands.
|
/// set later with InitOperands.
|
||||||
SDNode(unsigned Opc, SDVTList VTs, DebugLoc sl)
|
SDNode(unsigned Opc, const DebugLoc dl, SDVTList VTs)
|
||||||
: NodeType(Opc), OperandsNeedDelete(false), SubclassData(0),
|
: NodeType(Opc), OperandsNeedDelete(false), SubclassData(0),
|
||||||
NodeId(-1), debugLoc(sl), OperandList(0),
|
NodeId(-1), debugLoc(dl), OperandList(0),
|
||||||
ValueList(VTs.VTs), NumOperands(0), NumValues(VTs.NumVTs),
|
ValueList(VTs.VTs), NumOperands(0), NumValues(VTs.NumVTs),
|
||||||
UseList(NULL) {}
|
UseList(NULL) {}
|
||||||
|
|
||||||
@ -1479,7 +1479,7 @@ inline bool SDValue::use_empty() const {
|
|||||||
inline bool SDValue::hasOneUse() const {
|
inline bool SDValue::hasOneUse() const {
|
||||||
return Node->hasNUsesOfValue(1, ResNo);
|
return Node->hasNUsesOfValue(1, ResNo);
|
||||||
}
|
}
|
||||||
inline DebugLoc SDValue::getDebugLoc() const {
|
inline const DebugLoc SDValue::getDebugLoc() const {
|
||||||
return Node->getDebugLoc();
|
return Node->getDebugLoc();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user