SizeOf returns the size of the type in bytes as a uint64.
(ty Type)
| 486 | |
| 487 | // SizeOf returns the size of the type in bytes as a uint64. |
| 488 | func (m *Module) SizeOf(ty Type) Const { |
| 489 | return m.Scalar(uint64((ty.SizeInBits() + 7) / 8)) |
| 490 | } |
| 491 | |
| 492 | // AlignOf returns the alignment of the type in bytes. |
| 493 | func (m *Module) AlignOf(ty Type) Const { |
nothing calls this directly
no test coverage detected