Skip to content

Commit c34a519

Browse files
committed
[CUDA] removed unneeded __nvvm_reflect_anchor()
Since r265060 LLVM infers correct __nvvm_reflect attributes, so explicit declaration of __nvvm_reflect() is no longer needed. Differential Revision: http://reviews.llvm.org/D19074 llvm-svn: 267062
1 parent 7e16ce5 commit c34a519

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

clang/lib/Headers/__clang_cuda_runtime_wrapper.h

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -216,16 +216,6 @@ static inline __device__ void __brkpt(int __c) { __brkpt(); }
216216
#undef __CUDABE__
217217
#define __CUDACC__
218218

219-
#if defined(__CUDA_ARCH__)
220-
// We need to emit IR declaration for non-existing __nvvm_reflect() to
221-
// let backend know that it should be treated as const nothrow
222-
// function which is what NVVMReflect pass expects to see.
223-
extern "C" __device__ __attribute__((const)) int __nvvm_reflect(const void *);
224-
static __device__ __attribute__((used)) int __nvvm_reflect_anchor() {
225-
return __nvvm_reflect("NONE");
226-
}
227-
#endif
228-
229219
extern "C" {
230220
// Device-side CUDA system calls.
231221
// http://docs.nvidia.com/cuda/ptx-writers-guide-to-interoperability/index.html#system-calls

0 commit comments

Comments
 (0)