@@ -110,8 +110,16 @@ pub trait BuilderMethods<'a, 'tcx>:
|
110 | 110 | fn frem(&mut self, lhs: Self::Value, rhs: Self::Value) -> Self::Value; |
111 | 111 | fn frem_fast(&mut self, lhs: Self::Value, rhs: Self::Value) -> Self::Value; |
112 | 112 | fn frem_algebraic(&mut self, lhs: Self::Value, rhs: Self::Value) -> Self::Value; |
| 113 | +/// Generate a left-shift. Both operands must have the same size. The right operand must be |
| 114 | + /// interpreted as unsigned and can be assumed to be less than the size of the left operand. |
113 | 115 | fn shl(&mut self, lhs: Self::Value, rhs: Self::Value) -> Self::Value; |
| 116 | +/// Generate a logical right-shift. Both operands must have the same size. The right operand |
| 117 | + /// must be interpreted as unsigned and can be assumed to be less than the size of the left |
| 118 | + /// operand. |
114 | 119 | fn lshr(&mut self, lhs: Self::Value, rhs: Self::Value) -> Self::Value; |
| 120 | +/// Generate an arithmetic right-shift. Both operands must have the same size. The right operand |
| 121 | + /// must be interpreted as unsigned and can be assumed to be less than the size of the left |
| 122 | + /// operand. |
115 | 123 | fn ashr(&mut self, lhs: Self::Value, rhs: Self::Value) -> Self::Value; |
116 | 124 | fn unchecked_sadd(&mut self, lhs: Self::Value, rhs: Self::Value) -> Self::Value; |
117 | 125 | fn unchecked_uadd(&mut self, lhs: Self::Value, rhs: Self::Value) -> Self::Value; |
|