Skip to content

Pass constants as scalars, infer as constants.#87

Merged
maleadt merged 2 commits intomainfrom
tb/const
Feb 12, 2026
Merged

Pass constants as scalars, infer as constants.#87
maleadt merged 2 commits intomainfrom
tb/const

Conversation

@maleadt
Copy link
Member

@maleadt maleadt commented Feb 11, 2026

Fixes #78

Interestingly this requires making tfuncs more robust because during initial inference there's now a bunch of UnionAlls (from scalar tile size params being fed into Tuple{} type constructors) that only later get cleaned up by constant propagation.

Depends on maleadt/CompilerCaching.jl#4

@maleadt maleadt marked this pull request as ready for review February 12, 2026 14:41
@maleadt
Copy link
Member Author

maleadt commented Feb 12, 2026

Let's fast-track this since it significantly changes the API.

@maleadt maleadt merged commit d595fcc into main Feb 12, 2026
8 of 32 checks passed
@maleadt maleadt deleted the tb/const branch February 12, 2026 16:53
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.

Automatically de-Constant tuple arguments

1 participant