Nguyen Anh Quynh | 6023ef7 | 2014-04-29 11:21:04 +0800 | [diff] [blame] | 1 | /* Capstone Disassembly Engine */ |
Nguyen Anh Quynh | bfcaba5 | 2015-03-04 17:45:23 +0800 | [diff] [blame] | 2 | /* By Nguyen Anh Quynh <aquynh@gmail.com>, 2013-2015 */ |
Nguyen Anh Quynh | 26ee41a | 2013-11-27 12:11:31 +0800 | [diff] [blame] | 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. |
| 8 | bool 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 | /// |
| 15 | bool MCOperandInfo_isOptionalDef(MCOperandInfo *m) |
| 16 | { |
| 17 | return m->Flags & (1 << MCOI_OptionalDef); |
| 18 | } |