[llvm-commits] [llvm] r54744 - in /llvm/trunk/lib: AsmParser/LLLexer.cpp AsmParser/llvmAsmParser.y VMCore/AsmWriter.cpp VMCore/Verifier.cpp

Dale Johannesen dalej at apple.com
Thu Aug 14 09:35:22 PDT 2008


On Aug 14, 2008, at 2:58 AMPDT, Anton Korobeynikov wrote:

> Hello, Dale
>
>> It does that for parameters (already did); the issue is return  
>> values.
>> (And it's not new, it was there, just not fully implemented.  See
>> X86CallingConv.td.)
> Well, that's ok. But I'm just thinking about not to duplicate efforts.
> Why don't allow inreg attribute on return values and handle it in this
> way? It seems to be the most flexible solution.

Both the sseregparm and non-sseregparm conventions return the value in  
a register; but they use different registers.
I suppose we could define 'inreg' to mean one or the other, but that  
seems very arbitrary to me.




More information about the llvm-commits mailing list