Zero returns a constant zero value of type ty.
(ty Type)
| 481 | |
| 482 | // Zero returns a constant zero value of type ty. |
| 483 | func (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. |
| 488 | func (m *Module) SizeOf(ty Type) Const { |
no test coverage detected