Merge pull request #562 from mmp/arm
New target naming scheme, new targets (SSE4-i8x16 and SSE4-i16x8), plus some cleanup and improvements.
This commit is contained in:
18
main.cpp
18
main.cpp
@@ -85,13 +85,16 @@ usage(int ret) {
|
||||
printf(" \t\taddressing calculations are done by default, even\n");
|
||||
printf(" \t\ton 64-bit target architectures.)\n");
|
||||
printf(" [--arch={%s}]\t\tSelect target architecture\n",
|
||||
Target::SupportedTargetArchs());
|
||||
Target::SupportedArchs());
|
||||
printf(" [--c++-include-file=<name>]\t\tSpecify name of file to emit in #include statement in generated C++ code.\n");
|
||||
#ifndef ISPC_IS_WINDOWS
|
||||
printf(" [--colored-output]\t\tAlways use terminal colors in error/warning messages.\n");
|
||||
#endif
|
||||
printf(" [--cpu=<cpu>]\t\t\tSelect target CPU type\n");
|
||||
printf(" <cpu>={%s}\n", Target::SupportedTargetCPUs().c_str());
|
||||
printf(" ");
|
||||
char cpuHelp[2048];
|
||||
sprintf(cpuHelp, "[--cpu=<cpu>]\t\t\tSelect target CPU type\n<cpu>={%s}\n",
|
||||
Target::SupportedCPUs().c_str());
|
||||
PrintWithWordBreaks(cpuHelp, 16, TerminalWidth(), stdout);
|
||||
printf(" [-D<foo>]\t\t\t\t#define given value when running preprocessor\n");
|
||||
printf(" [--dev-stub <filename>]\t\tEmit device-side offload stub functions to file\n");
|
||||
printf(" [--emit-asm]\t\t\tGenerate assembly language file as output\n");
|
||||
@@ -109,7 +112,6 @@ usage(int ret) {
|
||||
printf(" [--math-lib=<option>]\t\tSelect math library\n");
|
||||
printf(" default\t\t\t\tUse ispc's built-in math functions\n");
|
||||
printf(" fast\t\t\t\tUse high-performance but lower-accuracy math functions\n");
|
||||
printf(" svml\t\t\t\tUse the Intel(r) SVML math libraries\n");
|
||||
printf(" system\t\t\t\tUse the system's math library (*may be quite slow*)\n");
|
||||
printf(" [-MMM <filename>\t\t\t\tWrite #include dependencies to given file.\n");
|
||||
printf(" [--nostdlib]\t\t\tDon't make the ispc standard library available\n");
|
||||
@@ -127,7 +129,11 @@ usage(int ret) {
|
||||
printf(" [--pic]\t\t\t\tGenerate position-independent code\n");
|
||||
#endif // !ISPC_IS_WINDOWS
|
||||
printf(" [--quiet]\t\t\t\tSuppress all output\n");
|
||||
printf(" [--target=<isa>]\t\t\tSelect target ISA. <isa>={%s}\n", Target::SupportedTargetISAs());
|
||||
printf(" ");
|
||||
char targetHelp[2048];
|
||||
sprintf(targetHelp, "[--target=<t>]\t\t\tSelect target ISA and width.\n"
|
||||
"<t>={%s}", Target::SupportedTargets());
|
||||
PrintWithWordBreaks(targetHelp, 24, TerminalWidth(), stdout);
|
||||
printf(" [--version]\t\t\t\tPrint ispc version\n");
|
||||
printf(" [--werror]\t\t\t\tTreat warnings as errors\n");
|
||||
printf(" [--woff]\t\t\t\tDisable warnings\n");
|
||||
@@ -404,8 +410,6 @@ int main(int Argc, char *Argv[]) {
|
||||
g->mathLib = Globals::Math_ISPC;
|
||||
else if (!strcmp(lib, "fast"))
|
||||
g->mathLib = Globals::Math_ISPCFast;
|
||||
else if (!strcmp(lib, "svml"))
|
||||
g->mathLib = Globals::Math_SVML;
|
||||
else if (!strcmp(lib, "system"))
|
||||
g->mathLib = Globals::Math_System;
|
||||
else {
|
||||
|
||||
Reference in New Issue
Block a user