blob: 59933238f217a48867fb1d59f8c4016d4f9f3714 [file] [log] [blame]
Nguyen Anh Quynh26ee41a2013-11-27 12:11:31 +08001/* Capstone Disassembler Engine */
2/* By Nguyen Anh Quynh <aquynh@gmail.com>, 2013> */
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.
8bool MCOperandInfo_isPredicate(MCOperandInfo *m)
9{
10 return m->Flags & (1 << MCOI_Predicate);
11}
12
13/// isOptionalDef - Set if this operand is a optional def.
14///
15bool MCOperandInfo_isOptionalDef(MCOperandInfo *m)
16{
17 return m->Flags & (1 << MCOI_OptionalDef);
18}