mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-08 21:37:35 +00:00
Drop UDivOperator and introduce SDivOperator. Thanks to Chris
for noticing this. llvm-svn: 76440
This commit is contained in:
parent
eebe4b24c3
commit
d0a2cef334
@ -100,9 +100,9 @@ public:
|
||||
}
|
||||
};
|
||||
|
||||
/// UDivOperator - An Operator with opcode Instruction::UDiv.
|
||||
/// SDivOperator - An Operator with opcode Instruction::SDiv.
|
||||
///
|
||||
class UDivOperator : public Operator {
|
||||
class SDivOperator : public Operator {
|
||||
public:
|
||||
/// isExact - Test whether this division is known to be exact, with
|
||||
/// zero remainder.
|
||||
@ -114,12 +114,12 @@ public:
|
||||
}
|
||||
|
||||
// Methods for support type inquiry through isa, cast, and dyn_cast:
|
||||
static inline bool classof(const UDivOperator *) { return true; }
|
||||
static inline bool classof(const SDivOperator *) { return true; }
|
||||
static inline bool classof(const ConstantExpr *CE) {
|
||||
return CE->getOpcode() == Instruction::UDiv;
|
||||
return CE->getOpcode() == Instruction::SDiv;
|
||||
}
|
||||
static inline bool classof(const Instruction *I) {
|
||||
return I->getOpcode() == Instruction::UDiv;
|
||||
return I->getOpcode() == Instruction::SDiv;
|
||||
}
|
||||
static inline bool classof(const Value *V) {
|
||||
return (isa<Instruction>(V) && classof(cast<Instruction>(V))) ||
|
||||
|
Loading…
x
Reference in New Issue
Block a user