#include "parm.h"
#include "stree/ststructs.mh"
#include "pass4/sigs.h"
#include "codeutil.h"
#include <stdio.h>
Go to the source code of this file.
Defines | |
#define | UNDEFNAME 0 |
#define | NREGS 3 |
Functions | |
char * | Vnewlabel (char *name) |
char * | new_global_label (char *name) |
void | Vcall_mcount () |
NODE * | mk_put_selection (NODE *p, boolean Fflag) |
Varg_trace (NODE *param) | |
Ventry_trace (char *name, NODE *params, boolean Fflag) | |
Vexit_trace () | |
char * | Vnewreg () |
void | Vretreg (char *r) |
Variables | |
FILE * | Voutfile |
int | comp_index |
char * | entry_name |
char * | Gbase |
boolean | GFflag |
int | Goffset |
static char * | regs [NREGS] = {"r6","r7","r8"} |
static int | mask_bit [NREGS] = {R6, R7, R8} |
static boolean | reg_free [NREGS] = {TRUE, TRUE, TRUE} |
int | Vreg_bit |
#define NREGS 3 |
#define UNDEFNAME 0 |
Definition at line 10 of file codeutil.c.
Definition at line 73 of file codeutil.c.
References arg_list(), ASSERT, comp_index, copynode(), ERR_SIG, getcomp(), id_put, lock, mklist(), mknode(), NIL, tl_findsig(), TRUE, UNDEFNAME, unlock, and vfree.
Referenced by Garg_trace(), and Varg_trace().
char* new_global_label | ( | char * | name | ) |
Definition at line 37 of file codeutil.c.
References entry_name, and malloc.
Referenced by Gfuncconstructor().
Varg_trace | ( | NODE * | param | ) |
Definition at line 145 of file codeutil.c.
References Gbase, GFflag, Goffset, mk_put_selection(), NIL, Vexpression(), and Voutfile.
Referenced by Ventry_trace().
void Vcall_mcount | ( | ) |
Definition at line 52 of file codeutil.c.
References Vnewlabel(), and Voutfile.
Referenced by Ffuncbody(), and Vfuncbody().
Definition at line 172 of file codeutil.c.
References Gbase, GFflag, Goffset, length(), maprlist(), Varg_trace(), Vnewlabel(), and Voutfile.
Referenced by Ffuncbody(), and Vfuncbody().
Vexit_trace | ( | ) |
Definition at line 199 of file codeutil.c.
References Voutfile.
Referenced by Ffuncbody(), and Vfuncbody().
char* Vnewlabel | ( | char * | name | ) |
Definition at line 19 of file codeutil.c.
References entry_name, and malloc.
Referenced by Fexpression(), Vcall_mcount(), Ventry_trace(), Vexpression(), Vfuncbody(), and Vnewreg().
char* Vnewreg | ( | ) |
Definition at line 227 of file codeutil.c.
References FALSE, mask_bit, NREGS, reg_free, regs, tmp(), Ventry_mask, Vnewlabel(), Voutfile, and Vreg_bit.
Referenced by Vappl().
void Vretreg | ( | char * | r | ) |
int comp_index |
char* entry_name |
char* Gbase |
int Goffset |
int mask_bit[NREGS] = {R6, R7, R8} [static] |
char* regs[NREGS] = {"r6","r7","r8"} [static] |
int Vreg_bit |