r202360 - [OPENMP] First changes for Parsing and Sema for 'omp simd' directive support

Hal Finkel hfinkel at anl.gov
Thu Mar 6 11:24:11 PST 2014


----- Original Message -----
> From: "Alexey Bataev" <a.bataev at hotmail.com>
> To: cfe-commits at cs.uiuc.edu
> Sent: Thursday, February 27, 2014 2:29:13 AM
> Subject: r202360 - [OPENMP] First changes for Parsing and Sema for 'omp simd'	directive support
> 
> Author: abataev
> Date: Thu Feb 27 02:29:12 2014
> New Revision: 202360
> 
> URL: http://llvm.org/viewvc/llvm-project?rev=202360&view=rev
> Log:
> [OPENMP] First changes for Parsing and Sema for 'omp simd' directive
> support
> 

[snip]

> Modified: cfe/trunk/lib/Sema/TreeTransform.h
> URL:
> http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/TreeTransform.h?rev=202360&r1=202359&r2=202360&view=diff
> ==============================================================================
> --- cfe/trunk/lib/Sema/TreeTransform.h (original)
> +++ cfe/trunk/lib/Sema/TreeTransform.h Thu Feb 27 02:29:12 2014

[snip]

> +
> +template<typename Derived>
> +StmtResult
> +TreeTransform<Derived>::TransformOMPParallelDirective(OMPParallelDirective
> *D) {
> +  DeclarationNameInfo DirName;
> +  getSema().StartOpenMPDSABlock(OMPD_parallel, DirName, 0);
> +  StmtResult Res = getDerived().TransformOMPExecutableDirective(D);
> +  getDerived().getSema().EndOpenMPDSABlock(Res.get());

Why is the first one getSema() and the second one is getDerived().getSema()?

 -Hal

[snip]

> 
> _______________________________________________
> cfe-commits mailing list
> cfe-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
> 

-- 
Hal Finkel
Assistant Computational Scientist
Leadership Computing Facility
Argonne National Laboratory



More information about the cfe-commits mailing list