File tree Expand file tree Collapse file tree 2 files changed +8
-9
lines changed
include/mlir/Dialect/OpenMP Expand file tree Collapse file tree 2 files changed +8
-9
lines changed Original file line number Diff line number Diff line change @@ -1753,11 +1753,9 @@ def ScanOp : OpenMP_Op<"scan", [
1753
1753
// 2.19.7.3 Declare Mapper Directive
1754
1754
//===----------------------------------------------------------------------===//
1755
1755
def DeclareMapperOp : OpenMP_Op<"declare_mapper", [
1756
- AffineScope,
1757
- AutomaticAllocationScope,
1758
1756
IsolatedFromAbove,
1759
- OutlineableOpenMPOpInterface,
1760
1757
RecipeInterface,
1758
+ SingleBlock,
1761
1759
Symbol
1762
1760
]> {
1763
1761
let summary = "declare mapper directive";
@@ -1767,22 +1765,23 @@ def DeclareMapperOp : OpenMP_Op<"declare_mapper", [
1767
1765
}] # clausesDescription;
1768
1766
1769
1767
let arguments = (ins SymbolNameAttr:$sym_name,
1770
- TypeAttr:$var_type );
1768
+ TypeAttr:$type );
1771
1769
1772
1770
let regions = (region AnyRegion:$body);
1773
1771
1774
- let assemblyFormat = "$sym_name `:` $var_type $body attr-dict";
1772
+ let assemblyFormat = "$sym_name `:` $type $body attr-dict";
1775
1773
}
1776
1774
1777
- def DeclareMapperInfoOp : OpenMP_Op<"declare_mapper_info", [
1775
+ def DeclareMapperInfoOp : OpenMP_Op<"declare_mapper.info", [
1776
+ HasParent<"DeclareMapperOp">,
1778
1777
Terminator
1779
1778
], clauses = [
1780
1779
OpenMP_MapClause
1781
1780
]> {
1782
1781
let summary = "declare mapper info";
1783
1782
let description = [{
1784
1783
This Op is used to capture the map information related to it's
1785
- parent DeclareMapperOp.]>
1784
+ parent DeclareMapperOp.
1786
1785
}] # clausesDescription;
1787
1786
1788
1787
let builders = [
Original file line number Diff line number Diff line change @@ -884,8 +884,8 @@ omp.declare_mapper @my_mapper : !llvm.struct<"my_type", (i32)> {
884
884
^bb0 (%arg: !llvm.ptr ):
885
885
// CHECK: %[[DECL_MAP_INFO:.*]] = omp.map.info var_ptr(%{{.*}} : !llvm.ptr, !llvm.struct<"my_type", (i32)>) map_clauses(tofrom) capture(ByRef) -> !llvm.ptr {name = ""}
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
- // CHECK: omp.declare_mapper_info map_entries(%[[DECL_MAP_INFO]] : !llvm.ptr)
888
- omp.declare_mapper_info map_entries (%decl_map_info : !llvm.ptr )
887
+ // CHECK: omp.declare_mapper.info map_entries(%[[DECL_MAP_INFO]] : !llvm.ptr)
888
+ omp.declare_mapper.info map_entries (%decl_map_info : !llvm.ptr )
889
889
}
890
890
891
891
// CHECK-LABEL: func @wsloop_reduction
You can’t perform that action at this time.
0 commit comments