[LLVMdev] Passing structures by value on Windows

Anton Korobeynikov anton at korobeynikov.info
Thu Jun 3 05:52:27 PDT 2010


> Is this documented somethere?
This is the standard assumption. The calling convention can be complex
enough and operate with the language-dependent definitions (e.g. "C"
structs, etc.), thus frontend should lower such constructs as needed.

For reference, normal x86-64 ABI has pretty complex rules wrt passing
aggregates by value. You might want to look into llvm-gcc as an
example.

-- 
With best regards, Anton Korobeynikov
Faculty of Mathematics and Mechanics, Saint Petersburg State University



More information about the llvm-dev mailing list