[Mlir-commits] [mlir] 3d6cf53 - fix formatting issues with ODS docs around assembly format directives (#91149)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Sun May 5 19:17:21 PDT 2024
Author: Jeremy Kun
Date: 2024-05-05T19:17:16-07:00
New Revision: 3d6cf533cb258371177ee4912b3b09b62d328d29
URL: https://github.com/llvm/llvm-project/commit/3d6cf533cb258371177ee4912b3b09b62d328d29
DIFF: https://github.com/llvm/llvm-project/commit/3d6cf533cb258371177ee4912b3b09b62d328d29.diff
LOG: fix formatting issues with ODS docs around assembly format directives (#91149)
- Some sentences are incorrectly split across list items.
- Some pre-formatted syntax is left in plaintext
- Some lines end in spaces
Co-authored-by: Jeremy Kun <j2kun at users.noreply.github.com>
Added:
Modified:
mlir/docs/DefiningDialects/Operations.md
Removed:
################################################################################
diff --git a/mlir/docs/DefiningDialects/Operations.md b/mlir/docs/DefiningDialects/Operations.md
index 79a0cc55f13840..706abce55ce96d 100644
--- a/mlir/docs/DefiningDialects/Operations.md
+++ b/mlir/docs/DefiningDialects/Operations.md
@@ -640,10 +640,11 @@ The available directives are as follows:
* `attr-dict`
- - Represents the attribute dictionary of the operation. Any inherent
- - attributes that are not used elsewhere in the format are printed as
- - part of the attribute dictionary unless a `prop-dict` is present.
- - Discardable attributes are always part of the `attr-dict`.
+ - Represents the attribute dictionary of the operation.
+ - Any inherent attributes that are not used elsewhere in the format are
+ printed as part of the attribute dictionary unless a `prop-dict` is
+ present.
+ - Discardable attributes are always part of the `attr-dict`.
* `attr-dict-with-keyword`
@@ -654,23 +655,23 @@ The available directives are as follows:
- Represents the properties of the operation converted to a dictionary.
- Any property or inherent attribute that are not used elsewhere in the
- - format are parsed and printed as part of this dictionary.
+ format are parsed and printed as part of this dictionary.
- If present, the `attr-dict` will not contain any inherent attributes.
-* `custom` < UserDirective > ( Params )
+* `custom < UserDirective > ( Params )`
- Represents a custom directive implemented by the user in C++.
- See the [Custom Directives](#custom-directives) section below for more
details.
-* `functional-type` ( inputs , outputs )
+* `functional-type ( inputs , outputs )`
- Formats the `inputs` and `outputs` arguments as a
[function type](../Dialects/Builtin.md/#functiontype).
- The constraints on `inputs` and `outputs` are the same as the `input` of
the `type` directive.
-* `oilist` ( \`keyword\` elements | \`otherKeyword\` elements ...)
+* ``oilist ( `keyword` elements | `otherKeyword` elements ...)``
- Represents an optional order-independent list of clauses. Each clause
has a keyword and corresponding assembly format.
@@ -682,7 +683,7 @@ The available directives are as follows:
- Represents all of the operands of an operation.
-* `ref` ( input )
+* `ref ( input )`
- Represents a reference to the a variable or directive, that must have
already been resolved, that may be used as a parameter to a `custom`
@@ -703,13 +704,13 @@ The available directives are as follows:
- Represents all of the successors of an operation.
-* `type` ( input )
+* `type ( input )`
- Represents the type of the given input.
- `input` must be either an operand or result [variable](#variables), the
`operands` directive, or the `results` directive.
-* `qualified` ( type_or_attribute )
+* `qualified ( type_or_attribute )`
- Wraps a `type` directive or an attribute parameter.
- Used to force printing the type or attribute prefixed with its dialect
@@ -1700,11 +1701,11 @@ To allow more convenient syntax, helper classes exist for TableGen classes
which are commonly used as anonymous definitions. These currently include:
* `DeprecatedOpBuilder`: Can be used in place of `OpBuilder` with the same
- arguments except taking the reason as first argument, e.g.
+ arguments except taking the reason as first argument, e.g.
`DeprecatedOpBuilder<"use 'build' with foo instead", (ins "int":$bar)>`
-Note: Support for the `CppDeprecated` mechanism has to be implemented by
-every code generator separately.
+Note: Support for the `CppDeprecated` mechanism has to be implemented by
+every code generator separately.
### Requirements and existing mechanisms analysis
More information about the Mlir-commits
mailing list