search for: vec3

Displaying 20 results from an estimated 30 matches for "vec3".

Did you mean: vec
2009 Aug 26
0
[LLVMdev] [Stackless] [C++-sig] [Boost] Trouble optimizing Boost.Python integration for game development (it seems too slow)
...ing to compare different Python-C wrapping techniques to see >> > which >> > would be faster and also more suited to game development. >> > I'm using Stackless Python 2.6.2 at 74550 / GCC 4.3.3, and boost 1.39.0 on >> > Ubuntu 9.04. I implemented a simple Vec3 (3D vector) class in C++ and >> > wrapped it with boost::python. All it does is multiplications and >> > additions, >> > so it implements just two operators for python. >> > The thing is, it proves to be kind of slow compared to an equivalent >> > Cython...
2011 Aug 12
1
[LLVMdev] Using sret AND thiscall calling convention
Hi all, I am trying to generate LLVM IR that calls an external C++ function returning a structure by copy: vec3 vec3::Cross(const vec3& iV) const; Here is the LLVM IR that I am generating for win32 ABI, which says that the first parameter should be a pointer to the return value: %vec3 = type <{ float, float, float }> define void @CPP_Return_Struct(%vec3* %v1, %vec3* %v2) inlinehint alignstack(16...
2011 Aug 12
1
[LLVMdev] Using sret AND thiscall calling convention
On Fri, Aug 12, 2011 at 1:11 AM, Damien Gleizes <gleizesd at gmail.com> wrote: > > Hi all, > > I am trying to generate LLVM IR that calls an external C++ function > returning a structure by copy: > vec3 vec3::Cross(const vec3& iV) const; > > Here is the LLVM IR that I am generating for win32 ABI, which says that the > first parameter should be a pointer to the return value: > > %vec3 = type <{ float, float, float }> > > define void @CPP_Return_Struct(%vec3* %v1, %vec...
2015 May 04
2
[LLVMdev] Incorrect code generated for arm64
Hi all, I’ve narrowed down a problem in my code to the following test case: - - - - typedef struct {float v[2];} vec2; typedef struct {float v[3];} vec3; vec2 getVec2(); vec3 getVec3() { vec2 myVec = getVec2(); vec3 res; res.v[0] = myVec.v[0]; res.v[1] = myVec.v[1]; res.v[2] = 1; return res; } - - - - Compiling this with any level of optimization for arm64 gives incorrect code, unless my test case above is triggering some undefined...
2012 Feb 29
2
[LLVMdev] Expand vector type
Hello, My input language has support for 3 and 4 element vectors but my target only has support for the latter. The language defines vec3 with the same storage space as vec4 so from a backend perspective they are both the same. I'd really like if I could have LLVM treat vec3 as vec4 but I haven't found out how. Currently the target has emulated support for vec3 through LLVM. Loads are already widened by LLVM to a vec4. Store...
2013 Jun 18
1
transform 3 numeric vectors empty of 0/1
Dear all, Without a loop, I would like transform 3 numeric vectors empty of 0/1 of same length Vec1 : transform 1 to A and 0 to "" Vec2 : transform 1 to B and 0 to "" Vec3 : transform 1 to C and 0 to "" to obtain only 1 vector Vec who is the paste of the 3 vectors (Ex : ABC, BC, AC, AB,...) Any idea ? Thank you for your help -- Michel ARNAUD
2012 Apr 05
0
[LLVMdev] Difference between 2.9 and 3.0 in intel ASM printer
...w = type { %visobj, %vec2, %vec2, %vec2, %string, %color, i32, i32, %string, %string, %string, i1, i1, i1, i1, i1, i1, i32, i8* } %visobj = type { %object, i1, i1, i1, i1, %color, %vec4, %vec4, %vec4, %vec4, i32, %mat4, %mat4, %mat4, %mat4, %material*, %effect*, i32, i32, i32, float, i8, %visobj*, %vec3, %vec3, %vec3, %vec3, %vec3, %vec3, %quat, float, float, float, float, float, float, %map, i8* } %object = type { i8, i8, i8, i8, i8, i8, i8, i8, %string, %string, i8* } %string = type { i8* } %color = type { i8, i8, i8, i8 } %vec4 = type { float, float, float, float } %mat4 = type { float, float,...
2012 Feb 29
2
[LLVMdev] Expand vector type
...g on ARM NEON support. Can you please confirm? Thanks, Javier From: James Molloy [mailto:james.molloy at arm.com] Sent: Wednesday, February 29, 2012 2:35 AM To: Martinez, Javier E; llvmdev at cs.uiuc.edu Subject: RE: Expand vector type Hi, * Is there a way to setup LLVM to automatically convert vec3s to vec4s? Yes, if you specify v3i16 and friends as "promote" instead of "legal", llvm will promote it to a v4i16. The ARM NEON backend does this already. I'm surprised you haven't got this happening already as you mention that LLVM widens your loads to 4-element vector...
2012 Feb 29
0
[LLVMdev] Expand vector type
Hi, * Is there a way to setup LLVM to automatically convert vec3s to vec4s? Yes, if you specify v3i16 and friends as "promote" instead of "legal", llvm will promote it to a v4i16. The ARM NEON backend does this already. I'm surprised you haven't got this happening already as you mention that LLVM widens your loads to 4-element vec...
2015 May 04
2
[LLVMdev] Incorrect code generated for arm64
...Vector types - generally in headers so they can be inlined an optimized well - but I’d definitely like to understand the root cause of this one so I can be on the lookout for any other similar failures. Simon > > typedef struct {float v0, v1;} vec2; > typedef struct {float v0, v1, v2;} vec3; > > vec2 getVec2(); > > vec3 getVec3() > { > vec2 myVec = getVec2(); > > vec3 res; > res.v0 = myVec.v0; > res.v1 = myVec.v1; > res.v2 = 1; > return res; > } > > .section __TEXT,__text,regular,pure_instructions > .globl _getVec3 >...
2012 Mar 05
0
[LLVMdev] Expand vector type
...mailto:james.molloy at arm.com]<mailto:[mailto:james.molloy at arm.com]> Sent: Wednesday, February 29, 2012 2:35 AM To: Martinez, Javier E; llvmdev at cs.uiuc.edu<mailto:llvmdev at cs.uiuc.edu> Subject: RE: Expand vector type Hi, * Is there a way to setup LLVM to automatically convert vec3s to vec4s? Yes, if you specify v3i16 and friends as "promote" instead of "legal", llvm will promote it to a v4i16. The ARM NEON backend does this already. I'm surprised you haven't got this happening already as you mention that LLVM widens your loads to 4-element vector...
2012 Mar 05
1
[LLVMdev] Expand vector type
...:[mailto:james.molloy at arm.com]> > *Sent:* Wednesday, February 29, 2012 2:35 AM > *To:* Martinez, Javier E; llvmdev at cs.uiuc.edu <mailto:llvmdev at cs.uiuc.edu> > *Subject:* RE: Expand vector type > > Hi, > > * *Is there a way to setup LLVM to automatically convert vec3s to vec4s? * > > ** > > Yes, if you specify v3i16 and friends as “promote” instead of “legal”, llvm will > promote it to a v4i16. The ARM NEON backend does this already. I’m surprised you > haven’t got this happening already as you mention that LLVM widens your loads to > 4-ele...
2000 Jun 17
2
R 1.1.0 for Windows
Windows binaries at CRAN (bin/windows/Windows-NT/base) have been updated to R-1.1.0. See below for a list of Windows-specific changes. We thanks all the people who checked over pre-test versions. guido masarotto (for the R-core team) Windows-specific changes to R ============================= There is now a GUI preferences editor on the Edit menu in Rgui. A data entry
2000 Jun 17
2
R 1.1.0 for Windows
Windows binaries at CRAN (bin/windows/Windows-NT/base) have been updated to R-1.1.0. See below for a list of Windows-specific changes. We thanks all the people who checked over pre-test versions. guido masarotto (for the R-core team) Windows-specific changes to R ============================= There is now a GUI preferences editor on the Edit menu in Rgui. A data entry
2019 Feb 01
2
[RFC] Vector Predication
...each predicate bit masks out a whole short vector. We're using this extension to vectorize graphics code where where variables in the pre-vectorization code are short vectors. > So, vectorizing code like: > for(int i = 0; i < 1000; i++) > { > vec4 color = colors[i]; > vec3 normal = normals[i]; > color.rgb *= fmax(0.0, dot(normal, light_dir)); > colors[i] = color; > } > > I'm planning on passing already vectorized code into LLVM and using LLVM as a backend for optimization and JIT code generation. > > Do you think the EVL proposal woul...
1999 Dec 16
2
R question
I have the following question, which is elementary but I am unable to answer. In a for(i=10) loop, I am trying to represent the 10 1-dimensional vectors l1, l2,... l10 by some expression that will run through these values. ie. soppose I want to add l1 + ... + l10 I could go x <- 0 for(i in 1:10){ x <- x+ l(i)} This should return x to be the sum of the 10 li's for i from 1 to 10
2019 Feb 01
3
[RFC] Vector Predication
...e using > this extension to vectorize graphics code where where variables in the > pre-vectorization code are short vectors. > > > So, vectorizing code like: > > > for(int i = 0; i < 1000; i++) > > > { > > > vec4 color = colors[i]; > > > vec3 normal = normals[i]; > > > color.rgb *= fmax(0.0, dot(normal, light_dir)); > > > colors[i] = color; > > > } > > > > > > I'm planning on passing already vectorized code into LLVM and using > LLVM as a backend for optimization and JIT code g...
2008 Nov 18
1
[LLVMdev] Do I need to add new intrinsic functions for the OpenGL shading language swizzle?
OpenGL shading language (GLSL) is like a C subset language, but it contains some special features, ex: native vector type & swizzle. In GLSL, you can declare vector types: void main() { vec4 a; vec3 b; vec2 c; } You can access the element of vector by using .xyzw, it means the 1st, 2nd, 3rd, 4th element of the vector are x, y, z, w. Ex: void main() { float f; vec4 a = vec4(1.0, 2.0, 3.0, 4.0); vec4 b = vec4(3.0, 4.0, 5.0, 6.0); v4.xyw = vec2(2.5, 3.3. 7.7); f = v4.y; b.xy +=...
2015 May 04
2
[LLVMdev] Incorrect code generated for arm64
On 4 May 2015 at 10:37, Simon Taylor <simontaylor1 at ntlworld.com> wrote: > I’ve gone ahead and created a bug for this, as it seems to be a genuine > issue rather than me just overlooking something obvious. > https://llvm.org/bugs/show_bug.cgi?id=23408 Thanks for taking the trouble to report this Simon. I think I've found and fixed the issue now (r236457). It
2013 Sep 05
2
binary symmetric matrix combination
...names1),dimnames=list(names1,names1)) vec1<- paste0(colnames(m1)[col(m1)],rownames(m1)[row(m1)]) vecOut<- paste0(colnames(Out2)[col(Out2)],rownames(Out2)[row(Out2)]) Out2[match(vec1,vecOut)]<- m1 vec2<- paste0(colnames(m2)[col(m2)],rownames(m2)[row(m2)]) Out2[match(vec2,vecOut)]<- m2 vec3<- paste0(colnames(m3)[col(m3)],rownames(m3)[row(m3)]) Out2[match(vec3,vecOut)]<- m3 vec4<- paste0(colnames(m4)[col(m4)],rownames(m4)[row(m4)]) Out2[match(vec4,vecOut)]<- m4 ?all.equal(Out1,Out2) #[1] TRUE ?Out2 ??? y1 g24 c1 c2 l17 h4 s2 s30 e5 l15 y1?? 0?? 1? 1? 1?? 1? 1? 1?? 1? 1?? 1...