[LLVMdev] Pinning registers in LLVM

David Terei davidterei at gmail.com
Tue Jun 30 06:06:50 PDT 2009

2009/6/30 Chris Lattner <clattner at apple.com>:
> Interestingly (to me at least :), there is no guarantee that this value
> be in the physreg at a random point in the function.

Yep, also interesting to me though :).

> If it were important to me to implement this, I'd implement this
> extension by adding a new custom calling convention to the X86 backend
> that always passed the first i32 value in ESI and always returned the
> first i32 value in ESI.

Yeah that was my line of thinking as well. Thanks for the detailed response.

~ David

More information about the llvm-dev mailing list