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

#include <stdio.h>
#include "../parm.h"
#include "op_codes.h"
#include "codegen.h"
#include "datatypes/consnodes.h"

Go to the source code of this file.

Functions

static boolean is_this_arg (unsigned reg)
void clear_equiv_regs ()
boolean find_equiv_regs (struct RIC_instr *code, int n)
boolean only_indirect_ref (struct RIC_instr *code, int n)
struct RIC_instrunindirect (struct RIC_instr *code, int n, long m)

Variables

static ConsNodeequiv_regs


Function Documentation

void clear_equiv_regs (  ) 

Definition at line 32 of file var_in_reg.c.

References cn_del_hd(), and NIL.

Referenced by only_indirect_ref(), and unindirect().

boolean find_equiv_regs ( struct RIC_instr code,
int  n 
)

Definition at line 49 of file var_in_reg.c.

References RIC_instr::arg, ARG_BIT, cn_cons(), dbgmsg, FALSE, FIRST_AVAIL_LOC, is_this_arg(), MOV, RIC_instr::next_instr, NIL, RIC_instr::op_code, RIC_nil, RS, SK, T1, T2, and TRUE.

Referenced by only_indirect_ref(), and unindirect().

static boolean is_this_arg ( unsigned  reg  )  [static]

Definition at line 17 of file var_in_reg.c.

References cn_head, cn_tail, FALSE, NIL, and TRUE.

Referenced by find_equiv_regs(), only_indirect_ref(), and unindirect().

boolean only_indirect_ref ( struct RIC_instr code,
int  n 
)

Definition at line 91 of file var_in_reg.c.

References RIC_instr::arg, clear_equiv_regs(), DCL, FALSE, find_equiv_regs(), is_this_arg(), RIC_instr::label_arg, LDI, LDN, MOV, RIC_instr::next_instr, RIC_instr::op_code, RIC_nil, STI, TRUE, and UDC.

Referenced by accessible().

struct RIC_instr* unindirect ( struct RIC_instr code,
int  n,
long  m 
) [read]

Definition at line 146 of file var_in_reg.c.

References RIC_instr::arg, ARG_BIT, clear_equiv_regs(), copy_RIC(), dbgmsg, find_equiv_regs(), is_this_arg(), RIC_instr::label_arg, LDI, MOV, n_args, RIC_instr::next_instr, RIC_instr::op_code, op_code_table, RIC_nil, SK, and STI.


Variable Documentation

ConsNode* equiv_regs [static]

Definition at line 12 of file var_in_reg.c.


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