aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2009-07-20 17:51:10 +0000
committerDan Gohman <gohman@apple.com>2009-07-20 17:51:10 +0000
commit7a965b03a8b261b76d7ec8eb523ed0a686cc8777 (patch)
treeb56f5387b8ec7fa6c29150c4a574482fe8c597c7 /include/llvm
parentff3d3adddbb6ef6ea4897b52d24c09e57596bb3c (diff)
downloadexternal_llvm-7a965b03a8b261b76d7ec8eb523ed0a686cc8777.zip
external_llvm-7a965b03a8b261b76d7ec8eb523ed0a686cc8777.tar.gz
external_llvm-7a965b03a8b261b76d7ec8eb523ed0a686cc8777.tar.bz2
Drop UDivOperator and introduce SDivOperator. Thanks to Chris
for noticing this. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76440 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm')
-rw-r--r--include/llvm/Operator.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/include/llvm/Operator.h b/include/llvm/Operator.h
index a26d940..5ebb9c0 100644
--- a/include/llvm/Operator.h
+++ b/include/llvm/Operator.h
@@ -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))) ||