Lines Matching refs:attr

115 static inline int inat_is_legacy_prefix(insn_attr_t attr)  in inat_is_legacy_prefix()  argument
117 attr &= INAT_PFX_MASK; in inat_is_legacy_prefix()
118 return attr && attr <= INAT_LGCPFX_MAX; in inat_is_legacy_prefix()
121 static inline int inat_is_address_size_prefix(insn_attr_t attr) in inat_is_address_size_prefix() argument
123 return (attr & INAT_PFX_MASK) == INAT_PFX_ADDRSZ; in inat_is_address_size_prefix()
126 static inline int inat_is_operand_size_prefix(insn_attr_t attr) in inat_is_operand_size_prefix() argument
128 return (attr & INAT_PFX_MASK) == INAT_PFX_OPNDSZ; in inat_is_operand_size_prefix()
131 static inline int inat_is_rex_prefix(insn_attr_t attr) in inat_is_rex_prefix() argument
133 return (attr & INAT_PFX_MASK) == INAT_PFX_REX; in inat_is_rex_prefix()
136 static inline int inat_is_rex2_prefix(insn_attr_t attr) in inat_is_rex2_prefix() argument
138 return (attr & INAT_PFX_MASK) == INAT_PFX_REX2; in inat_is_rex2_prefix()
141 static inline int inat_last_prefix_id(insn_attr_t attr) in inat_last_prefix_id() argument
143 if ((attr & INAT_PFX_MASK) > INAT_LSTPFX_MAX) in inat_last_prefix_id()
146 return attr & INAT_PFX_MASK; in inat_last_prefix_id()
149 static inline int inat_is_vex_prefix(insn_attr_t attr) in inat_is_vex_prefix() argument
151 attr &= INAT_PFX_MASK; in inat_is_vex_prefix()
152 return attr == INAT_PFX_VEX2 || attr == INAT_PFX_VEX3 || in inat_is_vex_prefix()
153 attr == INAT_PFX_EVEX; in inat_is_vex_prefix()
156 static inline int inat_is_evex_prefix(insn_attr_t attr) in inat_is_evex_prefix() argument
158 return (attr & INAT_PFX_MASK) == INAT_PFX_EVEX; in inat_is_evex_prefix()
161 static inline int inat_is_vex3_prefix(insn_attr_t attr) in inat_is_vex3_prefix() argument
163 return (attr & INAT_PFX_MASK) == INAT_PFX_VEX3; in inat_is_vex3_prefix()
166 static inline int inat_is_escape(insn_attr_t attr) in inat_is_escape() argument
168 return attr & INAT_ESC_MASK; in inat_is_escape()
171 static inline int inat_escape_id(insn_attr_t attr) in inat_escape_id() argument
173 return (attr & INAT_ESC_MASK) >> INAT_ESC_OFFS; in inat_escape_id()
176 static inline int inat_is_group(insn_attr_t attr) in inat_is_group() argument
178 return attr & INAT_GRP_MASK; in inat_is_group()
181 static inline int inat_group_id(insn_attr_t attr) in inat_group_id() argument
183 return (attr & INAT_GRP_MASK) >> INAT_GRP_OFFS; in inat_group_id()
186 static inline int inat_group_common_attribute(insn_attr_t attr) in inat_group_common_attribute() argument
188 return attr & ~INAT_GRP_MASK; in inat_group_common_attribute()
191 static inline int inat_has_immediate(insn_attr_t attr) in inat_has_immediate() argument
193 return attr & INAT_IMM_MASK; in inat_has_immediate()
196 static inline int inat_immediate_size(insn_attr_t attr) in inat_immediate_size() argument
198 return (attr & INAT_IMM_MASK) >> INAT_IMM_OFFS; in inat_immediate_size()
201 static inline int inat_has_modrm(insn_attr_t attr) in inat_has_modrm() argument
203 return attr & INAT_MODRM; in inat_has_modrm()
206 static inline int inat_is_force64(insn_attr_t attr) in inat_is_force64() argument
208 return attr & INAT_FORCE64; in inat_is_force64()
211 static inline int inat_has_second_immediate(insn_attr_t attr) in inat_has_second_immediate() argument
213 return attr & INAT_SCNDIMM; in inat_has_second_immediate()
216 static inline int inat_has_moffset(insn_attr_t attr) in inat_has_moffset() argument
218 return attr & INAT_MOFFSET; in inat_has_moffset()
221 static inline int inat_has_variant(insn_attr_t attr) in inat_has_variant() argument
223 return attr & INAT_VARIANT; in inat_has_variant()
226 static inline int inat_accept_vex(insn_attr_t attr) in inat_accept_vex() argument
228 return attr & INAT_VEXOK; in inat_accept_vex()
231 static inline int inat_must_vex(insn_attr_t attr) in inat_must_vex() argument
233 return attr & (INAT_VEXONLY | INAT_EVEXONLY); in inat_must_vex()
236 static inline int inat_must_evex(insn_attr_t attr) in inat_must_evex() argument
238 return attr & INAT_EVEXONLY; in inat_must_evex()
241 static inline int inat_evex_scalable(insn_attr_t attr) in inat_evex_scalable() argument
243 return attr & INAT_EVEX_SCALABLE; in inat_evex_scalable()