| Age | Commit message (Collapse) | Author | Files | Lines |
|
And silence `stubgen_runner` console spew.
|
|
|
|
|
|
Fixes #169045 (2cc4d45715cdd5eb23df51a48d6fd95c37a2276a)
|
|
|
|
|
|
|
|
|
|
Add Python bindings for `shard` dialect. Provide means for creating
constructs in this dialect in Python.
|
|
Used downstream
|
|
|
|
Need this as `mlir/dialects/transform/smt.py` imports it:
```py
from .._transform_smt_extension_ops_gen import *
from .._transform_smt_extension_ops_gen import _Dialect
```
|
|
https://github.com/llvm/llvm-project/pull/157930 broke bazel build (see
https://github.com/llvm/llvm-project/pull/157930#issuecomment-3318681217)
because bazel is stricter on implicit conversions (some difference in
flags passed to clang). This PR fixes by moving/removing `nb::typed`.
EDIT: and also the overlay...
|
|
This PR sets up build rules for the Python bindings of the IRDL dialect
introduced by #158488. The absence of them does not break the bazel
build but some downstream users rely on them.
Signed-off-by: Ingo Müller <ingomueller@google.com>
|
|
(#157995)
This reverts commit 46d8fdd86ec79ba241b0db6c7fedc835902bc960.
The whole set of commits got reverted in
https://github.com/llvm/llvm-project/pull/157831, reverting this one
too.
|
|
Used downstream
|
|
* Nanobind >= 2.9 is required now. Use 2.9.2
* Remove pyi filegroups that now refer to deleted files
|
|
|
|
|
|
For #145550 / c08502defe47d71d3e0beecee8ca040279c4dff9
|
|
|
|
There were some `gentbl_cc_library` targets left to convert.
Allow `gentbl_filegroup` rule to take a dict as well and change all
targets.
Move lld/BUILD.bazel from //llvm:tblgen.bzl to //mlir:tblgen.bzl, delete
the former.
This makes the BUILD files shorter and more readable.
|
|
Update Bazel configuration to match
697aa9995c24a977425e672d76a4a434384b16e3.
|
|
|
|
Added by 3c464d23682b0f9e6f70965e8f8f3861c9ba5417
|
|
Following a rather direct approach to expose PDL usage from C and then
Python. This doesn't yes plumb through adding support for custom
matchers through this interface, so constrained to basics initially.
This also exposes greedy rewrite driver. Only way currently to define
patterns is via PDL (just to keep small). The creation of the PDL
pattern module could be improved to avoid folks potentially accessing
the module used to construct it post construction. No ergonomic work
done yet.
---------
Signed-off-by: Jacques Pienaar <jpienaar@google.com>
|
|
#75960 added a bazel rule for generating enums for the async dialects, but there are no enums defined, and no cmake rule for that. Delete this rule.
|
|
The Python bindings generated for "async" dialect didn't include any of
the "async" dialect ops. This PR fixes issues with generation of Python
bindings for "async" dialect and adds a test case to use them.
|
|
|
|
Transform interpreter functionality can be used standalone without going
through the interpreter pass, make it available in Python.
|
|
`*OpsIncGen` should depend only on the respective `*OpsTdFiles`.
|
|
|
|
|
|
(#75615)
…7dca9
|
|
This is needed after 225648e91ccd951eab9a4ab3200248d5617df1cc
|
|
|
|
(#70617)
There is currently an op interface for subset insertion ops
(`SubsetInsertionOpInterface`), but not for subset extraction ops. This
commit adds `SubsetExtractionOpInterface` to `mlir/Interfaces`, as well
as a common dependent op interface: `SubsetOpInterface`.
- `SubsetOpInterface` is for ops that operate on tensor subsets. It
provides interface methods to check if two subset ops operate on
equivalent or disjoint subsets. Ops that implement this interface must
implement either `SubsetExtractionOpInterface` or
`SubsetInsertionOpInterface`.
- `SubsetExtractionOpInterface` is for ops that extract from a tensor at
a subset. E.g., `tensor.extract_slice`, `tensor.gather`,
`vector.transfer_read`. Current implemented only on
`tensor.extract_slice`.
- `SubsetInsertionOpInterface` is for ops that insert into a destination
tensor at a subset. E.g., `tensor.insert_slice`,
`tensor.parallel_insert_slice`, `tensor.scatter`,
`vector.transfer_write`. Currently only implemented on
`tensor.insert_slice`, `tensor.parallel_insert_slice`.
Other changes:
- Rename `SubsetInsertionOpInterface.td` to `SubsetOpInterface.td`.
- Add helper functions to `ValueBoundsOpInterface.cpp` for checking
whether two slices are disjoint.
The new interfaces will be utilized by a new "loop-invariant subset
hoisting"
transformation. (This new transform is roughly
what `Linalg/Transforms/SubsetHoisting.cpp` is doing, but in a generic
and interface-driven way.)
|
|
|
|
Added AffineOps and correct dependencies to the BUILD.bazel file.
|
|
Expose the autogenerated bindings.
Co-authored-by: Martin Lücke <mluecke@google.com>
|
|
|
|
Don't generate enums from the main VectorOps.td file as that
transitively includes enums from Arith.
---------
Co-authored-by: Nicolas Vasilache <ntv@google.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Reviewed By: olegshyshkov
Differential Revision: https://reviews.llvm.org/D157841
|