blob: 1f70d860511adb2313cf6028b8df195186d66b64 [file] [log] [blame]
Nguyen Anh Quynh6023ef72014-04-29 11:21:04 +08001/* Capstone Disassembly Engine */
Nguyen Anh Quynhbfcaba52015-03-04 17:45:23 +08002/* By Nguyen Anh Quynh <aquynh@gmail.com>, 2013-2015 */
Nguyen Anh Quynh26ee41a2013-11-27 12:11:31 +08003
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.
Richard Henderson22ead3e2017-10-21 17:45:40 -07008bool MCOperandInfo_isPredicate(const MCOperandInfo *m)
Nguyen Anh Quynh26ee41a2013-11-27 12:11:31 +08009{
10 return m->Flags & (1 << MCOI_Predicate);
11}
12
13/// isOptionalDef - Set if this operand is a optional def.
14///
Richard Henderson22ead3e2017-10-21 17:45:40 -070015bool MCOperandInfo_isOptionalDef(const MCOperandInfo *m)
Nguyen Anh Quynh26ee41a2013-11-27 12:11:31 +080016{
17 return m->Flags & (1 << MCOI_OptionalDef);
18}