diff options
author | 2023-10-10 14:33:42 +0000 | |
---|---|---|
committer | 2023-10-10 14:33:42 +0000 | |
commit | af1a266670d040d2f4083ff309d732d648afba2a (patch) | |
tree | 2fc46203448ddcc6f81546d379abfaeb323575e9 /capstone/MCInstrDesc.c | |
parent | e02cda008591317b1625707ff8e115a4841aa889 (diff) |
Change-Id: Iaf8d18082d3991dec7c0ebbea540f092188eb4ec
Diffstat (limited to 'capstone/MCInstrDesc.c')
-rw-r--r-- | capstone/MCInstrDesc.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/capstone/MCInstrDesc.c b/capstone/MCInstrDesc.c new file mode 100644 index 000000000..9bb264a43 --- /dev/null +++ b/capstone/MCInstrDesc.c @@ -0,0 +1,18 @@ +/* Capstone Disassembly Engine */ +/* By Nguyen Anh Quynh <aquynh@gmail.com>, 2013-2019 */ + +#include "MCInstrDesc.h" + +/// isPredicate - Set if this is one of the operands that made up of +/// the predicate operand that controls an isPredicable() instruction. +bool MCOperandInfo_isPredicate(const MCOperandInfo *m) +{ + return m->Flags & (1 << MCOI_Predicate); +} + +/// isOptionalDef - Set if this operand is a optional def. +/// +bool MCOperandInfo_isOptionalDef(const MCOperandInfo *m) +{ + return m->Flags & (1 << MCOI_OptionalDef); +} |