Open Machiry opened 3 years ago
Where is the vector type? Are vector types actually supported by the Checked C clang compiler (e.g., could it compile this libspng with no changes) ?
Yes, compilation with clang works fine with original libspng.
At AST level, what we see is a vector type for the return type of _mm_setzero_si64
and we do not handle them. We only look for structtype
and these vector types should also be handled as structure types.
These are mmx
types (x86 SIMD instructions operate on these types)
633 Fixes the crash but does not address rewriting vector types
I attempted to update the issue title to reflect this. I haven't verified the current state myself.
Steps:
Error:
The target function
_mm_setzero_si64
is: in:cmake-build-debug/lib/clang/9.0.0/include/mmintrin.h
The function is returning
vector
type but we do not handle vector types (which should be handled in the same way as record types).