jlebar marked 2 inline comments as done.

================
Comment at: test/Driver/cuda-preprocess.cu:13-16
@@ +12,6 @@
+
+// RUN: %clang -E -target x86_64-linux-gnu --cuda-gpu-arch=sm_20 %s 2>&1 \
+// RUN:   | FileCheck -check-prefix NOARCH %s
+// RUN: %clang -E -target x86_64-linux-gnu --cuda-gpu-arch=sm_20 
--cuda-host-only %s 2>&1 \
+// RUN:   | FileCheck -check-prefix NOARCH %s
+// NOARCH: clang_unittest_no_arch
----------------
tra wrote:
> Given it's a driver test you probably just want to check the list of commands 
> generated by driver (-###)
> 
> Checking preprocessing results would probably belong to test/Preprocessor.
> 
Cool, moved to Preprocessor/.

================
Comment at: test/Driver/cuda-preprocess.cu:17
@@ +16,3 @@
+// RUN:   | FileCheck -check-prefix NOARCH %s
+// NOARCH: clang_unittest_no_arch
+
----------------
tra wrote:
> This would succeed if we fail to preprocess as it would catch 
> 'clang_unittest_no_arch' in the #ifndef above.
> 
> I'd add some macro which will get preprocessed away:
> 
> ```
> #ifndef __CUDA_ARCH__
> #define PREPROCESSED_AWAY
> clang_unittest_no_arch __ PREPROCESSED_AWAY
> ...
> ``` 
> 
> It may be an overkill, though. Up to you.
> 
sgtm, done.


http://reviews.llvm.org/D16080



_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to