A64/translate/impl: Mark DecodeBitMasks and AdvSIMDExpandImm as static

These don't rely on instance state to perform their behavior. They're
just helper functions.
This commit is contained in:
Lioncash 2019-05-24 02:29:20 -04:00
parent 4dc39252fd
commit d079a4812c
No known key found for this signature in database
GPG Key ID: 4E3C3CC1031BA9C7

View File

@ -43,8 +43,8 @@ struct TranslatorVisitor final {
u64 wmask, tmask;
};
std::optional<BitMasks> DecodeBitMasks(bool immN, Imm<6> imms, Imm<6> immr, bool immediate);
u64 AdvSIMDExpandImm(bool op, Imm<4> cmode, Imm<8> imm8);
static std::optional<BitMasks> DecodeBitMasks(bool immN, Imm<6> imms, Imm<6> immr, bool immediate);
static u64 AdvSIMDExpandImm(bool op, Imm<4> cmode, Imm<8> imm8);
IR::UAny I(size_t bitsize, u64 value);
IR::UAny X(size_t bitsize, Reg reg);