[LLVMdev] Bind a LLVM variable to a CPU register
Chuck Zhao
chuck.zhao at samsung.com
Thu Jul 19 11:21:10 PDT 2012
put "register" keyword on that variable.
E.g.,
register int i;
...
Whether it will be register allocated is totally up to the compiler,
with respect to the rest of the program.
Chuck
On 7/19/2012 11:14 AM, Xin Tong wrote:
> I have a constant parameter in a LLVM function. Is there a way to
> reserve a CPU register such that it also holds the value of the
> parameter in LLVM x86 codegen ?
>
> Thanks
>
> Xin
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
>
More information about the llvm-dev
mailing list