[PATCH] D11664: [CUDA] Implemented additional processing steps needed to link with CUDA libdevice bitcode.
Eric Christopher via cfe-commits
cfe-commits at lists.llvm.org
Tue Sep 8 11:03:57 PDT 2015
echristo added a comment.
Inline comment.
================
Comment at: test/CodeGenCUDA/link-device-bitcode.cu:23-28
@@ +22,8 @@
+//
+// NVVMReflect is a target-specific pass runs after -emit-llvm prints
+// IR, so we need to check NVPTX to make sure that the pass did happen
+// and __nvvm_reflect calls were eliminated.
+// RUN: %clang_cc1 -triple nvptx-unknown-cuda -fcuda-is-device \
+// RUN: -mlink-bitcode-file %t.bc -fcuda-uses-libdevice -S -o - %s \
+// RUN: | FileCheck %s -check-prefix CHECK-PTX
+
----------------
It would be better here if we could just check the pass structure and rely on the backend to test that the pass works.
http://reviews.llvm.org/D11664
More information about the cfe-commits
mailing list