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

Method Zero

core/codegen/module.go:483–485  ·  view source on GitHub ↗

Zero returns a constant zero value of type ty.

(ty Type)

Source from the content-addressed store, hash-verified

481
482// Zero returns a constant zero value of type ty.
483func (m *Module) Zero(ty Type) Const {
484 return Const{ty, llvm.ConstNull(ty.llvmTy())}
485}
486
487// SizeOf returns the size of the type in bytes as a uint64.
488func (m *Module) SizeOf(ty Type) Const {

Callers 15

dumpDefaultFunction · 0.45
CastMethod · 0.45
throwMethod · 0.45
safeValueFunction · 0.45
compileSubscriptFunction · 0.45
sliceAssignMethod · 0.45
buildMapMethod · 0.45
initialValueMethod · 0.45
arrayInitializerMethod · 0.45
doBinaryOpMethod · 0.45
bitTestMethod · 0.45
messageMethod · 0.45

Calls 1

llvmTyMethod · 0.65

Tested by

no test coverage detected