[LLVMdev] Function Parameter Requirements?
Devang Patel
dpatel at apple.com
Mon Mar 31 10:27:02 PDT 2008
On Mar 30, 2008, at 3:09 PM, Duncan Sands wrote:
>> The assembler also rejects
>> '{i32,i32}(i32)' with the error 'LLVM Functions cannot return
>> aggregates'. This error seems to contradict the documentation which
>> states 'The return type of a function type is a scalar type or a void
>> type or a struct type'.
>
> The documentation is based on svn head, which is currently getting
> support for functions returning multiple values. This is done by
> having the function return a struct type (the struct type cannot
> contain other structs: first-class types only).
Yup.
I missed the beginning of this thread. Please file PR for the error
'LLVM Functions cannot return aggregates'. As Duncan says, we are
working on this support in svn head.
-
Devang
More information about the llvm-dev
mailing list