llvm / clangir

A new (MLIR based) high-level IR for clang.
https://clangir.org
Other
307 stars 84 forks source link

AArch64 specific builtins/intrinsics #589

Open bcardosolopes opened 1 month ago

bcardosolopes commented 1 month ago

We currently don't emit ARM64 specific intrinsics/builtins, nor none for other arches as well. See clang/lib/CIR/CodeGen/CIRGenBuiltinAArch64.cpp for the paths full of asserts. The suggested way to tackle these are by incrementally adding support to the missing pieces - there's a huge number of them.

khoipkv commented 4 weeks ago

Hey, is this issue still open?

bcardosolopes commented 4 weeks ago

Yep, and there's enough work for multiple folks!

bcardosolopes commented 4 weeks ago

See commented tests in clang/test/CIR/CodeGen/aarch64-neon-intrinsics.c. This is just a subset, there is even more if you search in clang/test/CodeGen.

khoipkv commented 3 weeks ago

If so, could you please assign this one to me? If anyone wants to join in, we add more.