[LLVMdev] regarding getelementptr
anton at korobeynikov.info
Fri Dec 4 12:56:54 PST 2009
> I have another query though. When I try to pass a structure into a
> function in my C program, if there are less than four scalars in the
> structure, the clang tool creates llvm code where the structure is
> passed as sequence of scalars. If there are more than (or equal to)
> four scalars, the clang tool creates llvm code that passes the
> structure as it is.
Most probably this is due to ABI requirement.
With best regards, Anton Korobeynikov
Faculty of Mathematics and Mechanics, Saint Petersburg State University
More information about the llvm-dev