File tree Expand file tree Collapse file tree 2 files changed +15
-5
lines changed
include/mlir/Dialect/OpenMP Expand file tree Collapse file tree 2 files changed +15
-5
lines changed Original file line number Diff line number Diff line change @@ -1752,7 +1752,14 @@ def ScanOp : OpenMP_Op<"scan", [
1752
1752
//===----------------------------------------------------------------------===//
1753
1753
// 2.19.7.3 Declare Mapper Directive
1754
1754
//===----------------------------------------------------------------------===//
1755
- def DeclareMapperOp : OpenMP_Op<"declare_mapper", singleRegion = 1> {
1755
+ def DeclareMapperOp : OpenMP_Op<"declare_mapper", [
1756
+ AffineScope,
1757
+ AutomaticAllocationScope,
1758
+ IsolatedFromAbove,
1759
+ OutlineableOpenMPOpInterface,
1760
+ RecipeInterface,
1761
+ Symbol
1762
+ ]> {
1756
1763
let summary = "declare mapper directive";
1757
1764
let description = [{
1758
1765
The declare mapper directive declares a user-defined mapper for a given
@@ -1762,12 +1769,16 @@ def DeclareMapperOp : OpenMP_Op<"declare_mapper", singleRegion = 1> {
1762
1769
let arguments = (ins SymbolNameAttr:$sym_name,
1763
1770
TypeAttr:$var_type);
1764
1771
1765
- let assemblyFormat = "$sym_name `:` $var_type $region attr-dict";
1772
+ let regions = (region AnyRegion:$body);
1773
+
1774
+ let assemblyFormat = "$sym_name `:` $var_type $body attr-dict";
1766
1775
}
1767
1776
1768
- def DeclareMapperInfoOp : OpenMP_Op<"declare_mapper_info", clauses = [
1777
+ def DeclareMapperInfoOp : OpenMP_Op<"declare_mapper_info", [
1778
+ Terminator
1779
+ ], clauses = [
1769
1780
OpenMP_MapClause
1770
- ]> {
1781
+ ]> {
1771
1782
let summary = "declare mapper info";
1772
1783
let description = [{
1773
1784
This Op is used to capture the map information related to it's
Original file line number Diff line number Diff line change @@ -886,7 +886,6 @@ omp.declare_mapper @my_mapper : !llvm.struct<"my_type", (i32)> {
886
886
%decl_map_info = omp.map.info var_ptr (%arg : !llvm.ptr , !llvm.struct <" my_type" , (i32 )>) map_clauses (tofrom ) capture (ByRef ) -> !llvm.ptr {name = " " }
887
887
// CHECK: omp.declare_mapper_info map_entries(%[[DECL_MAP_INFO]] : !llvm.ptr)
888
888
omp.declare_mapper_info map_entries (%decl_map_info : !llvm.ptr )
889
- omp.terminator
890
889
}
891
890
892
891
// CHECK-LABEL: func @wsloop_reduction
You can’t perform that action at this time.
0 commit comments