Page MenuHomePhabricator

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

math-fehr (Fehr Mathieu)
User

Projects

User does not belong to any projects.

User Details

User Since
Jan 20 2021, 10:21 AM (139 w, 3 d)

Recent Activity

Aug 20 2023

math-fehr committed rG1295a351bd97: [mlir][irdl] Support variadicity check in operations (authored by math-fehr).
[mlir][irdl] Support variadicity check in operations
Aug 20 2023, 8:23 AM · Restricted Project, Restricted Project
math-fehr closed D154073: [mlir][irdl] Support variadicity check in operations.
Aug 20 2023, 8:23 AM · Restricted Project, Restricted Project
math-fehr updated the diff for D154073: [mlir][irdl] Support variadicity check in operations.

Remove uses of std::reduce

Aug 20 2023, 8:12 AM · Restricted Project, Restricted Project
math-fehr reopened D154073: [mlir][irdl] Support variadicity check in operations.

Reopen, as buildbot failed because of std::reduce

Aug 20 2023, 8:03 AM · Restricted Project, Restricted Project
math-fehr added a reverting change for rG62b2b399924c: [mlir][irdl] Support variadicity check in operations: rG00aa1a8c3d0b: Revert "[mlir][irdl] Support variadicity check in operations".
Aug 20 2023, 7:58 AM · Restricted Project, Restricted Project
math-fehr committed rG00aa1a8c3d0b: Revert "[mlir][irdl] Support variadicity check in operations" (authored by math-fehr).
Revert "[mlir][irdl] Support variadicity check in operations"
Aug 20 2023, 7:58 AM · Restricted Project, Restricted Project
math-fehr added a reverting change for D154073: [mlir][irdl] Support variadicity check in operations: rG00aa1a8c3d0b: Revert "[mlir][irdl] Support variadicity check in operations".
Aug 20 2023, 7:58 AM · Restricted Project, Restricted Project
math-fehr committed rG62b2b399924c: [mlir][irdl] Support variadicity check in operations (authored by math-fehr).
[mlir][irdl] Support variadicity check in operations
Aug 20 2023, 7:40 AM · Restricted Project, Restricted Project
math-fehr closed D154073: [mlir][irdl] Support variadicity check in operations.
Aug 20 2023, 7:39 AM · Restricted Project, Restricted Project
math-fehr updated the diff for D154073: [mlir][irdl] Support variadicity check in operations.

Update to latest main

Aug 20 2023, 7:38 AM · Restricted Project, Restricted Project

Aug 19 2023

math-fehr updated the diff for D154073: [mlir][irdl] Support variadicity check in operations.

Update to main

Aug 19 2023, 8:39 AM · Restricted Project, Restricted Project
math-fehr added a comment to D156067: [mlir][NFC] Split OpBase.td into multiple smaller units.

@Groverkss, my understanding is that since River accepted the patch, you should be able to land it as long as you fixed his comments (which I feel you did).

Aug 19 2023, 7:28 AM · Restricted Project, Restricted Project

Aug 16 2023

math-fehr added a comment to D154073: [mlir][irdl] Support variadicity check in operations.

Ping @Mogball

Aug 16 2023, 6:47 AM · Restricted Project, Restricted Project
math-fehr accepted D155112: [mlir][irdl] Introduce a way to define regions.

Sorry for the delay!
This looks good to me!

Aug 16 2023, 6:41 AM · Restricted Project, Restricted Project

Jul 28 2023

math-fehr added a comment to D155112: [mlir][irdl] Introduce a way to define regions.

I'm fine with the current naming!
In any way, we need separate files for the invalid definitions, so we can't really merge them!

Jul 28 2023, 8:52 AM · Restricted Project, Restricted Project

Jul 26 2023

math-fehr committed rG6971b83b2fdd: [mlir][irdl] Add Variadicity to IRDL operations (authored by math-fehr).
[mlir][irdl] Add Variadicity to IRDL operations
Jul 26 2023, 10:17 AM · Restricted Project, Restricted Project
math-fehr closed D153983: [mlir][irdl] Add Variadicity to IRDL operations.
Jul 26 2023, 10:17 AM · Restricted Project, Restricted Project
math-fehr updated the diff for D153983: [mlir][irdl] Add Variadicity to IRDL operations.

Update to main

Jul 26 2023, 10:03 AM · Restricted Project, Restricted Project
math-fehr updated the diff for D153983: [mlir][irdl] Add Variadicity to IRDL operations.

Update to main

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

Jul 25 2023

math-fehr updated the diff for D153983: [mlir][irdl] Add Variadicity to IRDL operations.

Update to main

Jul 25 2023, 9:23 AM · Restricted Project, Restricted Project
math-fehr added a comment to D153983: [mlir][irdl] Add Variadicity to IRDL operations.

@Mogball, is that good to merge?

Jul 25 2023, 7:36 AM · Restricted Project, Restricted Project

Jul 23 2023

math-fehr added a comment to D155112: [mlir][irdl] Introduce a way to define regions.

Nice!
I added more comment, notably in the implementation of the region verifier. I think there is currently a bug at least!
For the testing files, we can have valid files directly in the regions-ops.irdl.mlir, it's just that if we do, we cannot load them to test their implementation.
This is why I put all valid files in testd.irdl.mlir, and the one failing in a separate file!

Jul 23 2023, 3:49 PM · Restricted Project, Restricted Project

Jul 17 2023

math-fehr added a comment to D155112: [mlir][irdl] Introduce a way to define regions.

Nice! For the mlir::Value, the solution is to wrap the value type in a TypeAttr. This is exactly how operands are handled for instance.

Jul 17 2023, 7:09 AM · Restricted Project, Restricted Project

Jul 14 2023

math-fehr added inline comments to D155112: [mlir][irdl] Introduce a way to define regions.
Jul 14 2023, 8:53 AM · Restricted Project, Restricted Project
math-fehr added inline comments to D154073: [mlir][irdl] Support variadicity check in operations.
Jul 14 2023, 8:52 AM · Restricted Project, Restricted Project
math-fehr updated the diff for D154073: [mlir][irdl] Support variadicity check in operations.

Address comments, and add missing tests

Jul 14 2023, 8:51 AM · Restricted Project, Restricted Project
math-fehr added a comment to D155112: [mlir][irdl] Introduce a way to define regions.

That looks like a nice first step to me!
I think the things I would change are:

  • Adding an !irdl.region type
  • Making that by default, irdl.region do not constrain the number of blocks
  • Maybe changing the format of irdl.region to make it explicit that we are constraining the number of arguments to 0 if no arguments are provided
Jul 14 2023, 7:14 AM · Restricted Project, Restricted Project

Jul 7 2023

math-fehr added inline comments to D153983: [mlir][irdl] Add Variadicity to IRDL operations.
Jul 7 2023, 8:37 AM · Restricted Project, Restricted Project
math-fehr updated the diff for D153983: [mlir][irdl] Add Variadicity to IRDL operations.

Address comments

Jul 7 2023, 8:36 AM · Restricted Project, Restricted Project

Jun 29 2023

math-fehr requested review of D154073: [mlir][irdl] Support variadicity check in operations.
Jun 29 2023, 5:34 AM · Restricted Project, Restricted Project

Jun 28 2023

math-fehr requested review of D153983: [mlir][irdl] Add Variadicity to IRDL operations.
Jun 28 2023, 8:15 AM · Restricted Project, Restricted Project

Jun 19 2023

math-fehr accepted D152618: [mlir][irdl] Add `irdl.attributes` operation for defining named attributes.

Perfect! Thanks a lot!

Jun 19 2023, 4:58 PM · Restricted Project, Restricted Project
math-fehr added a comment to D152618: [mlir][irdl] Add `irdl.attributes` operation for defining named attributes.

You should add the check in the verifier rather than in the loading function.
When we create any IRDL program (even if we don't load it), it should trigger an error.
Can you also add a test for that?

Jun 19 2023, 2:04 AM · Restricted Project, Restricted Project

Jun 18 2023

math-fehr added a comment to D152618: [mlir][irdl] Add `irdl.attributes` operation for defining named attributes.

I'm not sure if it's needed because this rule is enforced by the operation parser, isn't it?
But on the other hand I may be missing something. If you think that the verifier is needed, could you please provide a test case that tests this check? I couldn't come up with any.

Jun 18 2023, 3:28 AM · Restricted Project, Restricted Project

Jun 13 2023

math-fehr added inline comments to D152618: [mlir][irdl] Add `irdl.attributes` operation for defining named attributes.
Jun 13 2023, 3:07 AM · Restricted Project, Restricted Project

Jun 12 2023

math-fehr added inline comments to D152618: [mlir][irdl] Add `irdl.attributes` operation for defining named attributes.
Jun 12 2023, 4:18 AM · Restricted Project, Restricted Project

Jun 11 2023

math-fehr added a comment to D152618: [mlir][irdl] Add `irdl.attributes` operation for defining named attributes.

Oh also, could you write a verifier in the operation that attributeValues and attributeValueNames have the same length?

Jun 11 2023, 11:10 AM · Restricted Project, Restricted Project
math-fehr added a comment to D152618: [mlir][irdl] Add `irdl.attributes` operation for defining named attributes.

Thanks a lot for the patch!
I added some inline comments.

Jun 11 2023, 11:07 AM · Restricted Project, Restricted Project

Jun 8 2023

math-fehr committed rG4b526657809a: [mlir][irdl] NFC: Ensure ops ends with `Op` suffix (authored by math-fehr).
[mlir][irdl] NFC: Ensure ops ends with `Op` suffix
Jun 8 2023, 5:09 AM · Restricted Project, Restricted Project
math-fehr closed D152354: [mlir][irdl] NFC: Ensure ops ends with `Op` suffix.
Jun 8 2023, 5:09 AM · Restricted Project, Restricted Project
math-fehr updated the diff for D152354: [mlir][irdl] NFC: Ensure ops ends with `Op` suffix.

core: Update to main

Jun 8 2023, 4:48 AM · Restricted Project, Restricted Project
math-fehr committed rGf0a8c5c5cbed: [mlir][irdl] Add `irdl.c_pred` (authored by math-fehr).
[mlir][irdl] Add `irdl.c_pred`
Jun 8 2023, 3:39 AM · Restricted Project, Restricted Project
math-fehr closed D152301: [mlir][irdl] Add `irdl.c_pred`.
Jun 8 2023, 3:38 AM · Restricted Project, Restricted Project
math-fehr updated the diff for D152301: [mlir][irdl] Add `irdl.c_pred`.

Update to main

Jun 8 2023, 2:54 AM · Restricted Project, Restricted Project

Jun 7 2023

math-fehr requested review of D152354: [mlir][irdl] NFC: Ensure ops ends with `Op` suffix.
Jun 7 2023, 3:10 AM · Restricted Project, Restricted Project

Jun 6 2023

math-fehr added a comment to D152301: [mlir][irdl] Add `irdl.c_pred`.

I'll fix the name of the other IRDL operations (as they are inconsistent) in another patch to make this cleaner!

Jun 6 2023, 3:48 PM · Restricted Project, Restricted Project
math-fehr updated the diff for D152301: [mlir][irdl] Add `irdl.c_pred`.

Revert change of other operation names

Jun 6 2023, 3:47 PM · Restricted Project, Restricted Project
math-fehr updated the diff for D152301: [mlir][irdl] Add `irdl.c_pred`.

Address comments

Jun 6 2023, 3:38 PM · Restricted Project, Restricted Project
math-fehr retitled D152301: [mlir][irdl] Add `irdl.c_pred` from [mlir][irdl] Add `irdl.cpred` to [mlir][irdl] Add `irdl.c_pred`.
Jun 6 2023, 3:02 PM · Restricted Project, Restricted Project
math-fehr updated the diff for D152301: [mlir][irdl] Add `irdl.c_pred`.

Fix documentation

Jun 6 2023, 3:01 PM · Restricted Project, Restricted Project
math-fehr requested review of D152301: [mlir][irdl] Add `irdl.c_pred`.
Jun 6 2023, 12:14 PM · Restricted Project, Restricted Project

May 17 2023

math-fehr committed rG42987dfa3a85: [mlir][irdl] Add `irdl.any_of` operation (authored by math-fehr).
[mlir][irdl] Add `irdl.any_of` operation
May 17 2023, 1:54 PM · Restricted Project, Restricted Project
math-fehr closed D145735: [mlir][irdl] Add `irdl.any_of` operation.
May 17 2023, 1:54 PM · Restricted Project, Restricted Project
math-fehr updated the diff for D145735: [mlir][irdl] Add `irdl.any_of` operation.

Address comments, and rebase on main

May 17 2023, 1:29 PM · Restricted Project, Restricted Project
math-fehr committed rGc8a581c331f2: [mlir][irdl] Add verification of IRDL ops (authored by math-fehr).
[mlir][irdl] Add verification of IRDL ops
May 17 2023, 5:31 AM · Restricted Project, Restricted Project
math-fehr closed D145734: [mlir][irdl] Add verification of IRDL ops.
May 17 2023, 5:31 AM · Restricted Project, Restricted Project
math-fehr updated the diff for D145734: [mlir][irdl] Add verification of IRDL ops.

Update to main

May 17 2023, 5:16 AM · Restricted Project, Restricted Project
math-fehr updated the diff for D145734: [mlir][irdl] Add verification of IRDL ops.

Fix bug triggered by clang-10, and update to latest LLVM

May 17 2023, 4:28 AM · Restricted Project, Restricted Project

May 12 2023

math-fehr reopened D145734: [mlir][irdl] Add verification of IRDL ops.

This was triggering a buildbot failure, I'm currently investigating this

May 12 2023, 10:51 AM · Restricted Project, Restricted Project
math-fehr added a reverting change for rG52761cb99164: [mlir][irdl] Add verification of IRDL ops: rG648d19204045: Revert "[mlir][irdl] Add verification of IRDL ops".
May 12 2023, 10:48 AM · Restricted Project, Restricted Project
math-fehr committed rG648d19204045: Revert "[mlir][irdl] Add verification of IRDL ops" (authored by math-fehr).
Revert "[mlir][irdl] Add verification of IRDL ops"
May 12 2023, 10:48 AM · Restricted Project, Restricted Project
math-fehr added a reverting change for D145734: [mlir][irdl] Add verification of IRDL ops: rG648d19204045: Revert "[mlir][irdl] Add verification of IRDL ops".
May 12 2023, 10:48 AM · Restricted Project, Restricted Project
math-fehr committed rG52761cb99164: [mlir][irdl] Add verification of IRDL ops (authored by math-fehr).
[mlir][irdl] Add verification of IRDL ops
May 12 2023, 10:39 AM · Restricted Project, Restricted Project
math-fehr closed D145734: [mlir][irdl] Add verification of IRDL ops.
May 12 2023, 10:39 AM · Restricted Project, Restricted Project
math-fehr updated the diff for D145734: [mlir][irdl] Add verification of IRDL ops.

Rebase to head

May 12 2023, 10:38 AM · Restricted Project, Restricted Project
math-fehr updated the diff for D145734: [mlir][irdl] Add verification of IRDL ops.

Address comments

May 12 2023, 4:07 AM · Restricted Project, Restricted Project

May 5 2023

math-fehr committed rG3ffd13b183ed: [mlir][irdl] Add IRDL verification constraint classes (authored by math-fehr).
[mlir][irdl] Add IRDL verification constraint classes
May 5 2023, 3:17 AM · Restricted Project, Restricted Project
math-fehr closed D145733: [mlir][irdl] Add IRDL verification constraint classes.
May 5 2023, 3:17 AM · Restricted Project, Restricted Project
math-fehr updated the diff for D145733: [mlir][irdl] Add IRDL verification constraint classes.

Rebase to main

May 5 2023, 3:14 AM · Restricted Project, Restricted Project

Apr 26 2023

math-fehr added a comment to D145733: [mlir][irdl] Add IRDL verification constraint classes.

For the tri-state problem, I think that we want to let users use empty Attribute in their Attribute parameters.
For instance, if you would define a vector in IRDL, you may use the null attribute to represent the vector encoding.

Apr 26 2023, 3:26 PM · Restricted Project, Restricted Project
math-fehr updated the diff for D145733: [mlir][irdl] Add IRDL verification constraint classes.

Address comments

Apr 26 2023, 3:18 PM · Restricted Project, Restricted Project

Apr 24 2023

math-fehr updated the diff for D145733: [mlir][irdl] Add IRDL verification constraint classes.

Improve includes, and remove unneeded namespace prefixes

Apr 24 2023, 9:19 AM · Restricted Project, Restricted Project
math-fehr added a comment to D145733: [mlir][irdl] Add IRDL verification constraint classes.

ping @rriddle, just to know if I should write unit tests or if the filecheck tests in D145734 are sufficient.

Apr 24 2023, 8:11 AM · Restricted Project, Restricted Project

Apr 23 2023

math-fehr committed rG8ac8c922fb3f: [mlir][irdl] Add IRDL registration (authored by math-fehr).
[mlir][irdl] Add IRDL registration
Apr 23 2023, 8:29 AM · Restricted Project, Restricted Project
math-fehr closed D144693: [mlir][irdl] Add IRDL registration.
Apr 23 2023, 8:29 AM · Restricted Project, Restricted Project
math-fehr updated the diff for D144693: [mlir][irdl] Add IRDL registration.

Rebase to latests LLVM, and attempt to fix compilation

Apr 23 2023, 7:43 AM · Restricted Project, Restricted Project
math-fehr reopened D144693: [mlir][irdl] Add IRDL registration.
Apr 23 2023, 7:43 AM · Restricted Project, Restricted Project

Apr 3 2023

math-fehr added a comment to D145733: [mlir][irdl] Add IRDL verification constraint classes.

All of these are tested in D145734 with filecheck. Do you think I should still add additional unit tests for these?

Apr 3 2023, 4:22 PM · Restricted Project, Restricted Project
math-fehr updated the diff for D144693: [mlir][irdl] Add IRDL registration.

Address comments

Apr 3 2023, 4:03 PM · Restricted Project, Restricted Project
math-fehr added a comment to D144692: [mlir] Introduce IRDL dialect.

It should be good now, I forgot dependencies in the CMake!

Apr 3 2023, 3:22 PM · Restricted Project, Restricted Project
math-fehr updated the diff for D144692: [mlir] Introduce IRDL dialect.

Fix MLIRIRDL CMake requirements

Apr 3 2023, 2:40 PM · Restricted Project, Restricted Project
math-fehr reopened D144692: [mlir] Introduce IRDL dialect.
Apr 3 2023, 2:40 PM · Restricted Project, Restricted Project
math-fehr added a comment to D144692: [mlir] Introduce IRDL dialect.

Thanks for reverting it, I'm trying to reproduce it locally and find a fix!

Apr 3 2023, 1:11 PM · Restricted Project, Restricted Project
math-fehr added a comment to D144692: [mlir] Introduce IRDL dialect.

Right, I'll try to ask for commit access, I wasn't sure what are the requirements for it!

Apr 3 2023, 10:51 AM · Restricted Project, Restricted Project
math-fehr added a comment to D144692: [mlir] Introduce IRDL dialect.

I just got an email with two buildbot failures:
https://lab.llvm.org/buildbot/#/builders/181/builds/16214
https://lab.llvm.org/buildbot/#/builders/180/builds/14593

Apr 3 2023, 10:48 AM · Restricted Project, Restricted Project
math-fehr added a comment to D144692: [mlir] Introduce IRDL dialect.

Thank! Could you land this for me? I do not have commit access.

Apr 3 2023, 9:36 AM · Restricted Project, Restricted Project
math-fehr updated the diff for D144692: [mlir] Introduce IRDL dialect.

Rebase to latest LLVM

Apr 3 2023, 9:36 AM · Restricted Project, Restricted Project

Mar 23 2023

math-fehr requested review of D144692: [mlir] Introduce IRDL dialect.
Mar 23 2023, 7:43 AM · Restricted Project, Restricted Project

Mar 15 2023

math-fehr updated the diff for D144692: [mlir] Introduce IRDL dialect.

Address comments

Mar 15 2023, 6:30 PM · Restricted Project, Restricted Project

Mar 12 2023

math-fehr updated the diff for D144693: [mlir][irdl] Add IRDL registration.

Update comment (register -> load)

Mar 12 2023, 3:01 PM · Restricted Project, Restricted Project
math-fehr added a comment to D144693: [mlir][irdl] Add IRDL registration.

Sure, but that means that no pass will every create entities (Operation/Type/Attribute) defined by an IRDL dialect? If you think otherwise: how would that happen?

Mar 12 2023, 11:48 AM · Restricted Project, Restricted Project
math-fehr added a comment to D144693: [mlir][irdl] Add IRDL registration.

I feel like you're using "register" when it is actually more "loading" here. (I'm not sure IRDL has a concept equivalent to "registering" dialects?)

Coming back to this: how do we differentiate registering from loading in IRDL? Do you see some difference somehow?

Mar 12 2023, 3:31 AM · Restricted Project, Restricted Project

Mar 10 2023

math-fehr added a comment to D144693: [mlir][irdl] Add IRDL registration.

I feel like you're using "register" when it is actually more "loading" here. (I'm not sure IRDL has a concept equivalent to "registering" dialects?)

Coming back to this: how do we differentiate registering from loading in IRDL? Do you see some difference somehow?

Mar 10 2023, 6:06 PM · Restricted Project, Restricted Project
math-fehr added inline comments to D144692: [mlir] Introduce IRDL dialect.
Mar 10 2023, 4:01 PM · Restricted Project, Restricted Project
math-fehr updated the diff for D144692: [mlir] Introduce IRDL dialect.

Document the handling of mlir::Type in IRDL.

Mar 10 2023, 4:00 PM · Restricted Project, Restricted Project
math-fehr updated the diff for D144693: [mlir][irdl] Add IRDL registration.

Address additional comments

Mar 10 2023, 2:29 PM · Restricted Project, Restricted Project
math-fehr updated the diff for D144692: [mlir] Introduce IRDL dialect.

Address some comments

Mar 10 2023, 2:27 PM · Restricted Project, Restricted Project
math-fehr added inline comments to D144692: [mlir] Introduce IRDL dialect.
Mar 10 2023, 2:09 PM · Restricted Project, Restricted Project
math-fehr updated the diff for D144692: [mlir] Introduce IRDL dialect.

Rebase to main

Mar 10 2023, 1:19 PM · Restricted Project, Restricted Project
math-fehr updated the diff for D144692: [mlir] Introduce IRDL dialect.

Address comments

Mar 10 2023, 7:19 AM · Restricted Project, Restricted Project