uoft-tsa/summer2012 — pull request #86 by seguljac (2012-06-22 14:39:01+00:00)
Title: Adding '-fhicuda' and '-fopenacc' options to clang

Adding '-fhicuda' and '-fopenacc' options to clang -cc1 (and clang driver) to enable hicuda and openacc handling. BY DEAFULT, hicuda and openacc pragmas ARE now IGNORED.
Hence, I've changed the test script as well to properly add -fhicuda/-fopenacc flags when compiling hicuda/openacc tests.

I've used -f* form since that is what gcc uses for openmp. (And -f* options are the one that are platform independent, which I think is a good match here).

After I looked at the clang code a bit more, I do not think that having per-pragma Parser is a good solution - the current code does not seem to be taking this approach (look at the objectiveC or other C dialects support). So, I'm fine with changing the clang core code, but please use the "getLangOpts().hiCUDA" and "getLangOpts().OpenACC" flags to make sure these changes are active only when hicuda/openacc handling is requested.