]> granicus.if.org Git - clang/commit
[OPENMP] Pass scalar firstprivate vars by value.
authorAlexey Bataev <a.bataev@hotmail.com>
Tue, 17 May 2016 08:55:33 +0000 (08:55 +0000)
committerAlexey Bataev <a.bataev@hotmail.com>
Tue, 17 May 2016 08:55:33 +0000 (08:55 +0000)
commit86786f5e688f45378725df84fab789e844a16764
treeae8a0a198efe8ab8092391a79dde1ac5a90432f2
parent3d656bfed4c536be6d91d44a835f66b4eaf7c437
[OPENMP] Pass scalar firstprivate vars by value.

For better performance and to unify code with offloading part we pass
scalar firstprivate values by value, instead of by reference. It will
remove some extra copying operations.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@269751 91177308-0d34-0410-b5e6-96231b3b80d8
22 files changed:
include/clang/Sema/ScopeInfo.h
include/clang/Sema/Sema.h
lib/CodeGen/CGOpenMPRuntime.cpp
lib/CodeGen/CGStmtOpenMP.cpp
lib/CodeGen/CodeGenFunction.h
lib/Sema/Sema.cpp
lib/Sema/SemaExpr.cpp
lib/Sema/SemaOpenMP.cpp
lib/Sema/SemaStmt.cpp
test/OpenMP/for_firstprivate_codegen.cpp
test/OpenMP/nvptx_target_firstprivate_codegen.cpp
test/OpenMP/nvptx_teams_codegen.cpp
test/OpenMP/parallel_firstprivate_codegen.cpp
test/OpenMP/sections_firstprivate_codegen.cpp
test/OpenMP/single_codegen.cpp
test/OpenMP/single_firstprivate_codegen.cpp
test/OpenMP/target_firstprivate_codegen.cpp
test/OpenMP/task_firstprivate_codegen.cpp
test/OpenMP/taskloop_firstprivate_codegen.cpp
test/OpenMP/taskloop_simd_firstprivate_codegen.cpp
test/OpenMP/teams_codegen.cpp
test/OpenMP/teams_firstprivate_codegen.cpp