OpenADFortTk (basic)
src/sexp2whirl/sexp2whirl.h
Go to the documentation of this file.
00001 // ##########################################################
00002 // # This file is part of OpenADFortTk.                     #
00003 // # The full COPYRIGHT notice can be found in the top      #
00004 // # level directory of the OpenADFortTk source tree.       #
00005 // # For more information visit                             #
00006 // # http://www.mcs.anl.gov/openad                          #
00007 // ##########################################################
00008 
00009 #ifndef sexp2whirl_h
00010 #define sexp2whirl_h
00011 
00012 #include <sexp.h>
00013 
00014 #include "Open64IRInterface/Open64BasicTypes.h"
00015 
00016 namespace sexp2whirl {
00017   
00018   namespace XlateFlags {
00019     enum Flags {
00020       NONE       = 0x00000000, // 
00021       FOO1       = 0x00000001, // 
00022       FOO2       = 0x00000002, // 
00023       FOO3       = 0x00000004, // 
00024       FOO4       = 0x00000008, // 
00025     };
00026   };
00027   
00028   
00029   // Translate the whole WHIRL_IR, return a PU_FOREST and set GBL_SYMTAB state.
00030   extern PU_Info*
00031   TranslateIR(sexp_t* ir, int flags = 0);
00032 
00033   
00034   // Dump to std::cout
00035   extern void DumpIR(sexp_t* ir, int flags);
00036 
00037   // Convert to a diagnostic message string 
00038   extern const char* ErrIR(sexp_t* ir, int flags = 0);
00039   
00040 }; 
00041 #endif 
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines