OpenADFortTk (basic)
src/lib/support/Open64IRInterface/WhirlIO.h
Go to the documentation of this file.
00001 // -*-Mode: C++;-*-
00002 #ifndef WhirlIO_h_INCLUDED
00003 #define WhirlIO_h_INCLUDED
00004 
00005 //************************** System Include Files ***************************
00006 
00007 //************************** Open64 Include Files ***************************
00008 
00009 #include "Open64BasicTypes.h"
00010 
00011 //*************************** User Include Files ****************************
00012 
00013 #include "WhirlGlobalStateUtils.h"
00014 
00015 //************************** Forward Declarations ***************************
00016 
00017 //***************************************************************************
00018 
00019 // ReadIR: Given a WHIRL filename, reads the entire contents into
00020 // memory to form a PU forest (a collection of PU trees).  Prepares
00021 // both the regular symbol tables and the back end symbol tables.
00022 PU_Info*
00023 ReadIR(const char* irfilename, bool noCleanUpWhirl=false);
00024 
00025 // WriteIR: given a filename write the entire IR (a PU forest) to
00026 // disk.  *Warning*: Writing to disk also frees part of the IR when
00027 // compiled with BACK_END.
00028 void 
00029 WriteIR(const char* irfilename, PU_Info* pu_forest);
00030 
00031 // FreeIR: Given a PU forest, frees all memory consumed by it.
00032 void 
00033 FreeIR(PU_Info *pu_forest);
00034 
00035 void 
00036 PrepareIR(PU_Info *pu_forest);
00037 
00038 void 
00039 DumpIR(PU_Info *pu_forest);
00040 
00041 //***************************************************************************
00042 
00043 #endif /* WhirlIO_h_INCLUDED */
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines