Invert returns ~x.
(x *Value)
| 54 | |
| 55 | // Invert returns ~x. |
| 56 | func (b *Builder) Invert(x *Value) *Value { |
| 57 | return b.val(x.ty, b.llvm.CreateNot(x.llvm, "")) |
| 58 | } |
| 59 | |
| 60 | // Negate returns -x. The type of x must be a signed integer or float. |
| 61 | func (b *Builder) Negate(x *Value) *Value { |