osprey/be/whirl2f/st2f.cxx File Reference

#include "whirl2f_common.h"
#include "PUinfo.h"
#include "tcon2f.h"
#include "wn2f.h"
#include "ty2f.h"
#include "st2f.h"
#include "init2f.h"
#include "cxx_memory.h"
#include "be_symtab.h"

Include dependency graph for st2f.cxx:

Go to the source code of this file.

Typedefs

typedef void(* ST2F_HANDLER_FUNC )(TOKEN_BUFFER, ST *)

Functions/Subroutines

static BOOL ST2F_Is_Dummy_Procedure (ST *st)
static void ST2F_Declare_Return_Type (TOKEN_BUFFER tokens, TY_IDX return_ty, const char *name)
static void ST2F_ignore (TOKEN_BUFFER tokens, ST *st)
static void ST2F_decl_error (TOKEN_BUFFER tokens, ST *st)
static void ST2F_decl_var (TOKEN_BUFFER tokens, ST *st)
static void ST2F_decl_func (TOKEN_BUFFER tokens, ST *st)
static void ST2F_decl_const (TOKEN_BUFFER tokens, ST *st)
static void ST2F_use_error (TOKEN_BUFFER tokens, ST *st)
static void ST2F_use_var (TOKEN_BUFFER tokens, ST *st)
static void ST2F_use_func (TOKEN_BUFFER tokens, ST *st)
static void ST2F_use_const (TOKEN_BUFFER tokens, ST *st)
static void ST2F_use_block (TOKEN_BUFFER tokens, ST *st)
static void ST2F_Define_Preg (const char *name, TY_IDX ty)
void ST2F_initialize ()
void ST2F_finalize ()
void ST2F_use_translate (TOKEN_BUFFER tokens, ST *st)
void ST2F_deref_translate (TOKEN_BUFFER tokens, ST *st)
void ST2F_decl_translate (TOKEN_BUFFER tokens, const ST *st)
void ST2F_func_header (TOKEN_BUFFER tokens, ST *st, ST **params, INT32 num_params, BOOL is_altentry)
void ST2F_Use_Preg (TOKEN_BUFFER tokens, TY_IDX preg_ty, PREG_IDX preg_idx)
void ST2F_Declare_Tempvar (TY_IDX ty, UINT idx)

Variables

BOOL Use_Purple_Array_Bnds_Placeholder
static const ST2F_HANDLER_FUNC ST2F_Decl_Handler [CLASS_COUNT]
static const ST2F_HANDLER_FUNC ST2F_Use_Handler [CLASS_COUNT]


Typedef Documentation

Definition at line 136 of file st2f.cxx.


Function Documentation

static void ST2F_decl_const ( TOKEN_BUFFER  tokens,
ST st 
) [static]

Definition at line 380 of file st2f.cxx.

References ASSERT_DBG_FATAL, DIAG_W2F_UNEXPECTED_SYMCLASS, FALSE, and ST_sym_class().

static void ST2F_decl_error ( TOKEN_BUFFER  tokens,
ST st 
) [static]

Definition at line 188 of file st2f.cxx.

References ASSERT_DBG_FATAL, DIAG_W2F_UNEXPECTED_SYMCLASS, FALSE, and ST_sym_class().

static void ST2F_decl_func ( TOKEN_BUFFER  tokens,
ST st 
) [static]

void ST2F_decl_translate ( TOKEN_BUFFER  tokens,
const ST st 
)

static void ST2F_decl_var ( TOKEN_BUFFER  tokens,
ST st 
) [static]

static void ST2F_Declare_Return_Type ( TOKEN_BUFFER  tokens,
TY_IDX  return_ty,
const char *  name 
) [static]

void ST2F_Declare_Tempvar ( TY_IDX  ty,
UINT  idx 
)

static void ST2F_Define_Preg ( const char *  name,
TY_IDX  ty 
) [static]

void ST2F_deref_translate ( TOKEN_BUFFER  tokens,
ST st 
)

void ST2F_finalize (  ) 

Definition at line 547 of file st2f.cxx.

Referenced by W2F_Fini().

void ST2F_func_header ( TOKEN_BUFFER  tokens,
ST st,
ST **  params,
INT32  num_params,
BOOL  is_altentry 
)

static void ST2F_ignore ( TOKEN_BUFFER  tokens,
ST st 
) [static]

Definition at line 182 of file st2f.cxx.

void ST2F_initialize (  ) 

Definition at line 540 of file st2f.cxx.

Referenced by W2F_Init().

static BOOL ST2F_Is_Dummy_Procedure ( ST st  )  [static]

Definition at line 759 of file st2f.cxx.

References BOOL, FALSE, KIND_FUNCTION, KIND_POINTER, SCLASS_FORMAL, ST_is_value_parm, ST_sclass, ST_type, TRUE, TY_kind, and TY_pointed.

Referenced by ST2F_decl_var().

static void ST2F_use_block ( TOKEN_BUFFER  tokens,
ST st 
) [static]

static void ST2F_use_const ( TOKEN_BUFFER  tokens,
ST st 
) [static]

static void ST2F_use_error ( TOKEN_BUFFER  tokens,
ST st 
) [static]

Definition at line 395 of file st2f.cxx.

References ASSERT_DBG_FATAL, DIAG_W2F_UNEXPECTED_SYMCLASS, FALSE, and ST_sym_class().

static void ST2F_use_func ( TOKEN_BUFFER  tokens,
ST st 
) [static]

void ST2F_Use_Preg ( TOKEN_BUFFER  tokens,
TY_IDX  preg_ty,
PREG_IDX  preg_idx 
)

void ST2F_use_translate ( TOKEN_BUFFER  tokens,
ST st 
)

static void ST2F_use_var ( TOKEN_BUFFER  tokens,
ST st 
) [static]


Variable Documentation

const ST2F_HANDLER_FUNC ST2F_Decl_Handler[CLASS_COUNT] [static]

Initial value:

{
  &ST2F_ignore,      
  &ST2F_decl_var,    
  &ST2F_decl_func,   
  &ST2F_decl_const,  
  &ST2F_decl_error,  
  &ST2F_decl_error,  
  &ST2F_decl_error,  
}

Definition at line 138 of file st2f.cxx.

Referenced by ST2F_decl_translate().

const ST2F_HANDLER_FUNC ST2F_Use_Handler[CLASS_COUNT] [static]

Initial value:

Definition at line 149 of file st2f.cxx.

Referenced by ST2F_use_translate().

Definition at line 67 of file ty2f.cxx.

Referenced by ST2F_decl_var(), and WN2F_translate_purple_main().


Generated on Wed Apr 8 14:37:05 2009 for Open64 by  doxygen 1.5.6