mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-06 20:32:19 +00:00
Add a method
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19538 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
87875dac89
commit
a44f4aeca7
@ -324,6 +324,10 @@ public:
|
||||
inline unsigned getOpcode() const;
|
||||
inline unsigned getNumOperands() const;
|
||||
inline const SDOperand &getOperand(unsigned i) const;
|
||||
|
||||
/// hasOneUse - Return true if there is exactly one operation using this
|
||||
/// result value of the defining operator.
|
||||
inline bool hasOneUse() const;
|
||||
};
|
||||
|
||||
|
||||
@ -481,7 +485,9 @@ inline unsigned SDOperand::getNumOperands() const {
|
||||
inline const SDOperand &SDOperand::getOperand(unsigned i) const {
|
||||
return Val->getOperand(i);
|
||||
}
|
||||
|
||||
inline bool SDOperand::hasOneUse() const {
|
||||
return Val->hasNUsesOfValue(1, ResNo);
|
||||
}
|
||||
|
||||
|
||||
class ConstantSDNode : public SDNode {
|
||||
|
Loading…
Reference in New Issue
Block a user