llvm-project
[MLIR][XeGPU] Refactor XeGPU layout propagation: passing lane_layout/lane_data with inst_data
#203156
Merged

[MLIR][XeGPU] Refactor XeGPU layout propagation: passing lane_layout/lane_data with inst_data #203156

Jianhui-Li
Jianhui-Li [mlir][xegpu] Refactor reduction/bitcast/interleave layout setup
77c58e0c
Jianhui-Li remove isChunkedStore/Load handling in the setUpGenericLoad/store rule
ece64f99
Jianhui-Li refactor generic load/store setup rule
5c19d85d
Jianhui-Li add lane layout to dpas, refactor load rules to be more generic. stil…
edd49273
Jianhui-Li add setupStoreNdAnchorLayout and setupPrefetchNdAnchorLayout. shared …
d9178532
Jianhui-Li add setupLoadNdAnchorLayout. validates consumer inst_data/sg_layout a…
e3b6e229
Jianhui-Li complete inst_data-only anchor layouts on scatter ops; preserve lane …
e671f4a1
Jianhui-Li honor consumer lane_layout/lane_data in nd anchor setup. dpas operand…
557b76b6
Jianhui-Li lane-kind nd anchor setup skips block-WHC lookup. lets sub-byte float…
d8a007c9
Jianhui-Li write completed scatter/store-matrix anchor layout back to the op so …
7dba091e
Jianhui-Li test: update CHECK lines in propagate-layout-inst-data.mlir to expect…
8a816db7
Jianhui-Li load_gather setup: take consumer's inst_data as-is and consumer's lan…
9b857eb6
Jianhui-Li createScaleLayout: cap scale lane_layout by inst_data and derive lane…
63f6d96b
Jianhui-Li test: update case 19 (dpas_mx_f4e2m1) check lines. load_nd anchors ca…
78daa3e7
Jianhui-Li test: update case 6 (load_gather_with_coalesce_chunksize) check lines…
5225fe7f
Jianhui-Li test: update case 12 (vector_shape_cast_expand_and_merge) check lines…
d10c559f
Jianhui-Li test: update case 18 (dpas_mx_f8e5m2) check lines. load_nd anchors ca…
3159743d
Jianhui-Li setupGenericNdAnchorLayout: cap default lane_data and lane_layout by …
a2098b60
Jianhui-Li test: fix case 6 (load_gather_with_coalesce_chunksize). source memref…
349bd34b
Jianhui-Li test: fix case 7 (scatter_ops_coalesce_chunksize). source memref to 1…
e8bbbf36
github-actions
github-actions
github-actions
Jianhui-Li remove debug print and polish
7177f328
Jianhui-Li refactor common function to compute default layout, and make computeC…
8bd0d2c5
Jianhui-Li polish setupLoadNdAnchorLayout
1bbcee36
Jianhui-Li fix dpas_mx_f8e5m2 inst_data
5d1bfb97
Jianhui-Li passing tests, adjust uArch for subByte
8fed9248
Jianhui-Li passing all, refactor getNumSg
7d12d0a6
Jianhui-Li refactor computeReductionLaneLayoutAndData, passing all tests
4093160a
Jianhui-Li polish
b07274f9
Jianhui-Li Jianhui-Li marked this pull request as ready for review 38 days ago
Jianhui-Li Jianhui-Li requested a review from charithaintc charithaintc 38 days ago
Jianhui-Li fix multireduction 4d to 3d case
ea2c3a07
Jianhui-Li polish
423a33fc
Jianhui-Li rearrange the code location, put utitlies/helpers togehter
5ed1bbeb
Jianhui-Li add comments and reorder functions
736c9b23
Jianhui-Li polish setup rules
5a069045
Jianhui-Li polish completeScatterIOLaneLayoutFromInstData; add BlockIOInstructio…
dedd802d
Jianhui-Li refactor buildInstDataLayoutWithLane
8e9e69aa
Jianhui-Li add full complete lane layouts for user specified inst_data layout, a…
05a09d2a
Jianhui-Li add missing parameters in convert_layout propagation, some unit test …
57e6ba49
Jianhui-Li fixed bugs in load_nd layout seting and convert_layout handling
a7c192ba
Jianhui-Li git merge main
d27d174e
Jianhui-Li fix format
63325893
Jianhui-Li polish
045976a9
Jianhui-Li fix uArch table
07ce0a98
Jianhui-Li address claude review comments
e5fb64f6
Jianhui-Li removing unused test
9e1fc0b7
charithaintc
charithaintc approved these changes on 2026-06-22
nbpatel
nbpatel approved these changes on 2026-06-22
Jianhui-Li git merge main
70057ad1
Jianhui-Li address feedbacK
58d53851
Jianhui-Li Jianhui-Li merged ebf518b3 into main 30 days ago
mikaelholmen
mikaelholmen commented on 2026-06-24
mikaelholmen
mikaelholmen commented on 2026-06-24
mikaelholmen
mikaelholmen commented on 2026-06-24

Login to write a write a comment.

Login via GitHub

Assignees
No one assigned
Labels
Milestone