@@ -1692,7 +1692,14 @@ 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", singleRegion = 1> {
1695
+ def DeclareMapperOp : OpenMP_Op<"declare_mapper", [
1696
+ AffineScope,
1697
+ AutomaticAllocationScope,
1698
+ IsolatedFromAbove,
1699
+ OutlineableOpenMPOpInterface,
1700
+ RecipeInterface,
1701
+ Symbol
1702
+ ]> {
1696
1703
let summary = "declare mapper directive";
1697
1704
let description = [{
1698
1705
The declare mapper directive declares a user-defined mapper for a given
@@ -1702,12 +1709,16 @@ def DeclareMapperOp : OpenMP_Op<"declare_mapper", singleRegion = 1> {
1702
1709
let arguments = (ins SymbolNameAttr:$sym_name,
1703
1710
TypeAttr:$var_type);
1704
1711
1705
- let assemblyFormat = "$sym_name `:` $var_type $region attr-dict";
1712
+ let regions = (region AnyRegion:$body);
1713
+
1714
+ let assemblyFormat = "$sym_name `:` $var_type $body attr-dict";
1706
1715
}
1707
1716
1708
- def DeclareMapperInfoOp : OpenMP_Op<"declare_mapper_info", clauses = [
1717
+ def DeclareMapperInfoOp : OpenMP_Op<"declare_mapper_info", [
1718
+ Terminator
1719
+ ], clauses = [
1709
1720
OpenMP_MapClause
1710
- ]> {
1721
+ ]> {
1711
1722
let summary = "declare mapper info";
1712
1723
let description = [{
1713
1724
This Op is used to capture the map information related to it's
0 commit comments