Code Listener  [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) More...
 
struct cl_loc loc
 location of the instruction's occurrence More...
 
union {
   struct {
      const char *   label
 
   }   insn_jmp
 valid only for CL_INSN_JMP More...
 
   struct {
      struct cl_operand *   src
 
      const char *   then_label
 
      const char *   else_label
 
   }   insn_cond
 valid only for CL_INSN_COND More...
 
   struct {
      struct cl_operand *   src
 
   }   insn_ret
 valid only for CL_INSN_RET More...
 
   struct {
      enum cl_unop_e   code
 
      struct cl_operand *   dst
 
      struct cl_operand *   src
 
   }   insn_unop
 valid only for CL_INSN_UNOP More...
 
   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 More...
 
   struct {
      const char *   name
 
   }   insn_label
 valid only for CL_INSN_LABEL More...
 
data
 

Detailed Description

single instruction definition

Definition at line 663 of file code_listener.h.

Field Documentation

enum cl_insn_e code

kind of instruction (enumeration)

Definition at line 667 of file code_listener.h.

Referenced by ClfOpCheckerBase::insn().

enum cl_unop_e code

Definition at line 696 of file code_listener.h.

enum cl_binop_e code

Definition at line 703 of file code_listener.h.

union { ... } data

Referenced by ClfOpCheckerBase::insn().

struct cl_operand* dst

Definition at line 697 of file code_listener.h.

const char* else_label

Definition at line 686 of file code_listener.h.

struct { ... } insn_binop

valid only for CL_INSN_BINOP

Referenced by ClfOpCheckerBase::insn().

struct { ... } insn_cond

valid only for CL_INSN_COND

Referenced by ClfOpCheckerBase::insn().

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

Referenced by ClfOpCheckerBase::insn().

struct { ... } insn_unop

valid only for CL_INSN_UNOP

Referenced by ClfOpCheckerBase::insn().

const char* label

Definition at line 679 of file code_listener.h.

struct cl_loc loc

location of the instruction's occurrence

Definition at line 672 of file code_listener.h.

Referenced by ClfOpCheckerBase::insn().

const char* name

Definition at line 711 of file code_listener.h.

struct cl_operand* src

Definition at line 684 of file code_listener.h.

struct cl_operand* src1

Definition at line 705 of file code_listener.h.

struct cl_operand* src2

Definition at line 706 of file code_listener.h.

const char* then_label

Definition at line 685 of file code_listener.h.


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