File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -170,7 +170,7 @@ configure_file(
170
170
# The pybind11 library can be found (set with -DPYBIND_DIR=...)
171
171
# The python executable is correct (set with -DPython3_EXECUTABLE=...)
172
172
# By default, find_package and probing for installed pybind11 is performed.
173
- # Super projects can set MLIR_DISABLE_CONFIGURE_PYTHON_DEV_PACKAGES=ON to
173
+ # Super projects can set MLIR_DISABLE_CONFIGURE_PYTHON_DEV_PACKAGES=ON to
174
174
# disable all package setup and control it themselves.
175
175
#-------------------------------------------------------------------------------
176
176
Original file line number Diff line number Diff line change @@ -1035,7 +1035,7 @@ class ConstantOp(_ods_ir.OpView):
1035
1035
...
1036
1036
```
1037
1037
1038
- expects ` value ` to be a ` TypedAttr ` (e.g., ` IntegerAttr ` or ` FloatAttr ` ).
1038
+ expects ` value ` to be a ` TypedAttr ` (e.g., ` IntegerAttr ` or ` FloatAttr ` ).
1039
1039
Thus, a natural extension is a builder that accepts a MLIR type and a Python value and instantiates the appropriate ` TypedAttr ` :
1040
1040
1041
1041
``` python
@@ -1181,9 +1181,9 @@ make the passes available along with the dialect.
1181
1181
Dialect functionality other than IR objects or passes, such as helper functions,
1182
1182
can be exposed to Python similarly to attributes and types. C API is expected to
1183
1183
exist for this functionality, which can then be wrapped using pybind11 and
1184
- ` [ include/mlir/Bindings/Python/PybindAdaptors.h](https://github.com/llvm/llvm-project/blob/main/mlir/include/mlir/Bindings/Python/PybindAdaptors.h)` ,
1184
+ [ ` include/mlir/Bindings/Python/PybindAdaptors.h ` ] ( https://github.com/llvm/llvm-project/blob/main/mlir/include/mlir/Bindings/Python/PybindAdaptors.h ) ,
1185
1185
or nanobind and
1186
- ` [ include/mlir/Bindings/Python/NanobindAdaptors.h](https://github.com/llvm/llvm-project/blob/main/mlir/include/mlir/Bindings/Python/NanobindAdaptors.h)`
1186
+ [ ` include/mlir/Bindings/Python/NanobindAdaptors.h ` ] ( https://github.com/llvm/llvm-project/blob/main/mlir/include/mlir/Bindings/Python/NanobindAdaptors.h )
1187
1187
utilities to connect to the rest of Python API. The bindings can be located in a
1188
1188
separate module or in the same module as attributes and types, and
1189
1189
loaded along with the dialect.
Original file line number Diff line number Diff line change @@ -306,7 +306,7 @@ def callback(a):
306
306
log (arr )
307
307
308
308
with Context ():
309
- # The module takes a subview of the argument memref, casts it to an unranked memref and
309
+ # The module takes a subview of the argument memref, casts it to an unranked memref and
310
310
# calls the callback with it.
311
311
module = Module .parse (
312
312
r"""
You can’t perform that action at this time.
0 commit comments