Browse Source
delete the formatter again
Signed-off-by: crueter <crueter@eden-emu.dev>
pull/2755/head
crueter
5 months ago
No known key found for this signature in database
GPG Key ID: 425ACD2D4830EBC6
4 changed files with
3 additions and
13 deletions
-
src/dynarmic/src/dynarmic/backend/x64/a32_emit_x64.cpp
-
src/dynarmic/src/dynarmic/backend/x64/a64_emit_x64.cpp
-
src/dynarmic/src/dynarmic/backend/x64/emit_x64.cpp
-
src/dynarmic/src/dynarmic/ir/opcodes.h
|
|
|
@ -145,7 +145,7 @@ A32EmitX64::BlockDescriptor A32EmitX64::Emit(IR::Block& block) { |
|
|
|
#undef OPCODE
|
|
|
|
#undef A32OPC
|
|
|
|
#undef A64OPC
|
|
|
|
default: [[unlikely]] ASSERT_FALSE("Invalid opcode: {}", inst->GetOpcode()); |
|
|
|
default: [[unlikely]] ASSERT_FALSE("Invalid opcode: {}", std::size_t(inst->GetOpcode())); |
|
|
|
} |
|
|
|
reg_alloc.EndOfAllocScope(); |
|
|
|
func(reg_alloc); |
|
|
|
|
|
|
|
@ -130,7 +130,7 @@ A64EmitX64::BlockDescriptor A64EmitX64::Emit(IR::Block& block) noexcept { |
|
|
|
#undef A32OPC
|
|
|
|
#undef A64OPC
|
|
|
|
default: [[unlikely]] { |
|
|
|
ASSERT_MSG(false, "Invalid opcode: {}", opcode); |
|
|
|
ASSERT_MSG(false, "Invalid opcode: {}", std::size_t(opcode)); |
|
|
|
goto finish_this_inst; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
@ -59,7 +59,7 @@ std::optional<EmitX64::BlockDescriptor> EmitX64::GetBasicBlock(IR::LocationDescr |
|
|
|
} |
|
|
|
|
|
|
|
void EmitX64::EmitInvalid(EmitContext&, IR::Inst* inst) { |
|
|
|
ASSERT_MSG(false, "Invalid opcode: {}", inst->GetOpcode()); |
|
|
|
ASSERT_MSG(false, "Invalid opcode: {:x}", std::size_t(inst->GetOpcode())); |
|
|
|
} |
|
|
|
|
|
|
|
void EmitX64::EmitVoid(EmitContext&, IR::Inst*) { |
|
|
|
|
|
|
|
@ -654,13 +654,3 @@ constexpr bool MayGetNZCVFromOp(const Opcode op) noexcept { |
|
|
|
} |
|
|
|
|
|
|
|
} // namespace Dynarmic::IR |
|
|
|
|
|
|
|
template<> |
|
|
|
struct fmt::formatter<Dynarmic::IR::Opcode> : fmt::formatter<std::string_view> |
|
|
|
{ |
|
|
|
template<typename FormatContext> |
|
|
|
auto format(Dynarmic::IR::Opcode op, FormatContext& ctx) const |
|
|
|
{ |
|
|
|
return formatter<std::string_view>::format(Dynarmic::IR::GetNameOf(op), ctx); |
|
|
|
} |
|
|
|
}; |