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

@@ -1,4 +1,5 @@
#include <mie/instr.h>
#include <mie/msg.h>
#include <mie/op.h>
#include <mie/ptr.h>
@@ -44,6 +45,10 @@ static struct mie_type *get_type(struct mie_value *v)
}
case MIE_INSTR_ALLOCA:
return &ptr_type;
case MIE_INSTR_MSG: {
struct mie_msg *msg = (struct mie_msg *)instr;
return msg->msg_ret_type;
}
default:
return NULL;
}