This tidies up some ARM-specific code added by r208417 to move it out of the target-independent parts of clang into TargetInfo.cpp. This also has the advantage that we can now flatten struct arguments to variadic AAPCS functions.
Details
Details
Diff Detail
Diff Detail
Event Timeline
Comment Actions
lgtm
lib/CodeGen/CGCall.cpp | ||
---|---|---|
1655–1657 | It sounds like this comment, particularly the part about them being semantically identical, is no longer true. It sounds like the ARM backend now pattern matches for HFAs and passes them differently. Can you please fix up the comment to reflect the current reality? | |
1659–1660 | Personally, I don't think we should flatten 'Direct' arguments. Chris Lattner added this functionality long ago in 2010. I think such arguments should probably be changed to use 'Expand', but that's a much larger project. | |
lib/CodeGen/TargetInfo.cpp | ||
4714 | Needs wrapping |
It sounds like this comment, particularly the part about them being semantically identical, is no longer true. It sounds like the ARM backend now pattern matches for HFAs and passes them differently. Can you please fix up the comment to reflect the current reality?