Displaying 1 result from an estimated 1 matches for "fnvarargs".
Did you mean:
nonvarargs
2010 Apr 01
1
[LLVMdev] Ho to generate VAARG?
Hello, LLVMers!
How can I force a front end to generate VAARG for accessing varargs
parameters?
I compile a simple C-code:
#include <stdarg.h>
int FnVarArgs(int a, ...)
{
int i,tmp=0;
va_list ptArgument;
va_start(ptArgument,a);
for(i=0;i<9;i++)
tmp+= va_arg(ptArgument,int);
return tmp;
}
And then have this bytecode:
; ModuleID = 'main.bc'
target datalayout =
"e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:...