[LLVMdev] Question on X86 backend

Christoph Erhardt ChristophErhardt at gmx.de
Tue Jun 15 02:19:24 PDT 2010

Hi Micah,

> In X86InstrInfo.td for Call Instructions, it mentions that Uses for
> argument registers are added manually. Can someone point me to the
> location where they are added as the comment doesn't reference a
> where or how?
the register uses are added by the function
X86TargetLowering::LowerCall() during the DAG Lowering phase. This is
the relevant code segment:

// Add argument registers to the end of the list so that they are known live
// into the call.
for (unsigned i = 0, e = RegsToPass.size(); i != e; ++i)


More information about the llvm-dev mailing list