mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-17 21:29:20 +00:00
Minor clean-up based on Dan's comments.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@49844 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
639f493ebf
commit
02819257a6
@ -879,25 +879,17 @@ template<> struct simplify_type<const SDOperand> {
|
|||||||
/// the SDOperand.
|
/// the SDOperand.
|
||||||
class SDUse {
|
class SDUse {
|
||||||
SDOperand Operand;
|
SDOperand Operand;
|
||||||
/// parent - Parent node of this operand.
|
/// User - Parent node of this operand.
|
||||||
SDNode *parent;
|
SDNode *User;
|
||||||
/// Prev, next - Pointers to the uses list of the SDNode referred by
|
/// Prev, next - Pointers to the uses list of the SDNode referred by
|
||||||
/// this operand.
|
/// this operand.
|
||||||
SDUse **Prev, *Next;
|
SDUse **Prev, *Next;
|
||||||
public:
|
public:
|
||||||
friend class SDNode;
|
friend class SDNode;
|
||||||
SDUse(): Operand(), parent(NULL), Prev(NULL), Next(NULL) {}
|
SDUse(): Operand(), User(NULL), Prev(NULL), Next(NULL) {}
|
||||||
|
|
||||||
SDUse(SDNode *val, unsigned resno) :
|
SDUse(SDNode *val, unsigned resno) :
|
||||||
Operand(val,resno), parent(NULL), Prev(NULL), Next(NULL) {}
|
Operand(val,resno), User(NULL), Prev(NULL), Next(NULL) {}
|
||||||
|
|
||||||
|
|
||||||
SDUse& operator= (SDOperand& Op) {
|
|
||||||
Operand = Op;
|
|
||||||
Next = NULL;
|
|
||||||
Prev = NULL;
|
|
||||||
return *this;
|
|
||||||
}
|
|
||||||
|
|
||||||
SDUse& operator= (const SDOperand& Op) {
|
SDUse& operator= (const SDOperand& Op) {
|
||||||
Operand = Op;
|
Operand = Op;
|
||||||
@ -906,13 +898,6 @@ public:
|
|||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
|
|
||||||
SDUse& operator= (SDUse& Op) {
|
|
||||||
Operand = Op;
|
|
||||||
Next = NULL;
|
|
||||||
Prev = NULL;
|
|
||||||
return *this;
|
|
||||||
}
|
|
||||||
|
|
||||||
SDUse& operator= (const SDUse& Op) {
|
SDUse& operator= (const SDUse& Op) {
|
||||||
Operand = Op;
|
Operand = Op;
|
||||||
Next = NULL;
|
Next = NULL;
|
||||||
@ -922,9 +907,9 @@ public:
|
|||||||
|
|
||||||
SDUse * getNext() { return Next; }
|
SDUse * getNext() { return Next; }
|
||||||
|
|
||||||
SDNode *getUser() { return parent; }
|
SDNode *getUser() { return User; }
|
||||||
|
|
||||||
void setUser(SDNode *p) { parent = p; }
|
void setUser(SDNode *p) { User = p; }
|
||||||
|
|
||||||
operator SDOperand() const { return Operand; }
|
operator SDOperand() const { return Operand; }
|
||||||
|
|
||||||
@ -975,7 +960,7 @@ template<> struct simplify_type<const SDUse> {
|
|||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
/// SDOperandPtr - A helper SDOperand poiner class, that can handle
|
/// SDOperandPtr - A helper SDOperand pointer class, that can handle
|
||||||
/// arrays of SDUse and arrays of SDOperand objects. This is required
|
/// arrays of SDUse and arrays of SDOperand objects. This is required
|
||||||
/// in many places inside the SelectionDAG.
|
/// in many places inside the SelectionDAG.
|
||||||
///
|
///
|
||||||
|
Loading…
Reference in New Issue
Block a user