Keep pipe packet size and alignment in LLVM IR layer to enable
translation from LLVM IR to SPIR-V format.
Details
Details
Diff Detail
Diff Detail
Event Timeline
lib/CodeGen/CGOpenCLRuntime.cpp | ||
---|---|---|
97 | Perhaps it's safer to use getTypeSizeInChars instead? Even though most of architectures should have an 8-bit byte, it will allow us to avoid having hard-coded numbers. |
Comment Actions
Applied code review comment from Anastasia.
Use getTypeSizeInChars instead of getTypeSize to get type size in bytes. Assume that char size is always one byte.
Perhaps it's safer to use getTypeSizeInChars instead? Even though most of architectures should have an 8-bit byte, it will allow us to avoid having hard-coded numbers.