[llvm-dev] Shader bytecode JIT

Tom Stellard via llvm-dev llvm-dev at lists.llvm.org
Tue May 31 21:25:08 PDT 2016


On Sun, May 22, 2016 at 12:17:24PM -0700, Joe Eagar via llvm-dev wrote:
> Hi all.  I'm writing a remote 2D graphics API for embedded devices.
> It includes a little GLSL 1.0-esque shader language, which is compiled
> to executable SSE code at runtime.
> 

You should take a look at the Mesa Project: http://www.mesa3d.org/
One of its drivers (llvmpipe) is a software rasterizer that uses
LLVM to generate shader code for x86 and other CPUs.

-Tom

> Is LLVM a good fit for this sort of thing?  At the moment I'm
> compiling NASM into my code, but it doesn't do any register allocation
> (which is why I'm considering LLVM).  I don't want to add too much
> bloat to the final compiled binaries, nor do I wish to restructure my
> build system to match LLVM's.
> 
> Thanks,
> Joe
> _______________________________________________
> LLVM Developers mailing list
> llvm-dev at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev


More information about the llvm-dev mailing list