search for: intprt_t

Displaying 1 result from an estimated 1 matches for "intprt_t".

Did you mean: in_port_t
2013 Jan 31
0
[LLVMdev] intptr_t support in llvm
...rning: incompatible pointer to integer conversion assigning to 'int' from 'int *'; dereference with * Is it safe to use the above typedefs ? The generated code seems correct for x86 machines (with llvm instruction ptrtoint). Or is there better way to make sure that the semantics of intprt_t are preserved in clang/llvm for all archs ? The code I tried to compile is __kernel void intptr_t_kernel(int *a, int *b) { intptr_t c = (intptr_t)a; b = (int*) c; *a += b; } and the code generated is define ptx_kernel void @intptr_t_kernel(i32* %a, i32* nocapture %b) nounwind noinline { e...