22 lines
363 B
C
22 lines
363 B
C
#ifndef MIE_SWITCH_H_
|
|
#define MIE_SWITCH_H_
|
|
|
|
#include <mie/ir/const.h>
|
|
#include <mie/ir/instr.h>
|
|
|
|
struct mie_switch_branch {
|
|
struct mie_value *b_value;
|
|
struct mie_block *b_jump_to;
|
|
};
|
|
|
|
struct mie_switch {
|
|
struct mie_instr s_base;
|
|
struct mie_value *s_src;
|
|
struct mie_block *s_default;
|
|
|
|
size_t s_nr_branches;
|
|
struct mie_switch_branch *s_branches;
|
|
};
|
|
|
|
#endif
|