vrq

/builddir/build/BUILD/vrq-1.0.62/src/main.cc File Reference

#include <config.h>
#include <stdio.h>
#include <string.h>
#include <unistd.h>
#include <set>
#include <vector>
#include <list>
#include <map>
#include <sys/types.h>
#include <dirent.h>
#include "glue.h"
#include "ltdl.h"
#include "cobstack.h"
#include "csymbol.h"
#include "cvector.h"
#include "cnode.h"
#include "lex.h"
#include "main.h"
#include "csymtab.h"
#include "cmacro.h"
#include "cmodule.h"
#include "cinstance.h"
#include "systask.h"
#include "build.h"
#include "cxprop.h"
#include "cdumpverilog.h"

Defines

#define VRQ   "Vrq"

Functions

void ParseArguments (int argc, const char **argv)
void shell_assert (const char *filename, int linenumber)
void shell_xfree (void *p, int s)
void * shell_xmalloc (int s)
void PrintUsage (void)
const char * VrqVersionString ()
 Plugins should not be using these.
void GetPluginPaths (list< string > &paths)
 Get list of paths to where plugins may reside.
void GetPlusArgs (const char *prefix, list< string > &args)
 Get list of plusargs from command line that matche prefix.
char * GetPlusArg (const char *prefix)
 Get plusarg from command line that matches prefix.
void AddPlusArg (const char *s)
int PlusArgMatch (const char *s1, const char *s2)
void ValidatePlusArgs ()
void DumpWarningList ()
void ParseWarningSwitch (const char *s)
void ReadArgumentFile (const char *filename)
CNodeLoad (const char *filename, int direct, int included)
static CNode_Resolve (CModule *module, int reportError)
static CNodeResolveModuleList (CBackend *tool, CNode *n, int reportError)
static int ModulesResolved (CBackend *tool, CNode *n)
void LoadTools ()
static void DumpCode (FILE *f, CNode *n)
int main (int argc, char **argv)

Variables

map< string, CBackend * > tools
CObstack thePermStack
CObstackpermStack = &thePermStack
CObstack theUnitStack
CObstackunitStack = &theUnitStack
CObstack thePluginStack
CObstackpluginStack = &thePluginStack
CObstack theTokenStack
CObstacktokenStack = &theTokenStack
FILE * logfile = stdout
CSymtab< CMacromacroSymtab
CSymtab< CModuledefSymtab
CSymtab< CDeclmoduleSymtab
list< CBackend * > enabledTools
list< string > pragmas
set< string > pragmaTickDefines
list< string > pluginPaths
int totalMem = 0
CSymbol ** fileList = NULL
CSymbol ** libSearchList = NULL
CSymbol ** libFileSearchList = NULL
CSymbol ** incSearchList = NULL
CSymbol ** libExtList = NULL
static char whiteSpace [] = " \t\f\n\r"
INT32 argNestLevel
vector< CSymbol * > aFileList
vector< CSymbol * > aLibSearchList
vector< CSymbol * > aLibFileSearchList
vector< CSymbol * > aIncSearchList
vector< CSymbol * > aLibExtList
CNodecodeList = NULL
CSymtab< CDeclportSymtab
CSymtab< CDeclfrefSymtab
int errorCount = 0
int warningCount = 0
int dumpFlag = FALSE
int debugFlag = FALSE
int quietFlag = FALSE
int inferVectors = FALSE
int macrocheck = FALSE
DelayMode_t delayMode = eTYP_DELAY
const char * outputPath = NULL
const char * outputDirectory = NULL
vector< char * > plusArgs
int modulesDirectlyDefined
int modulesIncluded
int ignoreVrqComments = 0
int verboseFlag = FALSE
int keepMacros
int keepMacroDefinitions
CDumpVerilog * dumpVerilog
char copyright []
static const char * vrqVersion = VERSION
set< string > loadedFiles
static set< lt_dlhandle > toolHandles

Define Documentation

#define VRQ   "Vrq"

Function Documentation

static CNode* _Resolve ( CModule module,
int  reportError 
) [static]
void AddPlusArg ( const char *  s  ) 
static void DumpCode ( FILE *  f,
CNode n 
) [static]
void DumpWarningList (  ) 
CNode* Load ( const char *  filename,
int  direct,
int  included 
)
void LoadTools (  ) 
int main ( int  argc,
char **  argv 
)
static int ModulesResolved ( CBackend tool,
CNode n 
) [static]
void ParseArguments ( int  argc,
const char **  argv 
)
void ParseWarningSwitch ( const char *  s  ) 
int PlusArgMatch ( const char *  s1,
const char *  s2 
)
void PrintUsage ( void   ) 
void ReadArgumentFile ( const char *  filename  ) 
static CNode* ResolveModuleList ( CBackend tool,
CNode n,
int  reportError 
) [static]
void shell_assert ( const char *  filename,
int  linenumber 
)
void shell_xfree ( void *  p,
int  s 
)
void* shell_xmalloc ( int  s  ) 
void ValidatePlusArgs (  ) 

Variable Documentation

vector<CSymbol*> aFileList
vector<CSymbol*> aLibExtList
CNode* codeList = NULL
char copyright[]
Initial value:
 "Copyright (C) 1997-2009 Mark Hummel\n\n"
             "Vrq comes with ABSOLUTELY NO WARRANTY; This is free\n"
             "software, and you are welcome to redistribute it under the\n"
             "terms of the GNU General Public License as published by\n"
             "the Free Software Foundation; either version 2 of the License,\n"
             "or (at your option) any later version. "
             "\n\n"
int debugFlag = FALSE
DelayMode_t delayMode = eTYP_DELAY
int dumpFlag = FALSE
CDumpVerilog* dumpVerilog
int errorCount = 0
CSymbol** fileList = NULL
int inferVectors = FALSE
CSymbol** libExtList = NULL
set<string> loadedFiles
FILE* logfile = stdout
int macrocheck = FALSE
const char* outputDirectory = NULL
const char* outputPath = NULL
list<string> pluginPaths
vector<char*> plusArgs
list<string> pragmas
set<string> pragmaTickDefines
int quietFlag = FALSE
set<lt_dlhandle> toolHandles [static]
map<string,CBackend*> tools
int totalMem = 0
int verboseFlag = FALSE
const char* vrqVersion = VERSION [static]
int warningCount = 0
char whiteSpace[] = " \t\f\n\r" [static]

Generated on 16 Oct 2009 for vrq by  doxygen 1.6.1