search for: matte_sampl

Displaying 1 result from an estimated 1 matches for "matte_sampl".

2011 Mar 08
2
[LLVMdev] Using LLVM to convert a language to another language
...lexer done with Lex/bison, once I have lexed/parsed my "shading language" I must create 3 new "source code" in OpenCL. It mean that by example for the following : shader matte(float Kd, color c) { Ci = diffuse(Kd * c); } I have to create 3 methods in OpenCL, by example 1 - matte_sampling 2 - matte_pdf 3 - matte_f Each of theses method is in OpenCL (It is like C too). So, I would like to use LLVM to create an optimized version of my shader code. But once I have the LLVM byte code... how can I parse it "easily" to create my shader code ? NB: also, you can tell me if i...