[LLVMdev] Do I need to add new intrinsic functions for the OpenGL shading language swizzle?
clattner at apple.com
Mon Nov 17 20:25:59 PST 2008
On Nov 17, 2008, at 6:51 PM, Wei wrote:
> Am I right on this thought? Does it really needs to add LLVM
> intrinsic functions to support OpenGL shading language?
> Or am I missing some really usful mechanism in LLVM to natively
> support this?
No, you don't need to extend LLVM for this. We fully support vector
operations (like shuffles, insertions, extractions) at the IR level.
You should decompose these operations in your parser and then
reassemble them in the code generator.
More information about the llvm-dev