Macros | Functions
MCInst.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "MCInst.h"
#include "utils.h"
Include dependency graph for MCInst.c:

Go to the source code of this file.

Macros

#define MCINST_CACHE   (ARR_SIZE(mcInst->Operands) - 1)
 

Functions

void MCInst_addOperand2 (MCInst *inst, MCOperand *Op)
 
void MCInst_clear (MCInst *inst)
 
unsigned MCInst_getNumOperands (const MCInst *inst)
 
unsigned MCInst_getOpcode (const MCInst *inst)
 
unsigned MCInst_getOpcodePub (const MCInst *inst)
 
MCOperandMCInst_getOperand (MCInst *inst, unsigned i)
 
void MCInst_Init (MCInst *inst)
 
void MCInst_insert0 (MCInst *inst, int index, MCOperand *Op)
 
void MCInst_setOpcode (MCInst *inst, unsigned Op)
 
void MCInst_setOpcodePub (MCInst *inst, unsigned Op)
 
void MCOperand_CreateImm0 (MCInst *mcInst, int64_t Val)
 
MCOperandMCOperand_CreateImm1 (MCInst *mcInst, int64_t Val)
 
void MCOperand_CreateReg0 (MCInst *mcInst, unsigned Reg)
 
MCOperandMCOperand_CreateReg1 (MCInst *mcInst, unsigned Reg)
 
double MCOperand_getFPImm (const MCOperand *op)
 
int64_t MCOperand_getImm (MCOperand *op)
 
unsigned MCOperand_getReg (const MCOperand *op)
 getReg - Returns the register number. More...
 
bool MCOperand_isFPImm (const MCOperand *op)
 
bool MCOperand_isImm (const MCOperand *op)
 
bool MCOperand_isReg (const MCOperand *op)
 
bool MCOperand_isValid (const MCOperand *op)
 
void MCOperand_setFPImm (MCOperand *op, double Val)
 
void MCOperand_setImm (MCOperand *op, int64_t Val)
 
void MCOperand_setReg (MCOperand *op, unsigned Reg)
 setReg - Set the register number. More...
 

Macro Definition Documentation

◆ MCINST_CACHE

#define MCINST_CACHE   (ARR_SIZE(mcInst->Operands) - 1)

Definition at line 16 of file MCInst.c.

Function Documentation

◆ MCInst_addOperand2()

void MCInst_addOperand2 ( MCInst inst,
MCOperand Op 
)

Definition at line 86 of file MCInst.c.

◆ MCInst_clear()

void MCInst_clear ( MCInst inst)

Definition at line 37 of file MCInst.c.

◆ MCInst_getNumOperands()

unsigned MCInst_getNumOperands ( const MCInst inst)

Definition at line 80 of file MCInst.c.

◆ MCInst_getOpcode()

unsigned MCInst_getOpcode ( const MCInst inst)

Definition at line 65 of file MCInst.c.

◆ MCInst_getOpcodePub()

unsigned MCInst_getOpcodePub ( const MCInst inst)

Definition at line 70 of file MCInst.c.

◆ MCInst_getOperand()

MCOperand* MCInst_getOperand ( MCInst inst,
unsigned  i 
)

Definition at line 75 of file MCInst.c.

◆ MCInst_Init()

void MCInst_Init ( MCInst inst)

Definition at line 18 of file MCInst.c.

◆ MCInst_insert0()

void MCInst_insert0 ( MCInst inst,
int  index,
MCOperand Op 
)

Definition at line 43 of file MCInst.c.

◆ MCInst_setOpcode()

void MCInst_setOpcode ( MCInst inst,
unsigned  Op 
)

Definition at line 55 of file MCInst.c.

◆ MCInst_setOpcodePub()

void MCInst_setOpcodePub ( MCInst inst,
unsigned  Op 
)

Definition at line 60 of file MCInst.c.

◆ MCOperand_CreateImm0()

void MCOperand_CreateImm0 ( MCInst mcInst,
int64_t  Val 
)

Definition at line 174 of file MCInst.c.

◆ MCOperand_CreateImm1()

MCOperand* MCOperand_CreateImm1 ( MCInst mcInst,
int64_t  Val 
)

Definition at line 164 of file MCInst.c.

◆ MCOperand_CreateReg0()

void MCOperand_CreateReg0 ( MCInst mcInst,
unsigned  Reg 
)

Definition at line 155 of file MCInst.c.

◆ MCOperand_CreateReg1()

MCOperand* MCOperand_CreateReg1 ( MCInst mcInst,
unsigned  Reg 
)

Definition at line 145 of file MCInst.c.

◆ MCOperand_getFPImm()

double MCOperand_getFPImm ( const MCOperand op)

Definition at line 135 of file MCInst.c.

◆ MCOperand_getImm()

int64_t MCOperand_getImm ( MCOperand op)

Definition at line 125 of file MCInst.c.

◆ MCOperand_getReg()

unsigned MCOperand_getReg ( const MCOperand op)

getReg - Returns the register number.

Definition at line 114 of file MCInst.c.

◆ MCOperand_isFPImm()

bool MCOperand_isFPImm ( const MCOperand op)

Definition at line 108 of file MCInst.c.

◆ MCOperand_isImm()

bool MCOperand_isImm ( const MCOperand op)

Definition at line 103 of file MCInst.c.

◆ MCOperand_isReg()

bool MCOperand_isReg ( const MCOperand op)

Definition at line 98 of file MCInst.c.

◆ MCOperand_isValid()

bool MCOperand_isValid ( const MCOperand op)

Definition at line 93 of file MCInst.c.

◆ MCOperand_setFPImm()

void MCOperand_setFPImm ( MCOperand op,
double  Val 
)

Definition at line 140 of file MCInst.c.

◆ MCOperand_setImm()

void MCOperand_setImm ( MCOperand op,
int64_t  Val 
)

Definition at line 130 of file MCInst.c.

◆ MCOperand_setReg()

void MCOperand_setReg ( MCOperand op,
unsigned  Reg 
)

setReg - Set the register number.

Definition at line 120 of file MCInst.c.



grpc
Author(s):
autogenerated on Fri May 16 2025 03:01:23