[LLVMdev] regarding getelementptr
Duncan Sands
baldrick at free.fr
Fri Dec 4 12:37:04 PST 2009
Hi Arvind,
> 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.
>
> Is there a way to force clang to generate code such that the structure
> is always passed as it is?
most likely this is because the platform ABI requires this.
Ciao,
Duncan.
More information about the llvm-dev
mailing list