Repository navigation
Conversation
Two functions in `stmt.rs` still read extents from the printed type: - `copy_into_new_buffer` split the text after `memref<` at each `x` to find the `?` extents. It now asks the memref type for its extents. - `store_vector_in_a_new_buffer` made `memref<...>` from the text of `vector<...>` and parsed it. It now builds the memref type from the vector's extents and element type. `vector_shape` is a new helper in `generator.rs`. melior has no vector type, so it uses the MLIR C API. Issue: #388 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
3 of 32 tasks
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The next step of #388, after #4613. #4613 said that
stmt.rshad no text tests on MLIR types left after it. Two were still there, and this PR changes them:copy_into_new_buffersplit the text aftermemref<at eachxto find the?extents. It now asks the memref type for its extents.store_vector_in_a_new_buffermadememref<...>from the text ofvector<...>and parsed it. It now builds the memref type from the vector's extents and element type.vector_shapeis a new helper ingenerator.rs. melior has no vector type, so it uses the MLIR C API.Checks
vxcfrom main ea0d9e8 and thevxcfrom this branch emitted MLIR for all 1,823 programs undertests/*/pass/, with each code generator.std_nn_kernels_run_on_the_apple_gpu.vxwithout its--machineflag reportsCannot borrow 'k'or'v'at random.return_a_row_from_a_function.vxanda_let_holds_an_operation_on_two_rows.vxreach the two changed functions with the AST code generator.cargo test --workspace --no-fail-fastin a debug build passed.Issue: #388. #4617 lists the remaining work.
Generated With Claude Code