C:/Users/Dennis/src/lang/russell.orig/src/pass5d/appl.c File Reference

#include "parm.h"
#include <stdio.h>
#include "stree/ststructs.mh"
#include "codegen.h"
#include "op_codes.h"
#include "pass4/sigs.h"
#include "pass3/is_local.h"

Go to the source code of this file.

Defines

#define OBSOLETE
#define DEBUG

Functions

boolean Gpush_size ()
boolean is_id ()
boolean is_int_const ()
NODEequiv_expr ()
boolean vacuous_arg (NODE *p)
static boolean maprl1_non_vacuous (ConsNode *l, void(*fn)())
void maprlist_non_vacuous (LIST l, void(*fn)())
 Garg_expression (NODE *p, boolean needed)
 Gheap_expression (NODE *p, boolean needed)
 gen_abs (int loc)
boolean is_id (NODE *p)
 Gappl (NODE *p, int rloc, boolean last_expr)
boolean Gpush_size (int size, NODE *op)

Variables

int yydebug
int yynerrs
FILE * unparse_file
char str_code_buf []
int avail_loc
int Glevel
NODEGcurrent
boolean Vflag
boolean Nflag
boolean Oflag
boolean fflag
boolean Fflag
boolean hflag
FILE * Goutfile
boolean sl_available
static int arg_loc
boolean reg_ok = FALSE
static int heap_loc
static int heap_offset


Define Documentation

#define DEBUG

Definition at line 3 of file appl.c.

#define OBSOLETE

Definition at line 1 of file appl.c.


Function Documentation

NODE* equiv_expr (  ) 

Referenced by equiv_expr(), Gappl(), and Gident().

Gappl ( NODE p,
int  rloc,
boolean  last_expr 
)

Definition at line 265 of file appl.c.

References ADI, ADP, AL, ALH, ALS, AR, ARG, arg_loc, ASSERT, ASSERT2, avail_loc, BR, BRF, BRT, C0, calls_put(), CLC, CLI, CLL, dbgmsg, DCL, DCL_ADDR, DCL_INT, DEA, DISPLAY, equiv_expr(), ERR, EXT, FALSE, Fflag, fflag, first_param_loc, FO_EP, FO_IP, FO_SIZE, free_RIC(), Garg_expression(), Gcurrent, GEI, gen1, gen2, gen3, gen_abs(), genl, Gexpression(), GF, Gheap_expression(), Gident(), Glevel, Goutfile, Gpush_size(), Gtraverse(), has_sig, hflag, HINT, impure(), int_const_val, is_id(), is_int_const(), LBA, LBL, LDI, LDN, LTI, maprlist_non_vacuous(), MLI, MOV, Nflag, NGI, NIL, NSC, Oflag, ONS, OPT, prtree(), reg_ok, RL, SBI, sig, SK, sl_available, SP, STI, str_code_buf, TL, TRUE, UDC, UN, UNDISPLAY, unindirect(), unparse(), unparse_file, v, vacuous_arg(), Vflag, and write_RIC_seq().

Referenced by Gexpression(), and Gpush_size().

Garg_expression ( NODE p,
boolean  needed 
)

Definition at line 129 of file appl.c.

References arg_loc, calls_put(), FALSE, Gexpression(), is_id(), NIL, reg_ok, SK, unparse(), unparse_file, and Vflag.

Referenced by Gappl().

gen_abs ( int  loc  ) 

Definition at line 236 of file appl.c.

Referenced by Gappl().

Gheap_expression ( NODE p,
boolean  needed 
)

Definition at line 206 of file appl.c.

References avail_loc, calls_put(), DCL, DCL_INT, FALSE, gen1, gen2, gen3, Gexpression(), is_id(), STI, UDC, unparse(), unparse_file, and Vflag.

Referenced by Gappl().

boolean Gpush_size ( int  size,
NODE op 
)

Definition at line 1020 of file appl.c.

References ARG, avail_loc, checksigs(), copynode(), DCL, DCL_INT, FALSE, Gappl(), gen1, gen2, getcomp(), id_size, LDN, mknode(), NIL, TRUE, and UDC.

boolean Gpush_size (  ) 

Referenced by compile_decl(), and Gappl().

boolean is_id ( NODE p  ) 

Definition at line 250 of file appl.c.

boolean is_id (  ) 

Referenced by accessible(), cond_sl_analyze1(), Gappl(), Garg_expression(), get_complexity(), Gheap_expression(), and Vappl().

boolean is_int_const (  ) 

static boolean maprl1_non_vacuous ( ConsNode l,
void (*)()  fn 
) [static]

Definition at line 98 of file appl.c.

References cn_head, cn_tail, FALSE, NIL, and vacuous_arg().

Referenced by maprlist_non_vacuous().

void maprlist_non_vacuous ( LIST  l,
void (*)()  fn 
)

Definition at line 112 of file appl.c.

References maprl1_non_vacuous().

Referenced by Gappl().

boolean vacuous_arg ( NODE p  ) 

Definition at line 60 of file appl.c.

References ASSERT, comp_st(), dbgmsg, FALSE, NIL, TRUE, tsig_length(), and var_Void.

Referenced by check_vacuous(), construct_inline(), findsig(), Gappl(), Gfind_inline(), and maprl1_non_vacuous().


Variable Documentation

int arg_loc [static]

Definition at line 55 of file appl.c.

Referenced by Gappl(), Garg_expression(), and Garg_trace().

int avail_loc

Definition at line 15 of file extract_sig.c.

boolean Fflag

Definition at line 133 of file main.c.

boolean fflag

Definition at line 132 of file main.c.

NODE* Gcurrent

Definition at line 128 of file codegen.c.

Referenced by compile_decl(), Gappl(), Gfunc_body(), GgenerateXcode(), and Gident().

int Glevel

Definition at line 126 of file codegen.c.

Referenced by Gappl(), Gexpression(), Gfunc_body(), Gfuncconstructor(), Ggeneratepcode(), GgenerateXcode(), Gident(), and Gtraverse().

FILE* Goutfile

Definition at line 129 of file codegen.c.

Referenced by Gappl(), Gexpression(), Ggeneratecode(), Ggeneratepcode(), and GgenerateXcode().

int heap_loc [static]

Definition at line 203 of file appl.c.

int heap_offset [static]

Definition at line 204 of file appl.c.

boolean hflag

Definition at line 140 of file main.c.

Referenced by Gappl(), main(), Vallocwalk(), and Vappl().

boolean Nflag

Definition at line 131 of file main.c.

boolean Oflag

Definition at line 135 of file main.c.

boolean reg_ok = FALSE

Definition at line 119 of file appl.c.

Referenced by Gappl(), and Garg_expression().

boolean sl_available

Definition at line 31 of file codegen.c.

Referenced by Gappl(), Gcompile_funcs(), Gexpression(), Gfunc_body(), GgenerateXcode(), and Gident().

char str_code_buf[]

Definition at line 39 of file appl.c.

FILE* unparse_file

Definition at line 6 of file unparse.c.

boolean Vflag

Definition at line 6 of file extract_sig.c.

int yydebug

Definition at line 58 of file scan.c.

int yynerrs

Definition at line 31 of file testvertex.c.


Generated on Fri Jan 25 10:39:50 2008 for russell by  doxygen 1.5.4