projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
33b5283
)
[mlir] add missing markdown delimiters in SCFOps.td
author
Oleksandr "Alex" Zinenko
<zinenko@google.com>
Fri, 14 Oct 2022 08:30:34 +0000
(10:30 +0200)
committer
GitHub
<noreply@github.com>
Fri, 14 Oct 2022 08:30:34 +0000
(10:30 +0200)
mlir/include/mlir/Dialect/SCF/IR/SCFOps.td
patch
|
blob
|
history
diff --git
a/mlir/include/mlir/Dialect/SCF/IR/SCFOps.td
b/mlir/include/mlir/Dialect/SCF/IR/SCFOps.td
index
be7dd8e
..
41b7099
100644
(file)
--- a/
mlir/include/mlir/Dialect/SCF/IR/SCFOps.td
+++ b/
mlir/include/mlir/Dialect/SCF/IR/SCFOps.td
@@
-434,6
+434,8
@@
def ForeachThreadOp : SCF_Op<"foreach_thread", [
```
Example with thread_dim_mapping attribute:
+
+ ```mlir
//
// Sequential context.
//
@@
-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> {
@@
-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,