Open64 (mfef90, whirl2f, and IR tools)  TAG: version-openad; SVN changeset: 916
proc_gen.cxx File Reference
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdarg.h>
#include "gen_util.h"
#include "proc_gen.h"
Include dependency graph for proc_gen.cxx:

Go to the source code of this file.

Functions

static char * Dot_To_Line (const char *str)
void PROC_Create (const char *proc_name,...)

Variables

static const char *const interface []

Function Documentation

static char* Dot_To_Line ( const char *  str) [static]

Definition at line 86 of file proc_gen.cxx.

References result, and s.

Referenced by PROC_Create().

void PROC_Create ( const char *  proc_name,
  ... 
)

Definition at line 110 of file proc_gen.cxx.

References cfile, Dot_To_Line(), efile, Emit_Footer(), Emit_Header(), fprintf(), hfile, interface, and NULL.

Referenced by main().

Here is the call graph for this function:


Variable Documentation

const char* const interface[] [static]
Initial value:
 {
  "/* ====================================================================",
  " * ====================================================================",
  " *",
  " * Description:",
  " *",
  " *   A description of the PROC (actually just an enum of all the processors).",
  " *   The description exports the following:",
  " *",
  " *   typedef (enum) PROCESSOR",
  " *      Contains all the target processors.  Their names have the form",
  " *      PROCESSOR_<name>.",
  " *",
  " *   const PROCESSOR PROCESSOR_UNDEFINED",
  " *      Useful value guaranteed not to be a valid PROCESSOR.",
  " *",
  " *   const int PROCESSOR_count",
  " *      Gives the number of processors.",
  " *",
  " *   PROCESSOR PROCESSOR_Value",
  " *      The current processor.",
  " *",
  " *   const char* PROCESSOR_Name(PROCESSOR topcode)",
  " *      Returns a name for the given PROCESSOR.",
  " *",
  " * ====================================================================",
  " * ====================================================================",
  " */",
  NULL
}

Definition at line 53 of file proc_gen.cxx.

Referenced by PROC_Create().

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines