[llvm-dev] Shader bytecode JIT

Mehdi Amini via llvm-dev llvm-dev at lists.llvm.org
Tue May 31 23:29:45 PDT 2016


> On May 22, 2016, at 12:17 PM, Joe Eagar via llvm-dev <llvm-dev at lists.llvm.org> 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.
> 
> 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,

It depends what you mean by "bloat", LLVM with only X86 configured is probably 20-25MB.

> nor do I wish to restructure my
> build system to match LLVM's.

Well, somehow you'll have to integrate with LLVM libraries (includes/link).

-- 
Mehdi


More information about the llvm-dev mailing list