mie: implement ir generation for message sending
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user