[llvm-dev] first class types

Alexandre Isoard via llvm-dev llvm-dev at lists.llvm.org
Thu May 24 17:39:24 PDT 2018


Hello,

I see here: https://llvm.org/docs/LangRef.html#ret-instruction

That the return instruction must only return values of first class types,
which would exclude struct and arrays. But some llvm instrinsics do return
struct, and it does not seems to be enforced on any function.

Is that restriction lifted and the documentation not up to date? Can we
return arrays?
I see the same restriction for select. Can/should we lift it too?

-- 
*Alexandre Isoard*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20180524/695b2f26/attachment.html>


More information about the llvm-dev mailing list