[llvm-commits] sret-demotion for large struct returns working on x86!

Duncan Sands baldrick at free.fr
Sun Nov 8 23:35:58 PST 2009


Hi Kenneth,

> If a struct can't be returned in registers, have SelectionDAGBuild
> insert a hidden sret parameter
...

in general changing a struct returning function to use sret instead alters
the calling convention, so could break ABI conformance.  Presumably that's
ok here because the ABI doesn't specify how to return structs that require
so many registers anyway?

Ciao,

Duncan.



More information about the llvm-commits mailing list