Or performs a bitwise-or of the two integers. The types of the two values must be equal.
(x, y *Value)
| 256 | // Or performs a bitwise-or of the two integers. |
| 257 | // The types of the two values must be equal. |
| 258 | func (b *Builder) Or(x, y *Value) *Value { |
| 259 | assertTypesEqual(x.Type(), y.Type()) |
| 260 | return b.val(x.Type(), b.llvm.CreateOr(x.llvm, y.llvm, x.Name()+"|"+y.Name())) |
| 261 | } |
| 262 | |
| 263 | // Xor performs a bitwise-xor of the two integers. |
| 264 | // The types of the two values must be equal. |