User Details
- User Since
- Oct 17 2021, 8:23 PM (102 w, 3 d)
Sep 4 2023
Sep 3 2023
Aug 31 2023
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.
thanks for following up on this!
Aug 30 2023
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 29 2023
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 24 2023
Aug 23 2023
Aug 22 2023
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 17 2023
Aug 16 2023
Aug 15 2023
The generated bindings: multiple dialects can emit tablegen records for the same enum attributes
Aug 11 2023
Jul 26 2023
Jul 25 2023
those would have to be updated to only fold if the constant value is valid
makes sense to me
Jul 21 2023
Jul 20 2023
Jul 19 2023
Jul 18 2023
Jul 10 2023
Jul 5 2023
Jul 4 2023
Jun 19 2023
Jun 7 2023
Jun 6 2023
Awesome, just some minor comments.
May 30 2023
May 25 2023
makes sense to me
May 24 2023
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 23 2023
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 19 2023
May 18 2023
friendly ping
May 16 2023
reopening so I remember to land this again once the bot is updated
May 13 2023
May 11 2023
May 9 2023
May 8 2023
May 7 2023
LGTM, can you also update the revision title
May 6 2023
May 5 2023
May 4 2023
May 3 2023
May 2 2023
Apr 20 2023
Apr 18 2023
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).