diff options
author | Alexey Bataev <a.bataev@hotmail.com> | 2014-02-13 05:29:23 +0000 |
---|---|---|
committer | Alexey Bataev <a.bataev@hotmail.com> | 2014-02-13 05:29:23 +0000 |
commit | aadd52e5cc8776ed65c0850876a68a1f10a92f10 (patch) | |
tree | 6789802725add097bbba8e1e1ab597a4f697a863 /clang/lib/Sema/TreeTransform.h | |
parent | 0e3b5e0b20698558be7a30b42f3d245bf6a4af54 (diff) | |
download | bcm5719-llvm-aadd52e5cc8776ed65c0850876a68a1f10a92f10.tar.gz bcm5719-llvm-aadd52e5cc8776ed65c0850876a68a1f10a92f10.zip |
[OPENMP] 'if' clause support (no CodeGen support)
llvm-svn: 201297
Diffstat (limited to 'clang/lib/Sema/TreeTransform.h')
-rw-r--r-- | clang/lib/Sema/TreeTransform.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/clang/lib/Sema/TreeTransform.h b/clang/lib/Sema/TreeTransform.h index 7afed1a4480..d9ed6f5f027 100644 --- a/clang/lib/Sema/TreeTransform.h +++ b/clang/lib/Sema/TreeTransform.h @@ -1298,6 +1298,18 @@ public: StartLoc, EndLoc); } + /// \brief Build a new OpenMP 'if' clause. + /// + /// By default, performs semantic analysis to build the new statement. + /// Subclasses may override this routine to provide different behavior. + OMPClause *RebuildOMPIfClause(Expr *Condition, + SourceLocation StartLoc, + SourceLocation LParenLoc, + SourceLocation EndLoc) { + return getSema().ActOnOpenMPIfClause(Condition, StartLoc, + LParenLoc, EndLoc); + } + /// \brief Build a new OpenMP 'default' clause. /// /// By default, performs semantic analysis to build the new statement. @@ -6279,6 +6291,13 @@ TreeTransform<Derived>::TransformOMPParallelDirective(OMPParallelDirective *D) { template<typename Derived> OMPClause * +TreeTransform<Derived>::TransformOMPIfClause(OMPIfClause *C) { + return getDerived().RebuildOMPIfClause(C->getCondition(), C->getLocStart(), + C->getLParenLoc(), C->getLocEnd()); +} + +template<typename Derived> +OMPClause * TreeTransform<Derived>::TransformOMPDefaultClause(OMPDefaultClause *C) { return getDerived().RebuildOMPDefaultClause(C->getDefaultKind(), C->getDefaultKindKwLoc(), |