[WIP] Tile-native pointer_cast and PlanMemory rewiring (memref bridge removal phase)#348
Open
TaoTao-real wants to merge 2 commits intohw-native-sys:mainfrom
Open
Conversation
Contributor
Author
|
本次已推送提交: 变更摘要
测试已在本地通过:
如果 reviewer 同意,这个提交可以作为 Phase-2 PR-1 的核心收敛基线。 |
Contributor
Author
|
/run A3 |
A3 板测失败
日志尾部 |
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.
Summary
This WIP PR advances the memref->tilebuf migration on the clean branch by making the address-binding path tile-native.
What changed
pto.pointer_castresult type switched frommemrefto!pto.tile_buf.PTOViewToMemrefintools/ptoas/ptoas.cpp.memref.alloc -> pointer_casttoalloc_tile -> pointer_cast.lib/PTO/Transforms/TileBufferSemantics.hlib/PTO/Transforms/TileBufferSemantics.cppalloc_tile -> pointer_castpre-loweringpointer_castconversion consumes tilebuf result descriptorssubset/bitcast/treshape -> pointer_cast(currently zero-offset subset only)Why
The current architecture goal is full-chain tilebuf semantics, avoiding memref as the central storage descriptor in PlanMemory and downstream lowering. This PR is the first WIP step that makes pointer binding and memory planning tile-native.
Tests run
ninja -C build ptoastest/basic/tilebuf_semantic_smoke.ptotest/basic/tilebuf_root_trace.ptotest/basic/tilebuf_manual_addr_preserve.ptotest/basic/tilebuf_auto_addr_assign.ptotest/basic/set_validshape_local_lowering.ptotest/samples/runop.sh -t planmemoryKnown limitations (WIP)
Follow-ups