Add some helpers
authorChris Lattner <sabre@nondot.org>
Tue, 25 May 2004 05:32:13 +0000 (05:32 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 25 May 2004 05:32:13 +0000 (05:32 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13737 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Constants.h

index b5ba1b96713d3cad584a7ffad82e8ce2cda2fb9d..9016f1a611cb91ede6999e15c0446fda4d2987ea 100644 (file)
@@ -583,6 +583,9 @@ public:
   static Constant *getShl(Constant *C1, Constant *C2);
   static Constant *getShr(Constant *C1, Constant *C2);
 
+  static Constant *getUShr(Constant *C1, Constant *C2); // unsigned shr
+  static Constant *getSShr(Constant *C1, Constant *C2); // signed shr
+
   /// Getelementptr form...
   ///
   static Constant *getGetElementPtr(Constant *C,