Currently blocks are always created with UnknownLoc's for their arguments. This
adds an arg_locs argument to all block creation APIs, which takes an optional
sequence of locations to use, one per block argument. If no locations are
supplied, the current Location context is used.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
mlir/lib/Bindings/Python/IRCore.cpp | ||
---|---|---|
200 | Nit: let's not specify the number of stack elements unless there is a good reason to. |
mlir/lib/Bindings/Python/IRCore.cpp | ||
---|---|---|
3006–3007 | Support for arguments after py::args like this was only added in pybind 2.9.0 (see changelog, https://github.com/pybind/pybind11/pull/3402), but the minimum version we set is 2.8.0. I can probably work around this, but any objections to just raising the min version to 2.9.0? It was released on December 28, 2021 @ftynse @stellaraccident The mlir-nvidia buildbot is using 2.8, I'm not sure what the process for updating it would be. |
mlir/lib/Bindings/Python/IRCore.cpp | ||
---|---|---|
3006–3007 | I'm fine with upgrading. How to upgrade though has rolled off of my working memory. |
Nit: let's not specify the number of stack elements unless there is a good reason to.