Drop UDivOperator and introduce SDivOperator. Thanks to Chris
authorDan Gohman <gohman@apple.com>
Mon, 20 Jul 2009 17:51:10 +0000 (17:51 +0000)
committerDan Gohman <gohman@apple.com>
Mon, 20 Jul 2009 17:51:10 +0000 (17:51 +0000)
for noticing this.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76440 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Operator.h

index a26d94007963dec79f138884976696da4a504f2f..5ebb9c0dd0ccc6fc2ece3d49224aadba6aa56003 100644 (file)
@@ -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))) ||