Improve vector arithmetic generation for array programming operations

This commit is contained in:
gingerBill
2021-06-12 16:37:20 +01:00
parent c2524464f9
commit 582f423b67
3 changed files with 218 additions and 73 deletions
+1
View File
@@ -272,6 +272,7 @@ i64 lb_alignof(LLVMTypeRef type) {
return 8;
case LLVMVectorTypeKind:
{
// TODO(bill): This appears to be correct but LLVM isn't necessarily "great" with regards to documentation
LLVMTypeRef elem = LLVMGetElementType(type);
i64 elem_size = lb_sizeof(elem);
i64 count = LLVMGetVectorSize(type);