From 35df90cb3f03c10edef2dbfe9f3b6ede88600849 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Thu, 9 Feb 2023 14:43:02 +0900 Subject: [PATCH] [ruamoko] Add qfot_basic_t to qfot_type_t qfot_basic_t is necessary for getting at the width of basic value types (int, uint, float, long, ulong, double) in order to distinguish between scalars and vectors of those types. I had forgotten this when doing the Ruamoko VM and qfcc changes. --- ruamoko/include/types.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ruamoko/include/types.h b/ruamoko/include/types.h index 2ff8a123e..6316ecb12 100644 --- a/ruamoko/include/types.h +++ b/ruamoko/include/types.h @@ -30,6 +30,11 @@ typedef struct qfot_fldptr_s { struct qfot_type_s *aux_type; } qfot_fldptr_t; +typedef struct qfot_basic_s { + etype_t type; + int width; +} qfot_basic_t; + typedef struct qfot_func_s { etype_t type; struct qfot_type_s *return_type; @@ -61,6 +66,7 @@ typedef struct qfot_type_s { string encoding; union { etype_t type; + qfot_basic_t basic; qfot_fldptr_t fldptr; qfot_func_t func; qfot_struct_t strct;