[llvm] 8371dde - Revert "zz"

Roman Lebedev via llvm-commits llvm-commits at lists.llvm.org
Sat Apr 10 09:39:31 PDT 2021


Author: Roman Lebedev
Date: 2021-04-10T19:37:47+03:00
New Revision: 8371dde4857a4356df3c20c8624aa8989de1bb24

URL: https://github.com/llvm/llvm-project/commit/8371dde4857a4356df3c20c8624aa8989de1bb24
DIFF: https://github.com/llvm/llvm-project/commit/8371dde4857a4356df3c20c8624aa8989de1bb24.diff

LOG: Revert "zz"

It wasn't meant to be committed, two commits should have been squashed.

This reverts commit 0c184154969c020db416bd7066af80ffd2a27ac4.

Added: 
    

Modified: 
    llvm/include/llvm/IR/IntrinsicInst.h

Removed: 
    


################################################################################
diff  --git a/llvm/include/llvm/IR/IntrinsicInst.h b/llvm/include/llvm/IR/IntrinsicInst.h
index b688ece7067e..6c825d380fc9 100644
--- a/llvm/include/llvm/IR/IntrinsicInst.h
+++ b/llvm/include/llvm/IR/IntrinsicInst.h
@@ -458,47 +458,6 @@ class ConstrainedFPCmpIntrinsic : public ConstrainedFPIntrinsic {
   }
 };
 
-/// This class represents min/max intrinsics.
-class LimitingIntrinsic : public IntrinsicInst {
-public:
-  static bool classof(const IntrinsicInst *I) {
-    switch (I->getIntrinsicID()) {
-    case Intrinsic::umin:
-    case Intrinsic::umax:
-    case Intrinsic::smin:
-    case Intrinsic::smax:
-      return true;
-    default:
-      return false;
-    }
-  }
-  static bool classof(const Value *V) {
-    return isa<IntrinsicInst>(V) && classof(cast<IntrinsicInst>(V));
-  }
-
-  Value *getLHS() const { return const_cast<Value *>(getArgOperand(0)); }
-  Value *getRHS() const { return const_cast<Value *>(getArgOperand(1)); }
-
-  /// Returns the comparison predicate underlying the intrinsic.
-  ICmpInst::Predicate getPredicate() const {
-    switch (getIntrinsicID()) {
-    case Intrinsic::umin:
-      return ICmpInst::Predicate::ICMP_ULT;
-    case Intrinsic::umax:
-      return ICmpInst::Predicate::ICMP_UGT;
-    case Intrinsic::smin:
-      return ICmpInst::Predicate::ICMP_SLT;
-    case Intrinsic::smax:
-      return ICmpInst::Predicate::ICMP_SGT;
-    default:
-      llvm_unreachable("Invalid intrinsic");
-    }
-  }
-
-  /// Whether the intrinsic is signed or unsigned.
-  bool isSigned() const { return ICmpInst::isSigned(getPredicate()); };
-};
-
 /// This class represents an intrinsic that is based on a binary operation.
 /// This includes op.with.overflow and saturating add/sub intrinsics.
 class BinaryOpIntrinsic : public IntrinsicInst {


        


More information about the llvm-commits mailing list