MCPcopy Create free account
hub / github.com/danoon2/Boxedwine / format_register

Function format_register

lib/asmjit/asmjit/core/formatter.cpp:173–194  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

171}
172
173Error format_register(
174 String& sb,
175 FormatFlags format_flags,
176 const BaseEmitter* emitter,
177 Arch arch,
178 RegType reg_type,
179 uint32_t reg_id) noexcept {
180
181#if !defined(ASMJIT_NO_X86)
182 if (Environment::is_family_x86(arch)) {
183 return x86::FormatterInternal::format_register(sb, format_flags, emitter, arch, reg_type, reg_id);
184 }
185#endif
186
187#if !defined(ASMJIT_NO_AARCH64)
188 if (Environment::is_family_arm(arch)) {
189 return arm::FormatterInternal::format_register(sb, format_flags, emitter, arch, reg_type, reg_id);
190 }
191#endif
192
193 return make_error(Error::kInvalidArch);
194}
195
196Error format_operand(
197 String& sb,

Callers 6

dump_func_valueFunction · 0.85
format_func_valueFunction · 0.85
format_register_listMethod · 0.85
format_operandMethod · 0.85
format_operandMethod · 0.85
format_instructionMethod · 0.85

Calls 1

make_errorFunction · 0.85

Tested by

no test coverage detected