Feature vpto backend tinsert new【不合入】#466
Open
erhsh wants to merge 6 commits into
Open
Conversation
added 6 commits
June 1, 2026 17:02
…ec to Mat conversion
1. Reorder ckernel params (constraints before priority) to match base branch, preventing duplicate 'constraints' param on merge. 2. Update tinsert_fp_a3_lowering.pto to expect TINSERT_FP< instead of TINSERT_FP( since the PR adds template params to the emission.
The VPTO emission pipeline failed on Acc->Vec NZ tinsert cases because PTOMaterializeTileHandles wraps VEC memref operands with a new alloc_tile that uses the DEFAULT tile config (no layout/fractal). When ExpandTileOp then invokes the daemon, the daemon-generated template function expects the original config (blayout=col_major, slayout=row_major, fractal=512), causing bridgeOperandToType to insert an UnrealizedConversionCastOp between the two tile_buf types. After inlining, pto.tile_buf_addr saw the cast result instead of the alloc_tile result, triggering the 'expected tile_buf to be defined by the active materialized tile-handle bridge' error. Fix resolveTileHandle to unwrap any chain of single-operand UnrealizedConversionCastOp before matching AllocTileOp / MaterializeTileOp, and add a cleanup pass to erase dead TileBuf-to-TileBuf casts that become unused after folding.
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.
No description provided.