search for: intrinsic_vector3_to_vector4_assign

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

2008 Nov 18
1
[LLVMdev] Do I need to add new intrinsic functions for the OpenGL shading language swizzle?
...than 4 elements all the time. (Am I right about this thought?) Hence, I think I would need to add some new 'intrinsic' function in LLVM, and use llvm::vector to represent GLSL::vector. Ex: vec4 a; vec3 b a.xyz = b; will be translate to llvm::vector<4> a; llvm::vector<3> b; intrinsic_vector3_to_vector4_assign(a, 0, 1, 2, b); Then in the backend, I can see this intrinsic function, and do instruction selections based on this intrinsic. Ex: intrinsic_vector3_to_vector4_assign will be translated to single machine instruction: mov a.xyz, b.xyz. Am I right on this thought? Does it really needs to add LLVM i...