mie: move mie_ctx out of the ir subsystem
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
#define MIE_CTX_H_
|
||||
|
||||
#include <blue/core/btree.h>
|
||||
#include <mie/ir/type.h>
|
||||
#include <mie/type.h>
|
||||
|
||||
struct mie_ctx {
|
||||
struct mie_const *ctx_true, *ctx_false;
|
||||
@@ -2,7 +2,7 @@
|
||||
#define MIE_ALLOCA_H_
|
||||
|
||||
#include <mie/ir/instr.h>
|
||||
#include <mie/ir/type.h>
|
||||
#include <mie/type.h>
|
||||
|
||||
struct mie_alloca {
|
||||
struct mie_instr a_base;
|
||||
|
||||
@@ -3,9 +3,9 @@
|
||||
|
||||
#include <blue/core/btree.h>
|
||||
#include <mie/ir/switch.h>
|
||||
#include <mie/ir/type.h>
|
||||
#include <mie/ir/value.h>
|
||||
#include <mie/misc.h>
|
||||
#include <mie/type.h>
|
||||
|
||||
struct b_hashmap;
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
#define MIE_MSG_H_
|
||||
|
||||
#include <mie/ir/instr.h>
|
||||
#include <mie/ir/type.h>
|
||||
#include <mie/type.h>
|
||||
|
||||
#define MIE_MSG(p) ((struct mie_msg *)(p))
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
#define MIE_PTR_H_
|
||||
|
||||
#include <mie/ir/instr.h>
|
||||
#include <mie/ir/type.h>
|
||||
#include <mie/type.h>
|
||||
|
||||
struct mie_getelementptr {
|
||||
struct mie_instr gep_base;
|
||||
|
||||
@@ -17,17 +17,22 @@ enum mie_type_id {
|
||||
MIE_TYPE_LABEL = 0x09u,
|
||||
MIE_TYPE_SELECTOR = 0x0Au,
|
||||
MIE_TYPE_FUNC = 0x0Bu,
|
||||
MIE_TYPE_GLUE = 0xFEu,
|
||||
MIE_TYPE_OTHER = 0xFFu,
|
||||
__MIE_TYPE_COUNT,
|
||||
};
|
||||
|
||||
struct mie_type {
|
||||
struct mie_value t_base;
|
||||
|
||||
enum mie_type_id t_id;
|
||||
unsigned int t_count;
|
||||
|
||||
union {
|
||||
unsigned int t_width;
|
||||
b_queue t_vars;
|
||||
};
|
||||
};
|
||||
|
||||
extern struct mie_type *mie_type_create(void);
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user