MCPcopy Create free account
hub / github.com/google/gapid / Or

Method Or

core/codegen/arithmetic.go:258–261  ·  view source on GitHub ↗

Or performs a bitwise-or of the two integers. The types of the two values must be equal.

(x, y *Value)

Source from the content-addressed store, hash-verified

256// Or performs a bitwise-or of the two integers.
257// The types of the two values must be equal.
258func (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.

Callers 2

NotEqualMethod · 0.95
SwitchMethod · 0.95

Calls 4

valMethod · 0.95
assertTypesEqualFunction · 0.85
TypeMethod · 0.65
NameMethod · 0.65

Tested by

no test coverage detected