File tree Expand file tree Collapse file tree 2 files changed +16
-1
lines changed Expand file tree Collapse file tree 2 files changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -31,10 +31,11 @@ TYPE_PARSER(construct<OmpDefaultClause>(
31
31
"SHARED" >> pure(OmpDefaultClause::Type::Shared) ||
32
32
"NONE" >> pure(OmpDefaultClause::Type::None)))
33
33
34
- // 2.5 PROC_BIND (MASTER | CLOSE | SPREAD)
34
+ // 2.5 PROC_BIND (MASTER | CLOSE | PRIMARY | SPREAD )
35
35
TYPE_PARSER(construct<OmpProcBindClause>(
36
36
" CLOSE" >> pure (OmpProcBindClause::Type::Close) ||
37
37
"MASTER" >> pure(OmpProcBindClause::Type::Master) ||
38
+ "PRIMARY" >> pure(OmpProcBindClause::Type::Primary) ||
38
39
"SPREAD" >> pure(OmpProcBindClause::Type::Spread)))
39
40
40
41
// 2.15.5.1 MAP ([ [ALWAYS[,]] map-type : ] variable-name-list)
Original file line number Diff line number Diff line change
1
+ ! RUN: %flang_fc1 -fdebug-unparse -fopenmp %s | FileCheck --ignore-case %s
2
+ ! RUN: %flang_fc1 -fdebug-dump-parse-tree -fopenmp %s | FileCheck --check-prefix="PARSE-TREE" %s
3
+
4
+ ! CHECK: !$OMP PARALLEL PROC_BIND(PRIMARY)
5
+
6
+ ! PARSE-TREE: ExecutionPartConstruct -> ExecutableConstruct -> OpenMPConstruct -> OpenMPBlockConstruct
7
+ ! PARSE-TREE: OmpBeginBlockDirective
8
+ ! PARSE-TREE: OmpBlockDirective -> llvm::omp::Directive = parallel
9
+ ! PARSE-TREE: OmpClauseList -> OmpClause -> ProcBind -> OmpProcBindClause -> Type = Primary
10
+ subroutine sb1
11
+ ! $omp parallel proc_bind(primary)
12
+ print * , " Hello"
13
+ ! $omp end parallel
14
+ end subroutine
You can’t perform that action at this time.
0 commit comments