[Mlir-commits] [mlir] 9548697 - Fix Markdown format for lists in the Standard Dialect documentation
Mehdi Amini
llvmlistbot at llvm.org
Sat Jul 18 09:13:57 PDT 2020
Author: Mehdi Amini
Date: 2020-07-18T16:13:44Z
New Revision: 9548697df9c6f65a3dba4e8de4d015650e73101c
URL: https://github.com/llvm/llvm-project/commit/9548697df9c6f65a3dba4e8de4d015650e73101c
DIFF: https://github.com/llvm/llvm-project/commit/9548697df9c6f65a3dba4e8de4d015650e73101c.diff
LOG: Fix Markdown format for lists in the Standard Dialect documentation
This affects the rendering on the website.
Added:
Modified:
mlir/include/mlir/Dialect/StandardOps/IR/Ops.td
Removed:
################################################################################
diff --git a/mlir/include/mlir/Dialect/StandardOps/IR/Ops.td b/mlir/include/mlir/Dialect/StandardOps/IR/Ops.td
index c3e3ada8cd40..1b525455dd8d 100644
--- a/mlir/include/mlir/Dialect/StandardOps/IR/Ops.td
+++ b/mlir/include/mlir/Dialect/StandardOps/IR/Ops.td
@@ -2567,15 +2567,16 @@ def SubViewOp : Std_Op<"subview", [
the operation's offsets, sizes and strides arguments.
The SubView operation supports the following arguments:
- *) Memref: the "base" memref on which to create a "view" memref.
- *) Offsets: memref-rank number of dynamic offsets or static integer
- attributes into the "base" memref at which to create the "view"
- memref.
- *) Sizes: memref-rank number of dynamic sizes or static integer attributes
- which specify the sizes of the result "view" memref type.
- *) Strides: memref-rank number of dynamic strides or static integer
- attributes multiplicatively to the base memref strides in each
- dimension.
+
+ * Memref: the "base" memref on which to create a "view" memref.
+ * Offsets: memref-rank number of dynamic offsets or static integer
+ attributes into the "base" memref at which to create the "view"
+ memref.
+ * Sizes: memref-rank number of dynamic sizes or static integer attributes
+ which specify the sizes of the result "view" memref type.
+ * Strides: memref-rank number of dynamic strides or static integer
+ attributes multiplicatively to the base memref strides in each
+ dimension.
Example 1:
@@ -3129,21 +3130,23 @@ def ViewOp : Std_Op<"view", [
The "view" operation extracts an N-D contiguous memref with empty layout map
with arbitrary element type from a 1-D contiguous memref with empty layout
map of i8 element type. The ViewOp supports the following arguments:
- *) A single dynamic byte-shift operand must be specified which represents a
- a shift of the base 1-D memref pointer from which to create the resulting
- contiguous memref view with identity layout.
- *) A dynamic size operand that must be specified for each dynamic dimension
- in the resulting view memref type.
+
+ * A single dynamic byte-shift operand must be specified which represents a
+ a shift of the base 1-D memref pointer from which to create the resulting
+ contiguous memref view with identity layout.
+ * A dynamic size operand that must be specified for each dynamic dimension
+ in the resulting view memref type.
The "view" operation gives a structured indexing form to a flat 1-D buffer.
Unlike "subview" it can perform a type change. The type change behavior
requires the op to have special semantics because, e.g. a byte shift of 3
cannot be represented as an offset on f64.
For now, a "view" op:
- 1) Only takes a contiguous source memref with 0 offset and empty layout.
- 2) Must specify a byte_shift operand (in the future, a special integer
- attribute may be added to support the folded case).
- 3) Returns a contiguous memref with 0 offset and empty layout.
+
+ 1. Only takes a contiguous source memref with 0 offset and empty layout.
+ 2. Must specify a byte_shift operand (in the future, a special integer
+ attribute may be added to support the folded case).
+ 3. Returns a contiguous memref with 0 offset and empty layout.
Example:
More information about the Mlir-commits
mailing list