Skip to content

Conversation

wizardengineer
Copy link
Collaborator

Added some commits that was previously added onto the incubator, which were simple support for some SIMD intrinsics.

The main contribution was implementing a generic fallback system for unsupported X86 intrinsics. Instead of manually implementing hundreds of SIMD intrinsics, the system automatically translates unknown ClangIR builtins (like __builtin_ia32_kshiftliqi) into their corresponding LLVM intrinsic calls (like llvm.x86.avx512.kshiftl.b). This eliminates crashes and provides immediate compatibility with SIMD-heavy codebases without requiring individual intrinsic implementations.

@frabert frabert changed the base branch from rebased-20250828 to main September 12, 2025 12:18
Copy link
Collaborator

@frabert frabert left a comment

Choose a reason for hiding this comment

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

Could you add the [CIR] tag to the last commit message?

@wizardengineer wizardengineer force-pushed the julius/clangir-llvm-test branch from 505ad8f to 488444c Compare September 12, 2025 12:49
@wizardengineer
Copy link
Collaborator Author

Could you add the [CIR] tag to the last commit message?

Good catch, I made sure to change it.

@frabert frabert self-requested a review September 12, 2025 12:58
Copy link
Collaborator

@frabert frabert left a comment

Choose a reason for hiding this comment

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

LGTM, I'll wait for Henrik to report back on his progress before merging more stuff that could cause conflicts then I'll merge this

@frabert frabert force-pushed the julius/clangir-llvm-test branch from 488444c to affe5a7 Compare September 15, 2025 08:30
cursor[bot]

This comment was marked as outdated.

@frabert frabert force-pushed the julius/clangir-llvm-test branch from affe5a7 to efcbff4 Compare September 15, 2025 08:36
cursor[bot]

This comment was marked as outdated.

@frabert frabert force-pushed the julius/clangir-llvm-test branch from efcbff4 to 99c3b2d Compare September 15, 2025 08:57
@frabert frabert force-pushed the julius/clangir-llvm-test branch from 99c3b2d to 7eb8fee Compare September 15, 2025 13:38
@frabert frabert merged commit 09af7df into main Sep 16, 2025
15 checks passed
@frabert frabert deleted the julius/clangir-llvm-test branch September 16, 2025 08:18
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.

2 participants