Skip to content

Remove unsafe from generated helpers and const-generic functions#244

Merged
Shnatsel merged 5 commits into
linebender:mainfrom
Shnatsel:const-generic-kernels
Jun 17, 2026
Merged

Remove unsafe from generated helpers and const-generic functions#244
Shnatsel merged 5 commits into
linebender:mainfrom
Shnatsel:const-generic-kernels

Conversation

@Shnatsel

@Shnatsel Shnatsel commented Jun 16, 2026

Copy link
Copy Markdown
Contributor

Follow-up to #236

Didn't even need to extend kernel! to support const generics in the end.

The only remaining unsafe is now in load/store_interleaved which can be eliminated on x86 and WASM but not NEON. That's addressed separately in #245

Fixes #124

@Shnatsel Shnatsel enabled auto-merge June 16, 2026 22:06

@DJMcNab DJMcNab left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewing with whitespace hidden helps a lot here. I can approve that this only removes unsafes, without changing logic.

@Shnatsel Shnatsel added this pull request to the merge queue Jun 17, 2026
Merged via the queue into linebender:main with commit 742fec8 Jun 17, 2026
22 checks passed
@Shnatsel Shnatsel deleted the const-generic-kernels branch June 17, 2026 01:28
Shnatsel added a commit to Shnatsel/fearless_simd that referenced this pull request Jun 17, 2026
Includes regenerated AVX-512 slide helpers for the same safety cleanup.
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.

Make sure we're not using any unsupported intrinsics in the various x86 levels

2 participants