CACAO
Data Structures | Macros | Typedefs | Functions | Variables
peephole.c File Reference

Go to the source code of this file.

Data Structures

struct  Combination
 
struct  Peeptable_entry
 

Macros

#define HASH_SIZE   1024
 
#define hash(_i1, _i2)   (((((Cell)(_i1))+((Cell)(_i2))))&(HASH_SIZE-1))
 

Typedefs

typedef struct Combination Combination
 
typedef struct Peeptable_entry Peeptable_entry
 

Functions

Cell prepare_peephole_table (Inst insts[])
 
void init_peeptable (void)
 
ptrint peephole_opt (ptrint inst1, ptrint inst2, Cell peeptable)
 

Variables

Combination peephole_table []
 
int use_super = 1
 
Cell peeptable
 

Macro Definition Documentation

#define hash (   _i1,
  _i2 
)    (((((Cell)(_i1))+((Cell)(_i2))))&(HASH_SIZE-1))

Definition at line 55 of file peephole.c.

#define HASH_SIZE   1024

Definition at line 54 of file peephole.c.

Typedef Documentation

typedef struct Combination Combination

Function Documentation

void init_peeptable ( void  )

Definition at line 82 of file peephole.c.

ptrint peephole_opt ( ptrint  inst1,
ptrint  inst2,
Cell  peeptable 
)

Definition at line 87 of file peephole.c.

Cell prepare_peephole_table ( Inst  insts[])

Definition at line 59 of file peephole.c.

Variable Documentation

Combination peephole_table[]
Initial value:
= {
{-1,-1,-1}
}

Definition at line 40 of file peephole.c.

Cell peeptable

Definition at line 57 of file peephole.c.

int use_super = 1

Definition at line 45 of file peephole.c.