xref: /aosp_15_r20/external/capstone/MCInstrDesc.c (revision 9a0e4156d50a75a99ec4f1653a0e9602a5d45c18)
1 /* Capstone Disassembly Engine */
2 /* By Nguyen Anh Quynh <[email protected]>, 2013-2015 */
3 
4 #include "MCInstrDesc.h"
5 
6 /// isPredicate - Set if this is one of the operands that made up of
7 /// the predicate operand that controls an isPredicable() instruction.
MCOperandInfo_isPredicate(const MCOperandInfo * m)8 bool MCOperandInfo_isPredicate(const MCOperandInfo *m)
9 {
10 	return m->Flags & (1 << MCOI_Predicate);
11 }
12 
13 /// isOptionalDef - Set if this operand is a optional def.
14 ///
MCOperandInfo_isOptionalDef(const MCOperandInfo * m)15 bool MCOperandInfo_isOptionalDef(const MCOperandInfo *m)
16 {
17 	return m->Flags & (1 << MCOI_OptionalDef);
18 }
19