Source
- URL: https://x.com/strager/status/1871740861048140288
- Author: strager (@strager)
- Posted: 2024-12-25 02:12:51
Branch
1/ @strager
@Jonathan_Blow @rflaherty71
Can popcount and SIMD functions be implement using inline assembly? It sounds like they’re built into the compiler right now rather than the standard library.
2/ @Jonathan_Blow
@strager @rflaherty71
They are currently implemented as inline assembly, but I don’t really like this, and especially don’t like the vision of how this looks when supporting many platforms.
3/ @AgileJebrim
@Jonathan_Blow @strager @rflaherty71
Have you considered using SPIR-V as an IR to target instead? It lacks the bloat of LLVM but one can conceivably design something with it to target various other SIMD backends.
4/ @Jonathan_Blow
@AgileJebrim @strager @rflaherty71
That is a pretty weird idea…
5/ @AgileJebrim
@Jonathan_Blow @strager @rflaherty71
You’d be able to run on GPUs too.