Page MenuHomePhabricator

Please use GitHub pull requests for new patches. Phabricator shutdown timeline

rkayaith (Rahul Kayaith)
User

Projects

User does not belong to any projects.

User Details

User Since
Oct 17 2021, 8:23 PM (102 w, 3 d)

Recent Activity

Sep 4 2023

rkayaith accepted D159403: [mlir][python] Create all missing attribute builders..
Sep 4 2023, 7:57 AM · Restricted Project, Restricted Project

Sep 3 2023

rkayaith requested changes to D159403: [mlir][python] Create all missing attribute builders..
Sep 3 2023, 9:01 AM · Restricted Project, Restricted Project

Aug 31 2023

rkayaith added a comment to D159182: [mlir][python] Add tests for implicit pybind casts..

I think only the positive tests for Attribute conversions are really relevant. And since that's covered by tests in the original change, it seems fine to drop this patch.

Aug 31 2023, 8:11 AM · Restricted Project, Restricted Project
rkayaith accepted D159255: [mlir][python] Remove __str__ from bindings of StringAttr..

thanks for following up on this!

Aug 31 2023, 7:07 AM · Restricted Project, Restricted Project

Aug 30 2023

rkayaith added a comment to D159182: [mlir][python] Add tests for implicit pybind casts..

Is there still a reason to implement __str__ for StringAttr then? It seems to just add inconsistency, as the implementation on every other attribute gives the asm string.

Aug 30 2023, 7:05 AM · Restricted Project, Restricted Project

Aug 29 2023

rkayaith added a comment to D158974: [mlir][python] Add __{bool,float,int,str}__ to bindings of attributes..

In particular, pybind11 uses these functions to automatically cast objects to the corresponding primitive types wherever they are required by pybound functions, e.g., arguments are converted to Python's int if the C++ signature requires a C++ int.

Aug 29 2023, 11:12 AM · Restricted Project, Restricted Project

Aug 24 2023

rkayaith added a comment to D157934: [mlir][python bindings] generate all the enums.
  • Address the TODO about refactoring TD_FILE and the wrappers quickly so as not to have the transient GEN_ENUM_BINDINGS_TD_FILE baked into downstreams (changed CMake arguments like that are hard to track down).
  • Add a comment to GEN_ENUM_BINDINGS_TD_FILE indicating that downstreams should not use this as it will be removed shortly/without warning upon satisfying the TODO.
Aug 24 2023, 10:59 AM · Restricted Project, Restricted Project

Aug 23 2023

rkayaith added inline comments to rGad7e6e90c2b1: update bazel for python binding.
Aug 23 2023, 8:03 PM · Restricted Project, Restricted Project
rkayaith accepted D158670: [mlir][python bindings] turn on openmp.
Aug 23 2023, 3:38 PM · Restricted Project, Restricted Project

Aug 22 2023

rkayaith added a comment to D157934: [mlir][python bindings] generate all the enums.

Seems generally fine to me, but I'd wait to see if anyone has opinions on the approach (using Attribute.parse) or enum name changes.

Aug 22 2023, 9:22 AM · Restricted Project, Restricted Project

Aug 17 2023

rkayaith added inline comments to D157934: [mlir][python bindings] generate all the enums.
Aug 17 2023, 9:51 PM · Restricted Project, Restricted Project

Aug 16 2023

rkayaith added inline comments to D157934: [mlir][python bindings] generate all the enums.
Aug 16 2023, 8:53 PM · Restricted Project, Restricted Project
rkayaith added inline comments to D158107: Avoid double-deleting successfully folded materialization ops.
Aug 16 2023, 2:05 PM · Restricted Project, Restricted Project
rkayaith committed rG0bc1430333b8: [mlir][linalg][transform][python] Fix type hints (authored by rkayaith).
[mlir][linalg][transform][python] Fix type hints
Aug 16 2023, 1:22 PM · Restricted Project, Restricted Project

Aug 15 2023

rkayaith added a comment to D157934: [mlir][python bindings] generate all the enums.

The generated bindings: multiple dialects can emit tablegen records for the same enum attributes

Aug 15 2023, 4:55 PM · Restricted Project, Restricted Project

Aug 11 2023

rkayaith accepted D157769: [mlir][python] add `owner` to OpResultsList..
Aug 11 2023, 6:55 PM · Restricted Project, Restricted Project
rkayaith retitled D157769: [mlir][python] add `owner` to OpResultsList. from add `owner` to OpResultsList. to [mlir][python] add `owner` to OpResultsList..
Aug 11 2023, 6:55 PM · Restricted Project, Restricted Project

Jul 26 2023

rkayaith added a comment to D156061: [mlir][tensor] Improve verifiers: detect out-of-bounds accesses.

I think static sizes/offsets can be generated from ssa ones by existing folders/canonicalization, so there are really no difference.

those would have to be updated to only fold if the constant value is valid

I think it would be OK to generate invalid ops during folding. (This can happen anyway, even if we do more aggressive checking of SSA values, because the verifier cannot take into account any possible foldings/canonicalizations that could happen.) garbage in => garbage out

Jul 26 2023, 10:21 AM · Restricted Project, Restricted Project

Jul 25 2023

rkayaith added a comment to D156061: [mlir][tensor] Improve verifiers: detect out-of-bounds accesses.

I think static sizes/offsets can be generated from ssa ones by existing folders/canonicalization, so there are really no difference.

those would have to be updated to only fold if the constant value is valid

Jul 25 2023, 9:41 PM · Restricted Project, Restricted Project
rkayaith accepted D156289: add set_type to ir.Value.

makes sense to me

Jul 25 2023, 9:28 PM · Restricted Project, Restricted Project

Jul 21 2023

rkayaith added inline comments to D155543: [MLIR][python bindings] invalidate ops after PassManager run.
Jul 21 2023, 7:24 AM · Restricted Project, Restricted Project

Jul 20 2023

rkayaith added inline comments to D155543: [MLIR][python bindings] invalidate ops after PassManager run.
Jul 20 2023, 6:36 PM · Restricted Project, Restricted Project

Jul 19 2023

rkayaith added inline comments to D155543: [MLIR][python bindings] invalidate ops after PassManager run.
Jul 19 2023, 1:02 PM · Restricted Project, Restricted Project

Jul 18 2023

rkayaith committed rG67a910bbff77: [mlir][python] Remove PythonAttr mapping functionality (authored by rkayaith).
[mlir][python] Remove PythonAttr mapping functionality
Jul 18 2023, 9:22 AM · Restricted Project, Restricted Project
rkayaith closed D154469: [mlir][python] Remove PythonAttr mapping functionality.
Jul 18 2023, 9:21 AM · Restricted Project, Restricted Project

Jul 10 2023

rkayaith committed rG82bbebbfc257: [mlir][python] Replace PythonAttr mappings with downcasting (authored by rkayaith).
[mlir][python] Replace PythonAttr mappings with downcasting
Jul 10 2023, 7:02 PM · Restricted Project, Restricted Project
rkayaith committed rG974c1596abde: [mlir][python] Downcast attributes in more places (authored by rkayaith).
[mlir][python] Downcast attributes in more places
Jul 10 2023, 7:02 PM · Restricted Project, Restricted Project
rkayaith closed D154468: [mlir][python] Replace PythonAttr mappings with downcasting.
Jul 10 2023, 7:01 PM · Restricted Project, Restricted Project
rkayaith closed D154462: [mlir][python] Downcast attributes in more places.
Jul 10 2023, 7:01 PM · Restricted Project, Restricted Project
rkayaith added inline comments to D154469: [mlir][python] Remove PythonAttr mapping functionality.
Jul 10 2023, 5:32 PM · Restricted Project, Restricted Project

Jul 5 2023

rkayaith accepted D154541: Add SymbolRefAttr to python bindings.
Jul 5 2023, 3:32 PM · Restricted Project, Restricted Project
rkayaith added inline comments to D154541: Add SymbolRefAttr to python bindings.
Jul 5 2023, 2:06 PM · Restricted Project, Restricted Project

Jul 4 2023

rkayaith published D154469: [mlir][python] Remove PythonAttr mapping functionality for review.
Jul 4 2023, 8:32 PM · Restricted Project, Restricted Project
rkayaith published D154468: [mlir][python] Replace PythonAttr mappings with downcasting for review.
Jul 4 2023, 8:32 PM · Restricted Project, Restricted Project
rkayaith committed rGb89b3cdb612f: [mlir][TestDialect] Fix invalid custom op printers (authored by rkayaith).
[mlir][TestDialect] Fix invalid custom op printers
Jul 4 2023, 8:30 PM · Restricted Project, Restricted Project
rkayaith closed D150080: [mlir][TestDialect] Fix invalid custom op printers.
Jul 4 2023, 8:29 PM · Restricted Project, Restricted Project
rkayaith published D154462: [mlir][python] Downcast attributes in more places for review.
Jul 4 2023, 4:17 PM · Restricted Project, Restricted Project

Jun 19 2023

rkayaith added a comment to D153144: [mlir][Pass] Check supported op types before running a pass.

Can this be tested without using the transform dialect?

I added a unit test. This issue can only be triggered from C++. (I cannot be triggered from test/Pass/pipeline-invalid.mlir.)

Jun 19 2023, 3:26 PM · Restricted Project, Restricted Project

Jun 7 2023

rkayaith added inline comments to D152171: [MLIR][Tosa] Pass encoding through `tosa-to-linalg`.
Jun 7 2023, 3:06 PM · Restricted Project, Restricted Project
rkayaith accepted D151840: [MLIR][python bindings] TypeCasters for Attributes.
Jun 7 2023, 8:47 AM · Restricted Project, Restricted Project

Jun 6 2023

rkayaith added a comment to D151840: [MLIR][python bindings] TypeCasters for Attributes.

Awesome, just some minor comments.

Jun 6 2023, 6:06 PM · Restricted Project, Restricted Project

May 30 2023

rkayaith resigned from D151675: [mlir] Fix a crash of attribute tests when given a non-integer type.
May 30 2023, 10:32 AM · Restricted Project, Restricted Project

May 25 2023

rkayaith added inline comments to D151409: [MLIR][python bindings] Fix inferReturnTypes + AttrSizedOperandSegments for optional operands.
May 25 2023, 9:48 AM · Restricted Project, Restricted Project
rkayaith accepted D151409: [MLIR][python bindings] Fix inferReturnTypes + AttrSizedOperandSegments for optional operands.

makes sense to me

May 25 2023, 8:33 AM · Restricted Project, Restricted Project

May 24 2023

rkayaith committed rGd0d26ee78cde: [mlir][python] Hook up PyRegionList.__iter__ to PyRegionIterator (authored by rkayaith).
[mlir][python] Hook up PyRegionList.__iter__ to PyRegionIterator
May 24 2023, 7:17 PM · Restricted Project, Restricted Project
rkayaith closed D150244: [mlir][python] Hook up PyRegionList.__iter__ to PyRegionIterator.
May 24 2023, 7:17 PM · Restricted Project, Restricted Project
rkayaith committed rG514dddbeba64: [mlir][python] Allow specifying block arg locations (authored by rkayaith).
[mlir][python] Allow specifying block arg locations
May 24 2023, 6:56 PM · Restricted Project, Restricted Project
rkayaith closed D150084: [mlir][python] Allow specifying block arg locations.
May 24 2023, 6:56 PM · Restricted Project, Restricted Project
rkayaith added inline comments to D150839: [MLIR][python bindings] Expose TypeIDs in python.
May 24 2023, 6:42 PM · Restricted Project, Restricted Project
rkayaith added a comment to D150927: [MLIR][python bindings] Add TypeCaster for returning refined types from python APIs.

Thanks for all the iteration on this! Mostly minor comments here, LGTM once they're addressed but I'd like @ftynse / others to take a look as well.

May 24 2023, 4:49 PM · Restricted Project, Restricted Project

May 23 2023

rkayaith added inline comments to D150927: [MLIR][python bindings] Add TypeCaster for returning refined types from python APIs.
May 23 2023, 11:27 PM · Restricted Project, Restricted Project
rkayaith committed rG478e392c0ca6: [mlir][python] Bump min pybind11 version to 2.9.0 (authored by rkayaith).
[mlir][python] Bump min pybind11 version to 2.9.0
May 23 2023, 10:52 AM · Restricted Project, Restricted Project
rkayaith closed D150247: [mlir][python] Bump min pybind11 version to 2.9.0.
May 23 2023, 10:51 AM · Restricted Project, Restricted Project
rkayaith added a comment to D150247: [mlir][python] Bump min pybind11 version to 2.9.0.

So the (only?) bot testing this had its config updated in https://reviews.llvm.org/D150245, but it got shut down before the changes were applied. I'm going to go ahead and land this assuming it'll be updated if/when it comes back.

May 23 2023, 10:51 AM · Restricted Project, Restricted Project

May 19 2023

rkayaith added inline comments to D150839: [MLIR][python bindings] Expose TypeIDs in python.
May 19 2023, 9:36 AM · Restricted Project, Restricted Project
rkayaith added inline comments to D150927: [MLIR][python bindings] Add TypeCaster for returning refined types from python APIs.
May 19 2023, 8:52 AM · Restricted Project, Restricted Project

May 18 2023

rkayaith added inline comments to D150927: [MLIR][python bindings] Add TypeCaster for returning refined types from python APIs.
May 18 2023, 11:08 PM · Restricted Project, Restricted Project
rkayaith added inline comments to D150927: [MLIR][python bindings] Add TypeCaster for returning refined types from python APIs.
May 18 2023, 10:48 PM · Restricted Project, Restricted Project
rkayaith added inline comments to D150839: [MLIR][python bindings] Expose TypeIDs in python.
May 18 2023, 10:25 PM · Restricted Project, Restricted Project
rkayaith added a comment to D150082: [mlir] Move value name shadowing functionality into OpAsmOpInterface.

friendly ping

May 18 2023, 4:08 PM · Restricted Project, Restricted Project

May 16 2023

rkayaith reopened D150084: [mlir][python] Allow specifying block arg locations.

reopening so I remember to land this again once the bot is updated

May 16 2023, 8:56 AM · Restricted Project, Restricted Project

May 13 2023

rkayaith added inline comments to D150423: [MLIR][python bindings] Add casting of concrete types when returning from bindings code.
May 13 2023, 11:24 AM · Restricted Project, Restricted Project
rkayaith added inline comments to D150423: [MLIR][python bindings] Add casting of concrete types when returning from bindings code.
May 13 2023, 9:56 AM · Restricted Project, Restricted Project

May 11 2023

rkayaith committed rZORG43ac011e8c36: Bump pybind11 version for mlir-nvidia (authored by rkayaith).
Bump pybind11 version for mlir-nvidia
May 11 2023, 11:29 AM · Restricted Project
rkayaith closed D150245: Bump pybind11 version for mlir-nvidia.
May 11 2023, 11:29 AM · Restricted Project

May 9 2023

rkayaith published D150244: [mlir][python] Hook up PyRegionList.__iter__ to PyRegionIterator for review.
May 9 2023, 8:52 PM · Restricted Project, Restricted Project
rkayaith published D150247: [mlir][python] Bump min pybind11 version to 2.9.0 for review.
May 9 2023, 8:49 PM · Restricted Project, Restricted Project
rkayaith published D150245: Bump pybind11 version for mlir-nvidia for review.
May 9 2023, 8:49 PM · Restricted Project
rkayaith updated subscribers of D150084: [mlir][python] Allow specifying block arg locations.
May 9 2023, 3:25 PM · Restricted Project, Restricted Project
rkayaith added a reverting change for rG4d0d295b618e: [mlir][python] Allow specifying block arg locations: rG2b7c45330725: Revert "[mlir][python] Allow specifying block arg locations".
May 9 2023, 3:10 PM · Restricted Project, Restricted Project
rkayaith committed rG2b7c45330725: Revert "[mlir][python] Allow specifying block arg locations" (authored by rkayaith).
Revert "[mlir][python] Allow specifying block arg locations"
May 9 2023, 3:10 PM · Restricted Project, Restricted Project
rkayaith added a reverting change for D150084: [mlir][python] Allow specifying block arg locations: rG2b7c45330725: Revert "[mlir][python] Allow specifying block arg locations".
May 9 2023, 3:10 PM · Restricted Project, Restricted Project
rkayaith committed rG4d0d295b618e: [mlir][python] Allow specifying block arg locations (authored by rkayaith).
[mlir][python] Allow specifying block arg locations
May 9 2023, 9:40 AM · Restricted Project, Restricted Project
rkayaith closed D150084: [mlir][python] Allow specifying block arg locations.
May 9 2023, 9:40 AM · Restricted Project, Restricted Project

May 8 2023

rkayaith published D150084: [mlir][python] Allow specifying block arg locations for review.
May 8 2023, 10:56 AM · Restricted Project, Restricted Project

May 7 2023

rkayaith published D150082: [mlir] Move value name shadowing functionality into OpAsmOpInterface for review.
May 7 2023, 7:47 PM · Restricted Project, Restricted Project
rkayaith published D150080: [mlir][TestDialect] Fix invalid custom op printers for review.
May 7 2023, 7:47 PM · Restricted Project, Restricted Project
rkayaith accepted D149902: [MLIR][python bindings] Add `PyValue.get_name`.

LGTM, can you also update the revision title

May 7 2023, 5:50 PM · Restricted Project, Restricted Project
rkayaith added inline comments to D149902: [MLIR][python bindings] Add `PyValue.get_name`.
May 7 2023, 5:32 PM · Restricted Project, Restricted Project

May 6 2023

rkayaith added inline comments to D149902: [MLIR][python bindings] Add `PyValue.get_name`.
May 6 2023, 9:50 PM · Restricted Project, Restricted Project

May 5 2023

rkayaith added inline comments to D149902: [MLIR][python bindings] Add `PyValue.get_name`.
May 5 2023, 9:33 PM · Restricted Project, Restricted Project

May 4 2023

rkayaith added inline comments to D149902: [MLIR][python bindings] Add `PyValue.get_name`.
May 4 2023, 7:28 PM · Restricted Project, Restricted Project
rkayaith added inline comments to D149902: [MLIR][python bindings] Add `PyValue.get_name`.
May 4 2023, 7:10 PM · Restricted Project, Restricted Project
rkayaith added inline comments to D149902: [MLIR][python bindings] Add `PyValue.get_name`.
May 4 2023, 7:06 PM · Restricted Project, Restricted Project
rkayaith added inline comments to D149820: Restore mlir-opt `--run-reproducer` option to opt-in running a reproducer.
May 4 2023, 7:43 AM · Restricted Project, Restricted Project

May 3 2023

rkayaith accepted D149690: [MLIR][python bindings] Add support for DenseElementsAttr of IndexType.
May 3 2023, 11:10 AM · Restricted Project, Restricted Project

May 2 2023

rkayaith added inline comments to D149690: [MLIR][python bindings] Add support for DenseElementsAttr of IndexType.
May 2 2023, 4:10 PM · Restricted Project, Restricted Project
rkayaith added inline comments to D149690: [MLIR][python bindings] Add support for DenseElementsAttr of IndexType.
May 2 2023, 3:47 PM · Restricted Project, Restricted Project

Apr 20 2023

rkayaith committed rG6089d612a580: [mlir] Prevent implicit downcasting to interfaces (authored by rkayaith).
[mlir] Prevent implicit downcasting to interfaces
Apr 20 2023, 1:32 PM · Restricted Project, Restricted Project
rkayaith committed rG00e3566d6c98: [mlir][arith] Add arith.constant materialization helper (authored by rkayaith).
[mlir][arith] Add arith.constant materialization helper
Apr 20 2023, 1:32 PM · Restricted Project, Restricted Project
rkayaith committed rG8db947da0b37: [mlir] Make ElementsAttr inherit from TypedAttr (authored by rkayaith).
[mlir] Make ElementsAttr inherit from TypedAttr
Apr 20 2023, 1:32 PM · Restricted Project, Restricted Project
rkayaith closed D148493: [mlir] Prevent implicit downcasting to interfaces.
Apr 20 2023, 1:32 PM · Restricted Project, Restricted Project
rkayaith closed D148492: [mlir] Make ElementsAttr inherit from TypedAttr.
Apr 20 2023, 1:32 PM · Restricted Project, Restricted Project
rkayaith closed D148491: [mlir][arith] Add arith.constant materialization helper.
Apr 20 2023, 1:32 PM · Restricted Project, Restricted Project
rkayaith updated the summary of D148491: [mlir][arith] Add arith.constant materialization helper.
Apr 20 2023, 1:31 PM · Restricted Project, Restricted Project

Apr 18 2023

rkayaith added a comment to D148605: [mlir][IR] RankedShapedType::getNumElements supports non-static shapes.

Why is this a better API than the assertion?

It seems more consistent with the other methods, e.g. getDimSize(dim) doesn't assert that the dim size is known.

That does not seem comparable to me: it getDimSize(dim) returns always a valid dimension, if not known it return kDynamic, which is a valid value for a "dimension".
I don't see how getNumElements() can return anything "valid" when shapes are dynamic.

The interpretation would be that kDynamic is a valid value for a "shape element count" (maybe this isn't useful though, and actually I would've preferred returning something like std::optional<int64_t> instead, I just suggested kDynamic initially since it seemed like there was precedent).

Apr 18 2023, 11:16 AM · Restricted Project, Restricted Project
rkayaith added a comment to D148605: [mlir][IR] RankedShapedType::getNumElements supports non-static shapes.

Why is this a better API than the assertion?

Apr 18 2023, 9:31 AM · Restricted Project, Restricted Project
rkayaith added inline comments to D148453: [mlir][IR] Add RankedShapedType interface.
Apr 18 2023, 8:48 AM · Restricted Project, Restricted Project, Restricted Project

Apr 17 2023

rkayaith added inline comments to D148453: [mlir][IR] Add RankedShapedType interface.
Apr 17 2023, 9:33 PM · Restricted Project, Restricted Project, Restricted Project
rkayaith added a reviewer for D148491: [mlir][arith] Add arith.constant materialization helper: rriddle.
Apr 17 2023, 10:53 AM · Restricted Project, Restricted Project