Rizin
unix-like reverse engineering framework and cli tools
MCOperand Struct Reference

#include <MCInst.h>

Public Types

enum  { kInvalid = 0 , kRegister , kImmediate , kFPImmediate }
 

Public Attributes

enum MCOperand:: { ... }  MachineOperandType
 
unsigned char Kind
 
union {
   unsigned   RegVal
 
   int64_t   ImmVal
 
   double   FPImmVal
 
}; 
 

Detailed Description

MCOperand - Instances of this class represent operands of the MCInst class. This is a simple discriminated union.

Definition at line 30 of file MCInst.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
kInvalid 

Uninitialized.

kRegister 

Register operand.

kImmediate 

Immediate operand.

kFPImmediate 

Floating-point immediate operand.

Definition at line 31 of file MCInst.h.

31  {
32  kInvalid = 0,
33  kRegister,
34  kImmediate,
35  kFPImmediate,
@ kFPImmediate
Floating-point immediate operand.
Definition: MCInst.h:35
@ kRegister
Register operand.
Definition: MCInst.h:33
@ kInvalid
Uninitialized.
Definition: MCInst.h:32
@ kImmediate
Immediate operand.
Definition: MCInst.h:34
enum MCOperand::@371 MachineOperandType

Member Data Documentation

◆ 

union { ... }

◆ FPImmVal

double MCOperand::FPImmVal

Definition at line 42 of file MCInst.h.

◆ ImmVal

int64_t MCOperand::ImmVal

Definition at line 41 of file MCInst.h.

Referenced by MCInst_Init().

◆ Kind

unsigned char MCOperand::Kind

Definition at line 37 of file MCInst.h.

Referenced by MCInst_Init().

◆ 

enum { ... } MCOperand::MachineOperandType

◆ RegVal

unsigned MCOperand::RegVal

Definition at line 40 of file MCInst.h.


The documentation for this struct was generated from the following file: