[llvm-commits] [llvm] r47484 - in /llvm/trunk: include/llvm/Function.h include/llvm/Instructions.h include/llvm/ParameterAttributes.h include/llvm/Support/CallSite.h include/llvm/Target/TargetLowering.h lib/AsmParser/llvmAsmParser.y lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp lib/VMCore/Function.cpp lib/VMCore/Instructions.cpp

Dale Johannesen dalej at apple.com
Fri Feb 22 10:36:11 PST 2008


On Feb 22, 2008, at 10:23 AM, Chris Lattner wrote:

> On Feb 22, 2008, at 9:49 AM, Dale Johannesen wrote:
>> URL: http://llvm.org/viewvc/llvm-project?rev=47484&view=rev
>> Log:
>> Pass alignment on ByVal parameters, from FE, all
>> the way through.  It is now used for codegen.
>
> Nice.
>
>> +++ llvm/trunk/include/llvm/Function.h Fri Feb 22 11:49:45 2008
>> @@ -166,6 +166,9 @@
>>  /// @brief Determine whether the function has the given attribute.
>>  bool paramHasAttr(uint16_t i, ParameterAttributes attr) const;
>>
>> +  /// @brief Extract the alignment for a call or parameter
>> (0=unknown).
>> +  uint16_t getParamAlignment(uint16_t i) const;
>
> Does this apply just to byval, or to all arguments?  If just byval,
> howabout "getByvalParamAlignment" or something.  likewise for call/
> invoke/callsite/paramattr.  If this applies to any argument, then no
> rename is needed obviously :)

It only appears on ByVal at the moment, but all the infrastructure is
there to support other usage.  I have some preference for leaving the
names generic to make this clearer, but I see no need for other usage,
so I don't feel strongly about it.




More information about the llvm-commits mailing list