macro_rules! define_inst_type_enum { ($( $variant:ident ),*) => { ... }; }
impl InstType enum automatically.