[llvm-dev] New to LLVM. Need help getting available register

David Greene via llvm-dev llvm-dev at lists.llvm.org
Wed Jan 2 09:23:38 PST 2019


m m via llvm-dev <llvm-dev at lists.llvm.org> writes:

> I'm new to LLVM. I'd like to know if there is a method I can call
> whenever I need any available CPU register.

Take a look at RegisterScavenging.  Of course, this only works after
register allocation.  Before register allocation you'd just create a new
virtual register.

                              -David


More information about the llvm-dev mailing list