[llvm-commits] [llvm] r46764 - in /llvm/trunk: include/llvm/CallingConv.h lib/Target/X86/X86CallingConv.td lib/Target/X86/X86ISelLowering.cpp
clattner at apple.com
Wed Feb 6 11:11:07 PST 2008
>>>> 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.
More information about the llvm-commits