mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-25 13:24:46 +00:00
SDOperand::isOperand should not be a forwarding. It must check *this against N's operands.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26502 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -531,6 +531,9 @@ public:
|
||||
return SDOperand(Val, R);
|
||||
}
|
||||
|
||||
// isOperand - Return true if this node is an operand of N.
|
||||
bool isOperand(SDNode *N) const;
|
||||
|
||||
/// getValueType - Return the ValueType of the referenced return value.
|
||||
///
|
||||
inline MVT::ValueType getValueType() const;
|
||||
@@ -542,7 +545,6 @@ public:
|
||||
inline const SDOperand &getOperand(unsigned i) const;
|
||||
inline bool isTargetOpcode() const;
|
||||
inline unsigned getTargetOpcode() const;
|
||||
inline const bool isOperand(SDNode *N) const;
|
||||
|
||||
/// hasOneUse - Return true if there is exactly one operation using this
|
||||
/// result value of the defining operator.
|
||||
@@ -941,9 +943,6 @@ inline bool SDOperand::isTargetOpcode() const {
|
||||
inline unsigned SDOperand::getTargetOpcode() const {
|
||||
return Val->getTargetOpcode();
|
||||
}
|
||||
inline const bool SDOperand::isOperand(SDNode *N) const {
|
||||
return Val->isOperand(N);
|
||||
}
|
||||
inline bool SDOperand::hasOneUse() const {
|
||||
return Val->hasNUsesOfValue(1, ResNo);
|
||||
}
|
||||
|
Reference in New Issue
Block a user