diff options
author | Arpith Chacko Jacob <acjacob@us.ibm.com> | 2017-01-25 01:45:59 +0000 |
---|---|---|
committer | Arpith Chacko Jacob <acjacob@us.ibm.com> | 2017-01-25 01:45:59 +0000 |
commit | 86f9e46365d64c56dd2adc656e4beead9aa4f4ec (patch) | |
tree | 4e405d8a0ff2885398962dd314b5387267be1334 /clang/lib/Sema/SemaOpenMP.cpp | |
parent | a1609ff658f5be59d7441f8f7283ab485139fdd3 (diff) | |
download | bcm5719-llvm-86f9e46365d64c56dd2adc656e4beead9aa4f4ec.tar.gz bcm5719-llvm-86f9e46365d64c56dd2adc656e4beead9aa4f4ec.zip |
Reverting commit because an NVPTX patch sneaked in. Break up into two
patches.
llvm-svn: 293003
Diffstat (limited to 'clang/lib/Sema/SemaOpenMP.cpp')
-rw-r--r-- | clang/lib/Sema/SemaOpenMP.cpp | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/clang/lib/Sema/SemaOpenMP.cpp b/clang/lib/Sema/SemaOpenMP.cpp index 040bddc6c70..9ef39b6889b 100644 --- a/clang/lib/Sema/SemaOpenMP.cpp +++ b/clang/lib/Sema/SemaOpenMP.cpp @@ -1594,7 +1594,8 @@ void Sema::ActOnOpenMPRegionStart(OpenMPDirectiveKind DKind, Scope *CurScope) { case OMPD_parallel_for: case OMPD_parallel_for_simd: case OMPD_parallel_sections: - case OMPD_teams: { + case OMPD_teams: + case OMPD_target_teams: { QualType KmpInt32Ty = Context.getIntTypeForBitwidth(32, 1); QualType KmpInt32PtrTy = Context.getPointerType(KmpInt32Ty).withConst().withRestrict(); @@ -1607,7 +1608,6 @@ void Sema::ActOnOpenMPRegionStart(OpenMPDirectiveKind DKind, Scope *CurScope) { Params); break; } - case OMPD_target_teams: case OMPD_target_parallel: { Sema::CapturedParamNameType ParamsTarget[] = { std::make_pair(StringRef(), QualType()) // __context with shared vars @@ -1618,15 +1618,14 @@ void Sema::ActOnOpenMPRegionStart(OpenMPDirectiveKind DKind, Scope *CurScope) { QualType KmpInt32Ty = Context.getIntTypeForBitwidth(32, 1); QualType KmpInt32PtrTy = Context.getPointerType(KmpInt32Ty).withConst().withRestrict(); - Sema::CapturedParamNameType ParamsTeamsOrParallel[] = { + Sema::CapturedParamNameType ParamsParallel[] = { std::make_pair(".global_tid.", KmpInt32PtrTy), std::make_pair(".bound_tid.", KmpInt32PtrTy), std::make_pair(StringRef(), QualType()) // __context with shared vars }; - // Start a captured region for 'teams' or 'parallel'. Both regions have - // the same implicit parameters. + // Start a captured region for 'parallel'. ActOnCapturedRegionStart(DSAStack->getConstructLoc(), CurScope, CR_OpenMP, - ParamsTeamsOrParallel); + ParamsParallel); break; } case OMPD_simd: |