search for: getdefaultaddressspac

Displaying 7 results from an estimated 7 matches for "getdefaultaddressspac".

Did you mean: getdefaultaddressspace
2012 Aug 27
2
[LLVMdev] FW: RFC: Supporting different sized address space arithmetic
...gt; > > > type, but on non-OpenCL systems, this behavior might not be > > > > warranted. > > > > > > > > Okay... that mostly makes sense. (Although it sounds like > > > > long-term, you'd want to eliminate all uses of > > > > getDefaultAddressSpace from target- independent code.) > > > > > > > > >> > * Have the original getPointerTy implementation with > > > > >> > no > > > > >> arguments > > > > >> > query for the default address space. >...
2012 Aug 17
2
[LLVMdev] RFC: Supporting different sized address space arithmetic
...nterTy implementation with no arguments query for the default address space. In SelectionDAG * Add a new API to getIntPtrConstant that takes an address space as the second argument * Modify the implementation of the original getIntPtrConstant function to call the new function with getDefaultAddressSpace(). Modify SelectionDAGBuilder::visitGetElementPtr to get the address space of pointer argument and passing it into the getIntrPtrConstant and getPointerTy calls. As far as I can tell, this should not affect any backends behavior, but will allow the targets with disjoint address spaces to directl...
2012 Aug 24
0
[LLVMdev] FW: RFC: Supporting different sized address space arithmetic
...utations the use the pointer > > > type, but on non-OpenCL systems, this behavior might not be > > > warranted. > > > > > > Okay... that mostly makes sense. (Although it sounds like > > > long-term, you'd want to eliminate all uses of > > > getDefaultAddressSpace from target- independent code.) > > > > > > >> > * Have the original getPointerTy implementation with > > > >> > no > > > >> arguments > > > >> > query for the default address space. > > > >> >...
2012 Aug 27
0
[LLVMdev] FW: RFC: Supporting different sized address space arithmetic
...but on non-OpenCL > > > > > systems, this behavior might not be warranted. > > > > > > > > > > Okay... that mostly makes sense. (Although it sounds like > > > > > long-term, you'd want to eliminate all uses of > > > > > getDefaultAddressSpace from target- independent code.) > > > > > > > > > > >> > * Have the original getPointerTy implementation > > > > > >> > with no > > > > > >> arguments > > > > > >> > query for the de...
2012 Aug 17
2
[LLVMdev] RFC: Supporting different sized address space arithmetic
...change and break anything. Instead of changing all of the code to the new API, I leave the code alone and only change the locations that need the new functionality. > > > * Modify the implementation of the original getIntPtrConstant > > function to call the new function with getDefaultAddressSpace(). > > > > As far as I can tell, this should not affect any backends behavior, > > but will allow the targets with disjoint address spaces to directly > > address them in the most efficient manner. > > > > > > > > So, what do you think? Is this the c...
2012 Aug 24
5
[LLVMdev] FW: RFC: Supporting different sized address space arithmetic
...be the global address space > > for all computations the use the pointer type, but on non-OpenCL > > systems, this behavior might not be warranted. > > > > Okay... that mostly makes sense. (Although it sounds like long-term, > > you'd want to eliminate all uses of getDefaultAddressSpace from > > target- independent code.) > > > > >> > * Have the original getPointerTy implementation with no > > >> arguments > > >> > query for the default address space. > > >> > > > >> > In SelectionDAG >...
2012 Aug 17
0
[LLVMdev] RFC: Supporting different sized address space arithmetic
...nter type somewhere nearby; it's probably easier to just use the existing API which takes a constant and a type than to try to dig the address space out of a memory operation. > ยท Modify the implementation of the original getIntPtrConstant > function to call the new function with getDefaultAddressSpace(). > > As far as I can tell, this should not affect any backends behavior, but will > allow the targets with disjoint address spaces to directly address them in > the most efficient manner. > > > > So, what do you think? Is this the correct approach? Or does it actually &gt...