search for: int_vararg

Displaying 4 results from an estimated 4 matches for "int_vararg".

Did you mean: int_varargs
2007 Apr 02
2
[LLVMdev] Declaration of a va_list should be an intrinsic?
Hi everyone, Currently, when declaring a va_list in llvm, one only needs to do: %ap = alloca i8 * (Reference : llvm/docs/LangRef.html#int_varargs) This is OK for x86 and PPC/Darwin ABI because a va_list in these architectures is just a pointer to the stack. The va_start intrinsic just initializes where the pointer points at in the stack. I do not know how the other backends operate, but I suppose it's the same. However, on the PPC/ELF...
2007 Apr 02
0
[LLVMdev] Declaration of a va_list should be an intrinsic?
On 4/2/07, Nicolas Geoffray <nicolas.geoffray at lip6.fr> wrote: > Hi everyone, > > Currently, when declaring a va_list in llvm, one only needs to do: > > %ap = alloca i8 * (Reference : llvm/docs/LangRef.html#int_varargs) This example is x86 specific. alpha allocas an {sbyte*, int} (and does so in llvm-gcc). What the type of the alloca to use is requires the frontend to know the abi of the backend. Even with an intrinsic for allocating a va_list, you have the problem of what type should be returned. > Ther...
2003 May 08
0
[LLVMdev] New support for variable argument functions & intrinsic functions
...t from compiling "any old" C program. Specifically, support has been added for the C <stdarg.h> header. This involved the addition of three new intrinsics and a new LLVM va_arg instruction. These are documented here: http://llvm.cs.uiuc.edu/docs/LangRef.html#int_varargs http://llvm.cs.uiuc.edu/docs/LangRef.html#i_va_arg Support for variable argument functions has been added to LLI, the C backend, and the X86 JIT. The _new_ C front-end also generates these correctly. A testcase has been checked in here: test/Programs/SingleSource/Un...
2007 Apr 03
2
[LLVMdev] Declaration of a va_list should be an intrinsic?
Hi Andrew, Andrew Lenharth wrote: > On 4/2/07, Nicolas Geoffray <nicolas.geoffray at lip6.fr> wrote: > >> Hi everyone, >> >> Currently, when declaring a va_list in llvm, one only needs to do: >> >> %ap = alloca i8 * (Reference : llvm/docs/LangRef.html#int_varargs) >> > > This example is x86 specific. alpha allocas an {sbyte*, int} (and > does so in llvm-gcc). What the type of the alloca to use is requires > the frontend to know the abi of the backend. Even with an intrinsic > for allocating a va_list, you have the problem of wh...