]> granicus.if.org Git - clang/commit
[OPENMP][DEBUG] Set proper address space info if required by target.
authorAlexey Bataev <a.bataev@hotmail.com>
Tue, 8 Aug 2017 16:29:11 +0000 (16:29 +0000)
committerAlexey Bataev <a.bataev@hotmail.com>
Tue, 8 Aug 2017 16:29:11 +0000 (16:29 +0000)
commit6a68af0c0fdd98e60d83b145a6915221db41dc70
treeb32716b13d6757a880cb8a15112f5fc4fe12edfd
parentf9afe1de8c5ae1ae8703f2447e1a70269b7421f6
[OPENMP][DEBUG] Set proper address space info if required by target.

Arguments, passed to the outlined function, must have correct address
space info for proper Debug info support. Patch sets global address
space for arguments that are mapped and passed by reference.

Also, cuda-gdb does not handle reference types correctly, so reference
arguments are represented as pointers.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@310377 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/Attr.td
include/clang/Sema/Sema.h
lib/CodeGen/CGOpenMPRuntime.h
lib/CodeGen/CGOpenMPRuntimeNVPTX.cpp
lib/CodeGen/CGOpenMPRuntimeNVPTX.h
lib/CodeGen/CGStmtOpenMP.cpp
lib/Sema/SemaExpr.cpp
lib/Sema/SemaOpenMP.cpp
test/OpenMP/nvptx_target_firstprivate_codegen.cpp
test/OpenMP/target_parallel_debug_codegen.cpp [new file with mode: 0644]