From a566efbec9d971deee9e61db100ac97f9256cea4 Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Tue, 17 Jun 2014 17:20:53 +0000 Subject: Revert "[OPENMP] Initial support for '#pragma omp for'." This reverts commit r211096. Looks like it broke the msvc build: SemaOpenMP.cpp(140) : error C4519: default template arguments are only allowed on a class template llvm-svn: 211113 --- clang/lib/Basic/OpenMPKinds.cpp | 37 ------------------------------------- 1 file changed, 37 deletions(-) (limited to 'clang/lib/Basic/OpenMPKinds.cpp') diff --git a/clang/lib/Basic/OpenMPKinds.cpp b/clang/lib/Basic/OpenMPKinds.cpp index af537de67b9..15a88037a81 100644 --- a/clang/lib/Basic/OpenMPKinds.cpp +++ b/clang/lib/Basic/OpenMPKinds.cpp @@ -155,15 +155,6 @@ bool clang::isAllowedClauseForDirective(OpenMPDirectiveKind DKind, switch (CKind) { #define OPENMP_SIMD_CLAUSE(Name) \ case OMPC_##Name: return true; -#include "clang/Basic/OpenMPKinds.def" - default: - break; - } - break; - case OMPD_for: - switch (CKind) { -#define OPENMP_FOR_CLAUSE(Name) \ - case OMPC_##Name: return true; #include "clang/Basic/OpenMPKinds.def" default: break; @@ -176,31 +167,3 @@ bool clang::isAllowedClauseForDirective(OpenMPDirectiveKind DKind, } return false; } - -bool clang::isOpenMPLoopDirective(OpenMPDirectiveKind DKind) { - return DKind == OMPD_simd || DKind == OMPD_for; // TODO add next directives. -} - -bool clang::isOpenMPWorksharingDirective(OpenMPDirectiveKind DKind) { - return DKind == OMPD_for; // TODO add next directives. -} - -bool clang::isOpenMPParallelDirective(OpenMPDirectiveKind DKind) { - return DKind == OMPD_parallel; // TODO add next directives. -} - -bool clang::isOpenMPSimdDirective(OpenMPDirectiveKind DKind) { - return DKind == OMPD_simd; // TODO || DKind == OMPD_for_simd || ... -} - -bool clang::isOpenMPPrivate(OpenMPClauseKind Kind) { - return Kind == OMPC_private || Kind == OMPC_firstprivate || - Kind == OMPC_lastprivate || Kind == OMPC_linear || - Kind == OMPC_reduction; // TODO add next clauses like 'reduction'. -} - -bool clang::isOpenMPThreadPrivate(OpenMPClauseKind Kind) { - return Kind == OMPC_threadprivate || - Kind == OMPC_copyin; // TODO add next clauses like 'copyprivate'. -} - -- cgit v1.2.3