[LLVMdev] LLVM API: how to determine if the register is the status register

Vadim Markovtsev markhor at ispras.ru
Fri Dec 3 00:56:18 PST 2010


Hello.

I've got the "unsigned int" register number. How one uses LLVM API to 
determine if that register is the status register (e.g., ARM::CPSR) or 
not? I know I can just compare the number with ARM::CPSR, but the code 
becomes not universal. I gave up searching for the solution by myself...

Thanks.



More information about the llvm-dev mailing list