Skip to content

fix(ir): preserve layouts and symbolic slice dimensions - #102

Merged
zhen8838 merged 6 commits into
tile-ai:mainfrom
zhen8838:fix/reshape-layout-and-symbolic-slice
Aug 15, 2026
Merged

fix(ir): preserve layouts and symbolic slice dimensions#102
zhen8838 merged 6 commits into
tile-ai:mainfrom
zhen8838:fix/reshape-layout-and-symbolic-slice

Conversation

@zhen8838

Copy link
Copy Markdown
Collaborator

Why

  • Reshape dropped expressible broadcast sharding, while symbolic slice endpoints depended on authoring form and broke packed-cache call boundaries.

What

  • Preserve bare fully-Broadcast ShardLayout through reshape.
  • Centralize dimension normalization in isl and accept bare symbolic slice endpoints.

Contract

  • hir.md: Reshape carries expressible fully-Broadcast layouts; Slice sizes use normalized symbolic dimensions.
  • types.md §4: IR type/attribute dimensions share one normal form, and dim-arithmetic Calls remain composable.
  • parser.md: compile-time dimensions, including an axis extent, are valid slice endpoints.

Risk

  • ComposedLayout(outer=ShardLayout) remains outside the reshape rule. Symbolic divisors and min/max may stay unnormalized. Printed dimensions use canonical forms rather than authored helpers. CPU-side cost is +1–2%.

@zhen8838
zhen8838 force-pushed the fix/reshape-layout-and-symbolic-slice branch from 4f9fa7d to e3dec72 Compare August 15, 2026 02:04
@zhen8838
zhen8838 merged commit 8d9d6f5 into tile-ai:main Aug 15, 2026
1 check passed
@zhen8838
zhen8838 deleted the fix/reshape-layout-and-symbolic-slice branch August 15, 2026 02:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant