>>>> From the current SelectionDAG you can get a pointer to the Function
>>>> object, which should have the attribute.  Lowering for an ISD::RET
>>>> can thus getting it from following this chain,
>>>
>>> I know, I just don't think that's the right way to do it.
>>
>> Why not?
>
> Everywhere else we use ParamAttrs they're on the node where you need
> them.  We could make the actual parameters get them from the callee
> prototype too, but we don't do that, we put the attributes right on
> the actual parameters.

Is that also true for sext/zext attributes on the result?  Inreg seems  
like a very similar issue to them.

-Chris
_______________________________________________
llvm-commits mailing list
llvm-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits

Reply via email to