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

Method Not

core/codegen/arithmetic.go:50–53  ·  view source on GitHub ↗

Not returns !x. The type of x must be Bool.

(x *Value)

Source from the content-addressed store, hash-verified

48
49// Not returns !x. The type of x must be Bool.
50func (b *Builder) Not(x *Value) *Value {
51 assertTypesEqual(x.ty, b.m.Types.Bool)
52 return b.val(b.m.Types.Bool, b.llvm.CreateNot(x.llvm, "!"+x.Name()))
53}
54
55// Invert returns ~x.
56func (b *Builder) Invert(x *Value) *Value {

Callers

nothing calls this directly

Calls 3

valMethod · 0.95
assertTypesEqualFunction · 0.85
NameMethod · 0.65

Tested by

no test coverage detected