Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
99 commits
Select commit Hold shift + click to select a range
ed4a7a6
Add dual memory planner support
FangRui0 Jul 9, 2026
4dc47e1
Implement modern memplan five-gate reuse checks
FangRui0 Jul 13, 2026
923410c
Fix cross-root local overlap sync analysis build
FangRui0 Jul 13, 2026
1b0b55b
Fix tile-native memplan CI regressions
FangRui0 Jul 14, 2026
a28b99d
Avoid treating DPS outputs as ignored A5 tmp
FangRui0 Jul 14, 2026
58cb8b7
Fix tile subview materialization for strided windows
FangRui0 Jul 14, 2026
bf95f5e
Treat tile bitcast as memory-planning alias
FangRui0 Jul 14, 2026
5a369d9
Lower PTO castptr in EmitC backend
FangRui0 Jul 14, 2026
6b191b8
Fix EmitC castptr ptr/int lowering
FangRui0 Jul 16, 2026
391e35f
Fix flaky plan memory lit checks
FangRui0 Jul 16, 2026
5aa7584
Keep multi-tile buffers native through memory planning
FangRui0 Jul 17, 2026
0296f28
Keep declared tile handles native
FangRui0 Jul 17, 2026
9ef5be5
Keep tile reshape views native
FangRui0 Jul 17, 2026
e2c17fa
Keep tile bitcast views native
FangRui0 Jul 17, 2026
6001e88
Keep tile valid-shape metadata native
FangRui0 Jul 17, 2026
3bfcb3c
Keep tile subviews native through sync
FangRui0 Jul 17, 2026
346c314
Keep tile address extraction native
FangRui0 Jul 17, 2026
21afc62
Keep GM tensor views native through sync
FangRui0 Jul 18, 2026
ab79921
Keep simple unary ops tile-native
FangRui0 Jul 18, 2026
c3a1b75
Keep transcendental unary ops tile-native
FangRui0 Jul 18, 2026
b099b14
Keep TLRelu tile-native
FangRui0 Jul 18, 2026
ccc2bae
Keep TMax and TMin tile-native
FangRui0 Jul 18, 2026
e946687
Keep TMaxS and TMinS tile-native
FangRui0 Jul 18, 2026
66835d3
Keep TAdd and TMul tile-native
FangRui0 Jul 18, 2026
29880a2
Keep TAddS and TMulS tile-native
FangRui0 Jul 18, 2026
f52e08e
Make VPTO cache control checks order independent
FangRui0 Jul 18, 2026
f5b8913
Keep TAnd and TOr tile-native
FangRui0 Jul 18, 2026
c661fe1
Keep TAndS and TOrS tile-native
FangRui0 Jul 18, 2026
e3617f5
Keep TCmp and TCmpS tile-native
FangRui0 Jul 18, 2026
1d603b5
Keep TDiv and TDivS tile-native
FangRui0 Jul 18, 2026
d322eaf
Keep TConcat ops tile-native
FangRui0 Jul 18, 2026
426b049
Keep TPart arithmetic ops tile-native
FangRui0 Jul 18, 2026
6c61f40
Keep TColExpand ops tile-native
FangRui0 Jul 18, 2026
bc49e30
Keep TExpands tile-native
FangRui0 Jul 18, 2026
fc29922
Keep tile scalar access ops tile-native
FangRui0 Jul 18, 2026
a83f2d9
Keep TExtract and TInsert tile-native
FangRui0 Jul 18, 2026
ac84109
Keep TExtractFP and TInsertFP tile-native
FangRui0 Jul 18, 2026
e1aedb6
Keep carry add ops tile-native
FangRui0 Jul 18, 2026
2d9fe70
Keep TMovFP tile-native
FangRui0 Jul 18, 2026
cb69fea
Keep TFillPad ops tile-native
FangRui0 Jul 18, 2026
73a47a6
Keep TLoad and TStore local tiles native
FangRui0 Jul 18, 2026
054f6d6
Keep TColMax and TColMin tile-native
FangRui0 Jul 18, 2026
138bdad
Keep TColSum tile-native
FangRui0 Jul 18, 2026
e7b680a
Keep TCvt tile-native
FangRui0 Jul 18, 2026
6bb30e2
Keep gather ops tile-native
FangRui0 Jul 18, 2026
bceefa2
Keep TCI tile-native
FangRui0 Jul 18, 2026
be368d8
Keep TPrint tile-native
FangRui0 Jul 18, 2026
e39cbfd
Keep TQuant tile-native
FangRui0 Jul 18, 2026
49e9102
Keep TTrans tile-native
FangRui0 Jul 18, 2026
cef3023
Keep TMrgSort tile-native
FangRui0 Jul 18, 2026
3125a37
Keep TAssign tile-native
FangRui0 Jul 18, 2026
7f800e3
Keep MGather and MScatter tile-native
FangRui0 Jul 18, 2026
50b44cf
Keep subtraction ops tile-native
FangRui0 Jul 18, 2026
72058f8
Keep basic floating-point ops tile-native
FangRui0 Jul 18, 2026
868bfac
Keep shift ops tile-native
FangRui0 Jul 18, 2026
dd00444
Keep TPartMax and TPartMin tile-native
FangRui0 Jul 18, 2026
84b1101
Keep remaining TColExpand ops tile-native
FangRui0 Jul 19, 2026
e71e702
Keep TRowExpand ops tile-native
FangRui0 Jul 19, 2026
350b09c
Keep reduction ops tile-native
FangRui0 Jul 19, 2026
88848af
Keep arg-reduction ops tile-native
FangRui0 Jul 19, 2026
d88f6fd
Keep pow and rsqrt ops tile-native
FangRui0 Jul 19, 2026
420984b
Keep scratch elementwise ops tile-native
FangRui0 Jul 19, 2026
d1bf508
Keep select ops tile-native
FangRui0 Jul 19, 2026
fbda3a3
Keep XOR ops tile-native
FangRui0 Jul 19, 2026
5de6269
Keep TSort32 tile-native
FangRui0 Jul 19, 2026
94323fc
Keep TQuantMx tile-native
FangRui0 Jul 19, 2026
e19d16e
Keep TAxpy and TDequant tile-native
FangRui0 Jul 19, 2026
db1c996
Keep tile movement metadata ops native
FangRui0 Jul 19, 2026
4153c81
Keep TMov tile-native
FangRui0 Jul 19, 2026
7a5de89
Keep TStoreFP tile-native
FangRui0 Jul 19, 2026
0ccd2bd
Keep vector specialty ops tile-native
FangRui0 Jul 19, 2026
6ab9afa
Keep matmul ops tile-native
FangRui0 Jul 19, 2026
148585c
Fix matmul tile-native type checks
FangRui0 Jul 20, 2026
9b35f13
Keep gemv ops tile-native
FangRui0 Jul 20, 2026
e51974c
Keep TPrefetch tile-native
FangRui0 Jul 20, 2026
58471ec
Keep pipe queue ops tile-native
FangRui0 Jul 20, 2026
57c90af
Keep TSync tile-native
FangRui0 Jul 20, 2026
6a3bcd3
Support tensor views directly in backends
FangRui0 Jul 20, 2026
9acbe21
Keep PTO address ops native through view lowering
FangRui0 Jul 20, 2026
6202f51
Keep SCF tile values native across control flow
FangRui0 Jul 20, 2026
6389799
Keep fusion region tile values native
FangRui0 Jul 20, 2026
5b771f7
Keep function and call tile ABI native
FangRui0 Jul 20, 2026
f7ad903
Keep async session scratch tile-native
FangRui0 Jul 20, 2026
394ffbf
Remove retired memref tile bridge ops
FangRui0 Jul 20, 2026
454ac30
Remove retired bind tile bridge
FangRui0 Jul 20, 2026
296e3b9
Remove legacy PTO view-to-memref lowering
FangRui0 Jul 20, 2026
3d2738e
Remove remaining local memref tile compatibility paths
FangRui0 Jul 21, 2026
06d6f99
Remove memref compatibility from GM interfaces
FangRui0 Jul 21, 2026
2fb806f
Remove pto.pointer_cast op
FangRui0 Jul 21, 2026
00a2637
Remove memref compatibility from sync analysis
FangRui0 Jul 21, 2026
d734cf1
Remove memref entry points from PTO address views
FangRui0 Jul 21, 2026
ee1cc7e
Fix PR913 CI regressions
FangRui0 Jul 22, 2026
47dbca3
Fix sync samples for tile-native pointer ABI
FangRui0 Jul 22, 2026
cab4ecc
Fix CI planmemory samples and TileLib daemon startup
FangRui0 Jul 22, 2026
a491531
Fix rebase fallout after tile bridge removal
FangRui0 Jul 22, 2026
26bb1bb
Fix tile-native InsertSync argument hazards
FangRui0 Jul 22, 2026
bf0c60a
Fix modern memplan branch select reuse
FangRui0 Jul 22, 2026
7921299
Fix CI test expectations
FangRui0 Jul 22, 2026
57858c4
Fix modern memplan nested control flow
FangRui0 Jul 22, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
107 changes: 52 additions & 55 deletions docs/PTO_IR_manual.md

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions docs/designs/ptoas-auto-sync-design.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@
| 字段 | 类型 | 作用 |
| --- | --- | --- |
| `baseBuffer` | `Value` | 当前 op 直接看到的 SSA buffer(可能是 view/cast 链顶端) |
| `rootBuffer` | `Value` | 静态可知的最根缓冲区(`alloc_tile` / kernel arg / `memref.alloc`) |
| `rootBuffer` | `Value` | 静态可知的最根缓冲区(`alloc_tile` / `alloc_multi_tile` / kernel ptr arg) |
| `scope` | `pto::AddressSpace` | 地址空间(GM/MAT/VEC/ACC/LEFT/RIGHT 等) |
| `baseAddresses` | `SmallVector<uint64_t>` | 已知的偏移列表,配合 `allocateSize` 做精确区间重叠 |
| `allocateSize` | `uint64_t` | 字节大小 |
Expand Down Expand Up @@ -199,8 +199,8 @@ MLIR op,最终生成 `pto::SetFlagOp` / `pto::WaitFlagOp` / `pto::BarrierOp`
- 主要逻辑:
1. `UpdateKernelArgMemInfo()`:把 kernel 参数登记为 GM root buffer。
2. `RecursionIR(&func.getBody())`:前序遍历 region:
- `pto::AllocTileOp` / `DeclareTileMemRefOp` / `PointerCastOp` /
`memref::AllocOp` 经 `Update*MemInfo` 写入 `buffer2MemInfoMap_`。
- `pto::AllocTileOp` / `pto::AllocMultiTileOp` / `pto::DeclareTileOp`
经 `Update*MemInfo` 写入 `buffer2MemInfoMap_`。
- View / Subview / Cast / Mov 调 `UpdateAliasBufferInfo(result, source)`,
把派生 buffer 的 `BaseMemInfo` 链回到原 root。
- `scf::ForOp` / `WhileOp` / `IfOp` / `YieldOp` 经 `UpdateForOpInfo` /
Expand Down
Loading
Loading