[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)
commit5a497136be8397ae18c5a83da064fb6b4f682aa3
treee28eea9497b4b4710fd3f70929a209f6d6bcdea3
parent2db47198dd44b702d15e427954a917f4140b941a
[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.

llvm-svn: 310377
clang/include/clang/Basic/Attr.td
clang/include/clang/Sema/Sema.h
clang/lib/CodeGen/CGOpenMPRuntime.h
clang/lib/CodeGen/CGOpenMPRuntimeNVPTX.cpp
clang/lib/CodeGen/CGOpenMPRuntimeNVPTX.h
clang/lib/CodeGen/CGStmtOpenMP.cpp
clang/lib/Sema/SemaExpr.cpp
clang/lib/Sema/SemaOpenMP.cpp
clang/test/OpenMP/nvptx_target_firstprivate_codegen.cpp
clang/test/OpenMP/target_parallel_debug_codegen.cpp [new file with mode: 0644]