Code Listener  [unstable] git snapshot
Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes
ClfOpCheckerBase Class Referenceabstract

#include <clf_opchk.hh>

Inheritance diagram for ClfOpCheckerBase:
Inheritance graph
[legend]
Collaboration diagram for ClfOpCheckerBase:
Collaboration graph
[legend]

Public Member Functions

 ClfOpCheckerBase (ICodeListener *slave)
 
virtual void file_open (const char *file_name)
 See cl_code_listener::file_open. More...
 
virtual void fnc_open (const struct cl_operand *fnc)
 See cl_code_listener::fnc_open. More...
 
virtual void fnc_arg_decl (int arg_id, const struct cl_operand *arg_src)
 See cl_code_listener::fnc_arg_decl. More...
 
virtual void insn (const struct cl_insn *cli)
 See cl_code_listener::insn. More...
 
virtual void insn_call_open (const struct cl_loc *loc, const struct cl_operand *dst, const struct cl_operand *fnc)
 See cl_code_listener::insn_call_open. More...
 
virtual void insn_call_arg (int arg_id, const struct cl_operand *arg_src)
 See cl_code_listener::insn_call_arg. More...
 
virtual void insn_switch_open (const struct cl_loc *loc, const struct cl_operand *src)
 See cl_code_listener::insn_switch_open. More...
 
virtual void file_close ()
 See cl_code_listener::file_close. More...
 
virtual void fnc_close ()
 See cl_code_listener::fnc_close. More...
 
virtual void bb_open (const char *bb_name)
 See cl_code_listener::bb_open. More...
 
virtual void insn_call_close ()
 See cl_code_listener::insn_call_close. More...
 
virtual void insn_switch_case (const struct cl_loc *loc, const struct cl_operand *val_lo, const struct cl_operand *val_hi, const char *label)
 See cl_code_listener::insn_switch_case. More...
 
virtual void insn_switch_close ()
 See cl_code_listener::insn_switch_close. More...
 
virtual void acknowledge ()
 See cl_code_listener::acknowledge. More...
 

Protected Member Functions

struct cl_loclastLocation () const
 
virtual void checkDstOperand (const struct cl_operand *)=0
 
virtual void checkSrcOperand (const struct cl_operand *)=0
 

Private Member Functions

void handleArrayIdx (const struct cl_operand *)
 
void handleSrc (const struct cl_operand *)
 
void handleDstSrc (const struct cl_operand *)
 

Private Attributes

struct cl_loc loc_
 

Detailed Description

Definition at line 26 of file clf_opchk.hh.

Constructor & Destructor Documentation

Member Function Documentation

virtual void acknowledge ( )
inlinevirtualinherited
virtual void bb_open ( const char *  bb_name)
inlinevirtualinherited

See cl_code_listener::bb_open.

Implements ICodeListener.

Definition at line 77 of file cl_filter.hh.

References ICodeListener::bb_open(), and ClFilterBase::slave_.

virtual void checkDstOperand ( const struct cl_operand )
protectedpure virtual
Note
design pattern template method
virtual void checkSrcOperand ( const struct cl_operand )
protectedpure virtual
Note
design pattern template method
virtual void file_close ( )
inlinevirtualinherited

See cl_code_listener::file_close.

Implements ICodeListener.

Definition at line 56 of file cl_filter.hh.

References ICodeListener::file_close(), and ClFilterBase::slave_.

virtual void file_open ( const char *  file_name)
inlinevirtual

See cl_code_listener::file_open.

Reimplemented from ClFilterBase.

Definition at line 47 of file clf_opchk.hh.

References ClFilterBase::file_open(), and loc_.

virtual void fnc_arg_decl ( int  arg_id,
const struct cl_operand arg_src 
)
inlinevirtual

See cl_code_listener::fnc_arg_decl.

Reimplemented from ClFilterBase.

Definition at line 61 of file clf_opchk.hh.

References ClFilterBase::fnc_arg_decl(), and handleDstSrc().

virtual void fnc_close ( )
inlinevirtualinherited

See cl_code_listener::fnc_close.

Implements ICodeListener.

Definition at line 73 of file cl_filter.hh.

References ICodeListener::fnc_close(), and ClFilterBase::slave_.

virtual void fnc_open ( const struct cl_operand fnc)
inlinevirtual
void handleArrayIdx ( const struct cl_operand )
private
void handleDstSrc ( const struct cl_operand )
private

Referenced by fnc_arg_decl(), insn(), and insn_call_open().

void handleSrc ( const struct cl_operand )
private
virtual void insn ( const struct cl_insn cli)
inlinevirtual
virtual void insn_call_arg ( int  arg_id,
const struct cl_operand arg_src 
)
inlinevirtual

See cl_code_listener::insn_call_arg.

Reimplemented from ClFilterBase.

Definition at line 112 of file clf_opchk.hh.

References handleSrc(), and ClFilterBase::insn_call_arg().

virtual void insn_call_close ( )
inlinevirtualinherited
virtual void insn_call_open ( const struct cl_loc loc,
const struct cl_operand dst,
const struct cl_operand fnc 
)
inlinevirtual

See cl_code_listener::insn_call_open.

Reimplemented from ClFilterBase.

Definition at line 101 of file clf_opchk.hh.

References handleDstSrc(), handleSrc(), ClFilterBase::insn_call_open(), and loc_.

virtual void insn_switch_case ( const struct cl_loc loc,
const struct cl_operand val_lo,
const struct cl_operand val_hi,
const char *  label 
)
inlinevirtualinherited
virtual void insn_switch_close ( )
inlinevirtualinherited
virtual void insn_switch_open ( const struct cl_loc loc,
const struct cl_operand src 
)
inlinevirtual

See cl_code_listener::insn_switch_open.

Reimplemented from ClFilterBase.

Definition at line 120 of file clf_opchk.hh.

References handleSrc(), ClFilterBase::insn_switch_open(), and loc_.

struct cl_loc* lastLocation ( ) const
inlineprotected

Definition at line 31 of file clf_opchk.hh.

References loc_.

Field Documentation

struct cl_loc loc_
private

Definition at line 130 of file clf_opchk.hh.

Referenced by file_open(), fnc_open(), insn(), insn_call_open(), insn_switch_open(), and lastLocation().


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