Displaying 3 results from an estimated 3 matches for "gomp_foo".
2010 Dec 26
0
[LLVMdev] Generating target dependent function calls
...tTriple should be enough. I did not think about
> this, but that might work. Thanks for the pointer.
You could also just use a small function to define the API function you
wish to use and then use TargetData to get some of the final parts:
i.e. if you know you've got something like
char GOMP_foo(pointer, pointer)
you could declare in a function that would then inquire pointer size
from TargetData like:
FunctionType *geti8LongLong() {
const PointerType *LongTy = Type::getIntNPtrTy(Context, TD.getPointerSizeInBits());
std::vector<const Type*> Params = { LongTy, LongTy };
const...
2010 Dec 26
2
[LLVMdev] Generating target dependent function calls
On 12/22/2010 03:12 PM, Peter Collingbourne wrote:
> On Wed, Dec 22, 2010 at 01:38:06PM -0500, Tobias Grosser wrote:
>> Hi,
>>
>> raghesh and I are working in Polly on automatically generating OpenMP
>> calls. This works nicely on a 64bit architecture,
>> however the functions we need to generate are slightly different on
>> different platforms.
>>
2010 Dec 26
1
[LLVMdev] Generating target dependent function calls
...think about
>> this, but that might work. Thanks for the pointer.
>
> You could also just use a small function to define the API function you
> wish to use and then use TargetData to get some of the final parts:
>
> i.e. if you know you've got something like
>
> char GOMP_foo(pointer, pointer)
>
> you could declare in a function that would then inquire pointer size
> from TargetData like:
>
> FunctionType *geti8LongLong() {
> const PointerType *LongTy = Type::getIntNPtrTy(Context, TD.getPointerSizeInBits());
> std::vector<const Type*> P...