User Details
- User Since
- Mar 17 2016, 7:58 AM (376 w, 1 d)
Yesterday
Jan 18 2023
- Add newline to EOF
- Remove GPU from EmitC dependencies and remove GPU function attribute pass
- Revert small differences from original upstream
Jan 5 2023
- Add newline to EOF
Dec 1 2022
Addressed comments. Thank you @vzakhari .
- Fix cut-and-paste error in comment
- Rebase. Use tblgen-erated bit enum function. Remove unnecessary braces.
Nov 4 2022
- Fix cut-and-paste error in comment
Oct 31 2022
Oct 27 2022
Oct 25 2022
- Fix clang formatting
- Change fastmath print/parse format based on review comments. Refactor attribute lowering.
- Update MLIRArithmeticDialect CMake reference
- Add fastmath attribute binding to arith canonicalizations
- Fixes for compile failures after rebase
- Modify LLVM fastmath interface to be attribute-based instead of value-based.
- Update LLVM lowering logic to drop fastmath attributes for targets that do not support the interface.
- Remove arith dependency from LLVMCommon. Move attribute conversion to the specific conversion module (in this case ArithToLLVM).
- clang-format fix
- clang formatting fix
- More clang-formatting
Oct 24 2022
Oct 21 2022
I might be wrong, and I was just leaving a passing comment as I saw it
- Fix clang formatting
- Change fastmath print/parse format based on review comments. Refactor attribute lowering.
- Update MLIRArithmeticDialect CMake reference
- Add fastmath attribute binding to arith canonicalizations
- Fixes for compile failures after rebase
- Modify LLVM fastmath interface to be attribute-based instead of value-based.
- Update LLVM lowering logic to drop fastmath attributes for targets that do not support the interface.
- Remove arith dependency from LLVMCommon. Move attribute conversion to the specific conversion module (in this case ArithToLLVM).
- clang-formatting fix
- clang formatting fix
- Fix clang formatting
- Change fastmath print/parse format based on review comments. Refactor attribute lowering.
- Update MLIRArithmeticDialect CMake reference
- Add fastmath attribute binding to arith canonicalizations
- Fixes for compile failures after rebase
- Modify LLVM fastmath interface to be attribute-based instead of value-based.
- Update LLVM lowering logic to drop fastmath attributes for targets that do not support the interface.
- Remove arith dependency from LLVMCommon. Move attribute conversion to the specific conversion module (in this case ArithToLLVM).
Oct 20 2022
It seems weird to add a dependency on the Arith Dialect here.
Oct 19 2022
- Update LLVM lowering logic to drop fastmath attributes for targets that do not support the interface.
Oct 18 2022
- Fix clang formatting
- Change fastmath print/parse format based on review comments. Refactor attribute lowering.
- Update MLIRArithmeticDialect CMake reference
- Add fastmath attribute binding to arith canonicalizations
- Fixes for compile failures after rebase
- Modify LLVM fastmath interface to be attribute-based instead of value-based.
Oct 14 2022
Abandoning for now - creating a separate diff that removes the tblgen option bit for default-valued attributes.
- rebase
Oct 12 2022
I don't think this bit should be on attributes at all (so -1 to 2),
...
+1 to operation format rather than attribute specific.
Oct 10 2022
@rriddle @mehdi_amini Is there any chance we can come to a resolution on this? (I'd like to land the fastmath support - which has a default-valued attribute - and a couple of others have expressed interest in it.)
Oct 6 2022
Haven't looked deeply but this kind of feels weird, why wouldn't we just always elide the default?
Adding @Mogball since this is based heavily on his diff for optional parameters (https://reviews.llvm.org/D133816)
Oct 5 2022
Oct 4 2022
Will you be able to land this in the next two weeks?
Sep 28 2022
Aug 9 2022
Aug 8 2022
Is there any chance someone with commit privileges can land this? It was approved a month ago.
Jul 25 2022
Thank you for working on this
Jul 12 2022
I don't have commit privileges - can someone land this when convenient? Thanks!
- Rebase
Jul 6 2022
I think that this has the potential to improve Python bindings for operations with default-valued attributes. (I believe that at the moment, in most cases the generated Python op creation code requires a value to be provided for an attribute that has a default value.)
Jun 30 2022
Abandoning - these (trivial) changes have been folded in to the diff below, making this diff redundant.
- Modify AttrOrTypeParameter verifier codegen to return LogicalResult
- Use early return as per review
- Add mlir-tblgen-eration of verifyInvariants
- Generate multiple verifyInvariants() functions - one per builder
- Fix some build errors
- Add using declaration for verifyInvariants() and a default variadic template implementation
- Add generation of multiple verify() functions
- Update AttrOrTypeDef to use optional verifyParameters field. Add documentation and an additional unit test.
- Revert FloatAttr::verify() type change. Fix formatting.
- Fix formatting
- Remove unnecessary use of verifyParameters tblgen field
- Fix clang formatting
- Revert unintended function changes
- Update documentation and clean up control flow based on review feedback
Jun 24 2022
Jun 22 2022
- Fix clang formatting
Jun 21 2022
- Modify AttrOrTypeParameter verifier codegen to return LogicalResult
- Use early return as per review
- Add mlir-tblgen-eration of verifyInvariants
- Generate multiple verifyInvariants() functions - one per builder
- Fix some build errors
- Add using declaration for verifyInvariants() and a default variadic template implementation
- Add generation of multiple verify() functions
- Update AttrOrTypeDef to use optional verifyParameters field. Add documentation and an additional unit test.
- Revert FloatAttr::verify() type change. Fix formatting.
- Fix formatting
- Remove unnecessary use of verifyParameters tblgen field
Adding @mehdi_amini to suggest reviewers, since none were automatically triggered.
Subsequent code for python bindings of default-valued attributes has broken the code in this diff - needs to be fixed.
Jun 17 2022
- Modify AttrOrTypeParameter verifier codegen to return LogicalResult
- Use early return as per review
- Add mlir-tblgen-eration of verifyInvariants
- Generate multiple verifyInvariants() functions - one per builder
- Fix some build errors
- Add using declaration for verifyInvariants() and a default variadic template implementation
- Add generation of multiple verify() functions
- Update AttrOrTypeDef to use optional verifyParameters field. Add documentation and an additional unit test.
- Revert FloatAttr::verify() type change. Fix formatting.
- Fix formatting
Jun 14 2022
- Remove redundant assert on attribute cast<>()
Jun 13 2022
Jun 9 2022
Jun 8 2022
- Change fastmath print/parse format based on review comments.
- Refactor attribute lowering.
Jun 7 2022
- rebase
This still needs work - I am just changing the state to "requesting review" to continue the discussion.
Jun 2 2022
The current implementation uses hexadecimal, which requires 16 bits (2 bytes) to encode 8 bits of binary data. base64 would be an improvement over the current implementation that uses hexadecimal, requiring 8 bits to encode 6 bits of binary data. (The other constraint here is that encoding needs to be handled by the parser, which in the original example, means it can't have a quotation mark.) IMO, base64 is:
- smaller than hex
- somewhat ubiquitous
- compatible with the existing parser (I think?)
- a reasonable default for situations where the size overhead is an acceptable tradeoff for having the MLIR file be text-based and self-contained.
May 31 2022
Have you considered using base64 instead of hex for binary data?
- Use early return as per review
- Modify AttrOrTypeParameter verifier codegen to return LogicalResult
May 25 2022
Adding @mehdi_amini since he had some feedback on a previous iteration of this functionality.
OK - I think I understand. Let me take another pass at this. Thanks for the help.
May 24 2022
- Fix clang formatting
May 20 2022
May 19 2022
@stellaraccident - I don't have commit privileges. Can you (or someone else) land this diff at your convenience? Thanks!
- Update _ml_program_ops_ext.py to use FuncOp keyword arg
- Fix clang-format errors
May 12 2022
(rebase)
- Update handling of separators with spaces for nicer printing.
- Fix clang formatting
- rebase
May 6 2022
- Fix clang formatting
- Update handling of separators with spaces for nicer printing.
May 2 2022
Apr 30 2022
Apr 25 2022
- Rebase
- Rebase
- Rebase
Apr 22 2022
- Correct formatting, add comments, use llvm::reverse()
- Make formatting code more readable
- Properly punctuate comments.
- Improve code flow and rebase
Apr 20 2022
- Correct formatting, add comments, use llvm::reverse()
- Update lexer to support vertical bar token, and add test for vertical bar case