Intel SPMD Program Compiler  1.9.1
Functions
main.cpp File Reference

main() entrypoint implementation for ispc More...

#include "ispc.h"
#include "module.h"
#include "util.h"
#include "type.h"
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <llvm/Support/Signals.h>
#include <llvm/Support/TargetRegistry.h>
#include <llvm/Support/TargetSelect.h>
Include dependency graph for main.cpp:

Go to the source code of this file.

Functions

static void lPrintVersion ()
 
static void usage (int ret)
 
static void devUsage (int ret)
 
static void lGetAllArgs (int Argc, char *Argv[], int &argc, char *argv[128])
 
static void lSignal (void *)
 
static int ParsingPhaseName (char *stage)
 
static std::set< int > ParsingPhases (char *stages)
 
static void lParseInclude (const char *path)
 
int main (int Argc, char *Argv[])
 

Detailed Description

main() entrypoint implementation for ispc

Definition in file main.cpp.

Function Documentation

static void devUsage ( int  ret)
static

Definition at line 159 of file main.cpp.

References lPrintVersion().

Referenced by main().

static void lGetAllArgs ( int  Argc,
char *  Argv[],
int &  argc,
char *  argv[128] 
)
static

We take arguments from both the command line as well as from the ISPC_ARGS environment variable. This function returns a new set of arguments representing the ones from those two sources merged together.

Definition at line 191 of file main.cpp.

Referenced by main().

static void lParseInclude ( const char *  path)
static

Definition at line 281 of file main.cpp.

References g, and Globals::includePath.

Referenced by main().

static void lPrintVersion ( )
static

Definition at line 67 of file main.cpp.

Referenced by devUsage(), main(), and usage().

static void lSignal ( void *  )
static

Definition at line 234 of file main.cpp.

References FATAL.

Referenced by main().

int main ( int  Argc,
char *  Argv[] 
)
static int ParsingPhaseName ( char *  stage)
static

Definition at line 239 of file main.cpp.

References LAST_OPT_NUMBER.

Referenced by main(), and ParsingPhases().

static std::set<int> ParsingPhases ( char *  stages)
static

Definition at line 259 of file main.cpp.

References ParsingPhaseName().

Referenced by main().

static void usage ( int  ret)
static