/* Copyright (C) 2000, 2001 Silicon Graphics, Inc. All Rights Reserved. This program is free software; you can redistribute it and/or modify it under the terms of version 2 of the GNU General Public License as published by the Free Software Foundation. This program is distributed in the hope that it would be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Further, this software is distributed without any warranty that it is free of the rightful claim of any third person regarding infringement or the like. Any license provided herein, whether implied or otherwise, applies only to this software file. Patent licenses, if any, provided herein do not apply to combinations of this program with other software, or any other product whatsoever. You should have received a copy of the GNU General Public License along with this program; if not, write the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston MA 02111-1307, USA. Contact information: Silicon Graphics, Inc., 1600 Amphitheatre Pky, Mountain View, CA 94043, or: http://www.sgi.com For further information regarding this notice, see: http://oss.sgi.com/projects/GenInfo/NoticeExplan */ /* WFE == WHIRL Front End */ /* translate gnu stmt trees to whirl */ #ifndef wn_stmt_INCLUDED #define wn_stmt_INCLUDED #ifdef __cplusplus extern "C" { #endif /* expand one gnu stmt tree into symtab & whirl */ extern void WFE_Expand_Start_Cond (tree cond, int exitflag); extern void WFE_Expand_Start_Else (void); extern void WFE_Expand_End_Cond (void); extern void WFE_Expand_Start_Loop (int exitflag, struct nesting *whichloop); extern void WFE_Expand_Start_Loop_Continue_Elsewhere (int exitflag, struct nesting *whichloop); extern void WFE_Expand_Loop_Continue_Here (void); extern void WFE_Expand_End_Loop (void); extern void WFE_Expand_Continue_Loop (struct nesting *whichloop); extern void WFE_Expand_Exit_Loop (struct nesting *whichloop); extern void WFE_Expand_Exit_Loop_If_False (struct nesting *whichloop, tree cond); extern void WFE_Expand_Start_Case (int exit_flag, tree expr, tree type, char *printname); extern void WFE_Expand_Start_Case_Dummy (void); extern void WFE_Add_Case_Node (tree low, tree high, tree label); extern void WFE_Emit_Case_Nodes (void); extern void WFE_Expand_End_Case_Dummy (void); extern void WFE_Expand_End_Case (tree orig_index); extern void WFE_Expand_Label (tree label); extern void WFE_Expand_Goto (tree label); extern void WFE_Expand_Exit_Something (struct nesting *n, struct nesting *cond_stack, struct nesting *loop_stack, struct nesting *case_stack, LABEL_IDX *label_idx); extern void WFE_Record_Switch_Default_Label (tree label); extern void WFE_Expand_Return (tree retval); extern void WFE_Check_Undefined_Labels (void); extern void WFE_Expand_Computed_Goto (tree exp); extern void WFE_Declare_Nonlocal_Label (tree label); extern void Wfe_Expand_Asm_Operands (tree, tree, tree, tree, int, char *, int); extern LABEL_IDX WFE_Get_LABEL (tree label, int def); extern void WFE_Expand_Upc_Sync(int syncop, tree arg); extern void WFE_Expand_Affinity_Test(tree); extern WN* WFE_Add_Affinity_Test(WN*, WN*); #ifdef __cplusplus } #endif extern void WFE_Stmt_Init (void); #endif