merged with master
This commit is contained in:
12
main.cpp
12
main.cpp
@@ -62,9 +62,7 @@ static void
|
||||
lPrintVersion() {
|
||||
printf("Intel(r) SPMD Program Compiler (ispc), %s (build %s @ %s, LLVM %s)\n",
|
||||
ISPC_VERSION, BUILD_VERSION, BUILD_DATE,
|
||||
#if defined(LLVM_3_1)
|
||||
"3.1"
|
||||
#elif defined(LLVM_3_2)
|
||||
#if defined(LLVM_3_2)
|
||||
"3.2"
|
||||
#elif defined(LLVM_3_3)
|
||||
"3.3"
|
||||
@@ -72,6 +70,8 @@ lPrintVersion() {
|
||||
"3.4"
|
||||
#elif defined(LLVM_3_5)
|
||||
"3.5"
|
||||
#elif defined(LLVM_3_6)
|
||||
"3.6"
|
||||
#else
|
||||
#error "Unhandled LLVM version"
|
||||
#endif
|
||||
@@ -166,7 +166,8 @@ devUsage(int ret) {
|
||||
printf(" disable-uniform-memory-optimizations\tDisable uniform-based coherent memory access\n");
|
||||
printf(" [--yydebug]\t\t\t\tPrint debugging information during parsing\n");
|
||||
printf(" [--debug-phase=<value>]\t\tSet optimization phases to dump. --debug-phase=first,210:220,300,305,310:last\n");
|
||||
#if defined(LLVM_3_4) || defined(LLVM_3_5)
|
||||
|
||||
#if !defined(LLVM_3_2) && !defined(LLVM_3_3) // LLVM 3.4+
|
||||
printf(" [--debug-ir=<value>]\t\tSet optimization phase to generate debugIR after it\n");
|
||||
#endif
|
||||
printf(" [--off-phase=<value>]\t\tSwitch off optimization phases. --off-phase=first,210:220,300,305,310:last\n");
|
||||
@@ -556,7 +557,8 @@ int main(int Argc, char *Argv[]) {
|
||||
"away or introduce the new ones.\n");
|
||||
g->debug_stages = ParsingPhases(argv[i] + strlen("--debug-phase="));
|
||||
}
|
||||
#if defined(LLVM_3_4) || defined(LLVM_3_5)
|
||||
|
||||
#if !defined(LLVM_3_2) && !defined(LLVM_3_3) // LLVM 3.4+
|
||||
else if (strncmp(argv[i], "--debug-ir=", 11) == 0) {
|
||||
g->debugIR = ParsingPhaseName(argv[i] + strlen("--debug-ir="));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user