Index: src/IceRegistersARM32.h |
diff --git a/src/IceRegistersARM32.h b/src/IceRegistersARM32.h |
index 5bd047f32c667cd50d8ebd386c2f6bb548b7b9a9..d601e734b19e334ea40a571d756a8a3c3ce3cbdb 100644 |
--- a/src/IceRegistersARM32.h |
+++ b/src/IceRegistersARM32.h |
@@ -104,6 +104,14 @@ public: |
return Reg_I64PAIR_First <= RegNum && RegNum <= Reg_I64PAIR_Last; |
} |
+ static inline bool isEncodedSReg(int32_t RegNum) { |
+ return Reg_SREG_First <= RegNum && RegNum <= Reg_SREG_Last; |
+ } |
+ |
+ static inline SizeT getNumSRegs() { |
+ return Reg_SREG_Last + 1 - Reg_SREG_First; |
+ } |
+ |
static inline SRegister getEncodedSReg(int32_t RegNum) { |
assert(Reg_SREG_First <= RegNum); |
assert(RegNum <= Reg_SREG_Last); |