@@ -630,7 +630,7 @@ def DistributeOp : OpenMP_Op<"distribute", traits = [
630
630
will be executed in parallel by threads in the current context. These
631
631
iterations are spread across threads that already exist in the enclosing
632
632
region.
633
-
633
+
634
634
The body region can only contain a single block which must contain a single
635
635
operation. This operation must be another compatible loop wrapper or an
636
636
`omp.loop_nest`.
@@ -1692,28 +1692,32 @@ def CancellationPointOp : OpenMP_Op<"cancellation_point", clauses = [
1692
1692
//===----------------------------------------------------------------------===//
1693
1693
// 2.19.7.3 Declare Mapper Directive
1694
1694
//===----------------------------------------------------------------------===//
1695
- def DeclareMapperOp : OpenMP_Op<"declare_mapper", traits = [
1696
- Symbol], clauses = [
1697
- OpenMP_MapClause
1698
- ]> {
1695
+ def DeclareMapperOp : OpenMP_Op<"declare_mapper", singleRegion = 1> {
1699
1696
let summary = "declare mapper directive";
1700
1697
let description = [{
1701
1698
The declare mapper directive declares a user-defined mapper for a given
1702
1699
type, and defines a mapper-identifier that can be used in a map clause.
1703
1700
}] # clausesDescription;
1704
1701
1705
- let arguments = !con((ins SymbolNameAttr:$sym_name,
1706
- OpenMP_PointerLikeType:$var_ptr,
1707
- TypeAttr:$var_type), clausesArgs);
1702
+ let arguments = (ins SymbolNameAttr:$sym_name,
1703
+ TypeAttr:$var_type);
1704
+
1705
+ let assemblyFormat = "$sym_name `:` $var_type $region attr-dict";
1706
+ }
1707
+
1708
+ def DeclareMapperInfoOp : OpenMP_Op<"declare_mapper_info", clauses = [
1709
+ OpenMP_MapClause
1710
+ ]> {
1711
+ let summary = "declare mapper info";
1712
+ let description = [{
1713
+ This Op is used to capture the map information related to it's
1714
+ parent DeclareMapperOp.]>
1715
+ }] # clausesDescription;
1708
1716
1709
1717
let builders = [
1710
- OpBuilder<(ins CArg<"const DeclareMapperOperands &">:$clauses)>
1718
+ OpBuilder<(ins CArg<"const DeclareMapperInfoOperands &">:$clauses)>
1711
1719
];
1712
1720
1713
- // Override clause-based assemblyFormat.
1714
- let assemblyFormat = "$sym_name `:` $var_ptr `:` type($var_ptr) `:` $var_type" # " oilist(" #
1715
- clausesOptAssemblyFormat # ") attr-dict";
1716
-
1717
1721
let hasVerifier = 1;
1718
1722
}
1719
1723
@@ -1829,7 +1833,7 @@ def MaskedOp : OpenMP_Op<"masked", clauses = [
1829
1833
], singleRegion = 1> {
1830
1834
let summary = "masked construct";
1831
1835
let description = [{
1832
- Masked construct allows to specify a structured block to be executed by a subset of
1836
+ Masked construct allows to specify a structured block to be executed by a subset of
1833
1837
threads of the current team.
1834
1838
}] # clausesDescription;
1835
1839
0 commit comments