[llvm-dev] Why the platform dependent "va_list" variable is lowered by the frontend?

Gaël Jobin via llvm-dev llvm-dev at lists.llvm.org
Wed Jan 27 05:11:17 PST 2016


Hi all,

I was playing with varargs and was wondering why the va_list variable
in C is lowered by the frontend to a *i8 (x86) or a struct (x86_64)? I
mean, if it depends on the architecture, it is more logical to have an
IR intrinsic for va_list and let the backend lowering it to the right
type. 

Regards,
Gaël


More information about the llvm-dev mailing list