Predator  [unstable] git snapshot
Data Fields
cl_insn Struct Reference

single instruction definition More...

#include <code_listener.h>

Collaboration diagram for cl_insn:
Collaboration graph
[legend]

Data Fields

enum cl_insn_e code
 kind of instruction (enumeration)
struct cl_loc loc
 location of the instruction's occurrence
union {
   struct {
      const char *   label
   }   insn_jmp
 valid only for CL_INSN_JMP
   struct {
      struct cl_operand *   src
      const char *   then_label
      const char *   else_label
   }   insn_cond
 valid only for CL_INSN_COND
   struct {
      struct cl_operand *   src
   }   insn_ret
 valid only for CL_INSN_RET
   struct {
      enum cl_unop_e   code
      struct cl_operand *   dst
      struct cl_operand *   src
   }   insn_unop
 valid only for CL_INSN_UNOP
   struct {
      enum cl_binop_e   code
      struct cl_operand *   dst
      struct cl_operand *   src1
      struct cl_operand *   src2
   }   insn_binop
 valid only for CL_INSN_BINOP
   struct {
      const char *   name
   }   insn_label
 valid only for CL_INSN_LABEL
data

Detailed Description

single instruction definition

Definition at line 689 of file code_listener.h.

Field Documentation

enum cl_insn_e code

kind of instruction (enumeration)

Definition at line 693 of file code_listener.h.

enum cl_unop_e code

Definition at line 722 of file code_listener.h.

enum cl_binop_e code

Definition at line 729 of file code_listener.h.

union { ... } data
struct cl_operand* dst

Definition at line 723 of file code_listener.h.

const char* else_label

Definition at line 712 of file code_listener.h.

struct { ... } insn_binop

valid only for CL_INSN_BINOP

struct { ... } insn_cond

valid only for CL_INSN_COND

struct { ... } insn_jmp

valid only for CL_INSN_JMP

struct { ... } insn_label

valid only for CL_INSN_LABEL

struct { ... } insn_ret

valid only for CL_INSN_RET

struct { ... } insn_unop

valid only for CL_INSN_UNOP

const char* label

Definition at line 705 of file code_listener.h.

struct cl_loc loc

location of the instruction's occurrence

Definition at line 698 of file code_listener.h.

const char* name

Definition at line 737 of file code_listener.h.

struct cl_operand* src

Definition at line 710 of file code_listener.h.

struct cl_operand* src1

Definition at line 731 of file code_listener.h.

struct cl_operand* src2

Definition at line 732 of file code_listener.h.

const char* then_label

Definition at line 711 of file code_listener.h.


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