Experimental support for inline swizzling for array types of len <= 4 e.g. v.xyz, v.argb, v.xxx

This commit is contained in:
gingerBill
2021-06-05 17:22:39 +01:00
parent 61084d832d
commit 599d18f26f
7 changed files with 185 additions and 74 deletions
+6 -1
View File
@@ -47,7 +47,7 @@ enum lbAddrKind {
lbAddr_RelativePointer,
lbAddr_RelativeSlice,
lbAddr_AtomOp_index_set,
lbAddr_Swizzle,
};
struct lbAddr {
@@ -73,6 +73,11 @@ struct lbAddr {
struct {
bool deref;
} relative;
struct {
Type *type;
u8 count; // 2, 3, or 4 components
u8 indices[4];
} swizzle;
};
};