[LLVMdev] LLVM as an OpenGL backend

Sam Kellett samkellett at gmail.com
Wed Feb 11 08:58:55 PST 2015


Yeah that's right, like how Emscripten does LLVM --> JavaScript.

How do you mean restictive, ie with memory allocation and the like? What
sort of IR ops would not be representable in something like GLSL?

On 11 February 2015 at 16:54, Owen Anderson <resistor at mac.com> wrote:

>
> On Feb 11, 2015, at 11:37 AM, Tom Stellard <tom at stellard.net> wrote:
>
> On Wed, Feb 11, 2015 at 04:06:10PM +0000, Sam Kellett wrote:
>
> Would it be feasible to compile LLVM IR into shading language assembler? If
> so, is this already being done?
>
>
> The R600 backend does this in conjunction with the Open Source mesa3D
> project: http://www.mesa3d.org/
>
> Mesa has a glsl frontend that is used to emit LLVM IR for newer AMD
> GPUs, which is fed into the R600 backend to produce native GPU code.
>
> Besides hardware accelerated drivers, the Mesa3d project also comes with a
> software based rasterizer, which does the same thing, but instead of the
> R600 backend it uses some of llvm's CPU backends.
>
>
> I think he was asking about the other direction, from LLVM IR —> shading
> languages?
>
> —Owen
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20150211/c4d77819/attachment.html>


More information about the llvm-dev mailing list