| 302 | } |
| 303 | |
| 304 | uint32_t StructPackingPass::getPackedArrayStride( |
| 305 | const analysis::Array& arrayType) const { |
| 306 | // Array stride is equal to aligned size of element type |
| 307 | const uint32_t elementSize = getPackedSize(*arrayType.element_type()); |
| 308 | const uint32_t alignment = getPackedAlignment(arrayType); |
| 309 | return alignPow2(elementSize, alignment); |
| 310 | } |
| 311 | |
| 312 | uint32_t StructPackingPass::getArrayLength( |
| 313 | const analysis::Array& arrayType) const { |
nothing calls this directly
no test coverage detected