Displaying 3 results from an estimated 3 matches for "getintnptrty".
Did you mean:
getint8ptrty
2010 Dec 26
0
[LLVMdev] Generating target dependent function calls
...e 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 Type *ResultTy = Type::getInt8Ty(Context);
return FunctionType::get(ResultTy, ArgTys, 0);
}
and then just use the return from geti8LongLong() as the function type when you declare the funct...
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
...nal 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 Type *ResultTy = Type::getInt8Ty(Context);
> return FunctionType::get(ResultTy, ArgTys, 0);
> }
>
> and then just use the return from geti8LongLong() as the functio...