Skip to content

Commit

Permalink
[mlir] add missing markdown delimiters in SCFOps.td
Browse files Browse the repository at this point in the history
  • Loading branch information
ftynse committed Oct 14, 2022
1 parent 33b5283 commit 048cfc1
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions mlir/include/mlir/Dialect/SCF/IR/SCFOps.td
Original file line number Diff line number Diff line change
Expand Up @@ -434,6 +434,8 @@ def ForeachThreadOp : SCF_Op<"foreach_thread", [
```

Example with thread_dim_mapping attribute:

```mlir
//
// Sequential context.
//
Expand All @@ -451,8 +453,11 @@ def ForeachThreadOp : SCF_Op<"foreach_thread", [
// Implicit synchronization point.
// Sequential context.
//
```

Example with privatized tensors:

```mlir
%t0 = ...
%t1 = ...
%r = scf.foreach_thread ... shared_outs(%o = t0) -> tensor<?xf32> {
Expand All @@ -464,6 +469,7 @@ def ForeachThreadOp : SCF_Op<"foreach_thread", [
"some_use"(%t0)
"some_use"(%t1)
}
```
}];
let arguments = (ins Variadic<Index>:$num_threads,
Variadic<AnyRankedTensor>:$outputs,
Expand Down

0 comments on commit 048cfc1

Please sign in to comment.