Hello LLVM Developers,
I need help to clear my understanding on register allocation.
For architecture like x86 LLVM does not add registers designated
for parameter passing to reserved registers.
For the function arguments
register allocation happens during ISel phase based on register usage conventions.
Now for each virtual register there is one assigned register class for
when it is created.
So AllocationOrder class can provide as a hint register which could have been
used for parameter passing. But register allocators should be able to use them
when they are free i.e not used for conventional usage.
So how does LLVM register allocators take care of such situations?
Please also suggest the location of the code which is responsible for such logic
Please correct my understanding if I am wrong.