LowerArguments vs LowerFORMAL_ARGUMENTS

What is the difference between these two functions? The header file for
TargetLowering class says that LowerArguments must be implemented, but
only the Sparc and IA64 backends implement them. X86, PowerPC and
CellSPU implement LowerFORMAL_ARGUMENTS, but I can find a
setOperationAction that states that they should be lowered. Can someone
please explain this for me?


Micah Villmow

Systems Engineer

Advanced Technology & Performance

Advanced Micro Devices Inc.

S1-609 One AMD Place

Sunnyvale, CA. 94085

P: 408-749-3966

LowerArguments is legacy code. It should be replaced with LowerFORMAL_ARGUMENTS. Unfortunately, not every target has switched over. The default implementation is in SelectionDAGBuild.cpp