[LLVMdev] Pinning registers in LLVM

David Terei
2009-06-30T13:06:50Z

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