[LLVMdev] LLVM API: how to determine if the register is the status register
Anton Korobeynikov
anton at korobeynikov.info
Fri Dec 3 03:58:00 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...
Why do you need this and what you're trying to do? There is no "status
register"
stuff inside LLVM, so there is no way to query for it. Also, reg
numbers exist only
inside particular target backend, thus you can always just compare
with target-specific reg.
--
With best regards, Anton Korobeynikov
Faculty of Mathematics and Mechanics, Saint Petersburg State University
More information about the llvm-dev
mailing list