]> 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 18:04:06 +0000 (18:04 +0000)
committerAlexey Bataev <a.bataev@hotmail.com>
Tue, 8 Aug 2017 18:04:06 +0000 (18:04 +0000)
commitce50a9599953be89ad6da294238004b0c46299ae
treecf7e850666add504f937f5b9933e46268034aab4
parenta9421e2a45c1e1e49858a705bd5f95f08f26d497
[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@310387 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/Attr.td
include/clang/Sema/Sema.h
lib/CodeGen/CGOpenMPRuntime.cpp
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]