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

Method ShiftLeft

core/codegen/arithmetic.go:288–291  ·  view source on GitHub ↗

ShiftLeft performs a bit-shift left by shift bits.

(x, y *Value)

Source from the content-addressed store, hash-verified

286
287// ShiftLeft performs a bit-shift left by shift bits.
288func (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.
294func (b *Builder) ShiftRight(x, y *Value) *Value {

Callers 4

hash64BitMethod · 0.80
hashVariableValueMethod · 0.80
doBinaryOpMethod · 0.80
buildWriteFuncsMethod · 0.80

Calls 4

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

Tested by

no test coverage detected