mie: implement ir generation for message sending

This commit is contained in:
2025-04-17 21:43:02 +01:00
parent 6d8809d325
commit 8388dfeb79
9 changed files with 252 additions and 10 deletions

View File

@@ -10,6 +10,7 @@ extern const struct mie_value_type arg_value_type;
extern const struct mie_value_type block_value_type;
extern const struct mie_value_type instr_value_type;
extern const struct mie_value_type const_value_type;
extern const struct mie_value_type data_value_type;
static const struct mie_value_type *value_types[] = {
[MIE_VALUE_NONE] = NULL,
@@ -21,6 +22,7 @@ static const struct mie_value_type *value_types[] = {
[MIE_VALUE_BLOCK] = &block_value_type,
[MIE_VALUE_INSTR] = &instr_value_type,
[MIE_VALUE_CONST] = &const_value_type,
[MIE_VALUE_DATA] = &data_value_type,
};
static const size_t nr_value_types = sizeof value_types / sizeof value_types[0];