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 committed by MerryMage
parent 23f56bdb67
commit 4f47861669

View file

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