search for: __spir_size_of_sizet

Displaying 5 results from an estimated 5 matches for "__spir_size_of_sizet".

2012 Sep 12
2
[LLVMdev] SPIR Portability Discussion
...ese are valid: int does_this_compile[sizeof(void*) - 3]; [Villmow, Micah] 'ICE'? Integer compile time expression? While not pretty, this can be represented in SPIR with the following sequence on instructions %1 = call %spir.size_t @__spir_sizet_convert_size_t(i32 3) %2 = call %spir.size_t @__spir_size_of_sizet() %3 = call %spir.size_t @__spir_sizet_sub(%spir.size_t %1, %spir.size_t %2) %4 = call %spir.size_t @__spir_sizet_convert_i32(%spir.size_t %3) %5 = alloca i32, i32 %4 struct how_do_you_represent_this_in_IR { int a : 1; int b : sizeof(void*) * 4; }; [Villmow, Micah] Bitfields are illegal in Ope...
2012 Sep 12
0
[LLVMdev] SPIR Portability Discussion
...d*) - 5. > **** > > *[Villmow, Micah] ‘ICE’? Integer compile time expression? While not > pretty, this can be represented in SPIR with the following sequence on > instructions* > > *%1 = call %spir.size_t @__spir_sizet_convert_size_t(i32 3)* > > *%2 = call %spir.size_t @__spir_size_of_sizet()* > > *%3 = call %spir.size_t @__spir_sizet_sub(%spir.size_t %1, %spir.size_t > %2)* > > *%4 = call %spir.size_t @__spir_sizet_convert_i32(%spir.size_t %3)* > > *%5 = alloca i32, i32 %4* > My point here was that if sizeof(void*) is an integer constant expression, then this...
2012 Sep 12
3
[LLVMdev] SPIR Portability Discussion
...le[sizeof(void*) - 3]; Oops, I meant sizeof(void*) - 5. [Villmow, Micah] 'ICE'? Integer compile time expression? While not pretty, this can be represented in SPIR with the following sequence on instructions %1 = call %spir.size_t @__spir_sizet_convert_size_t(i32 3) %2 = call %spir.size_t @__spir_size_of_sizet() %3 = call %spir.size_t @__spir_sizet_sub(%spir.size_t %1, %spir.size_t %2) %4 = call %spir.size_t @__spir_sizet_convert_i32(%spir.size_t %3) %5 = alloca i32, i32 %4 My point here was that if sizeof(void*) is an integer constant expression, then this code has a constraint violation if sizeof(void...
2012 Sep 12
0
[LLVMdev] SPIR Portability Discussion
On Wed, Sep 12, 2012 at 12:27 PM, Ouriel, Boaz <boaz.ouriel at intel.com>wrote: > Hey All, > > This is a very big topic in SPIR and probably a very controversial one as > well. It includes dealing with 32 vs. 64 bit architectures and OpenCL "C" > endianness. > We have written down some of the aspects, but of course did not cover > everything - let's start
2012 Sep 12
5
[LLVMdev] SPIR Portability Discussion
Hey All, This is a very big topic in SPIR and probably a very controversial one as well. It includes dealing with 32 vs. 64 bit architectures and OpenCL "C" endianness. We have written down some of the aspects, but of course did not cover everything - let's start a discussion on the portability and see where it takes us. I suggest we start with the 32 vs. 64 bits discussion and then