ShiftLeft performs a bit-shift left by shift bits.
(x, y *Value)
| 286 | |
| 287 | // ShiftLeft performs a bit-shift left by shift bits. |
| 288 | func (b *Builder) ShiftLeft(x, y *Value) *Value { |
| 289 | assertTypesEqual(x.Type(), y.Type()) |
| 290 | return b.val(x.Type(), b.llvm.CreateShl(x.llvm, y.llvm, x.Name()+"<<"+y.Name())) |
| 291 | } |
| 292 | |
| 293 | // ShiftRight performs a bit-shift right by shift bits. |
| 294 | func (b *Builder) ShiftRight(x, y *Value) *Value { |
no test coverage detected