[ABI] Refactored AsmJit to use strong-typed enums, this breaks both API and ABI

[ABI] Added ABI version as an inline namespace, which forms asmjit::_abi_MAJOR_MINOR
[ABI] Added support for AVX512_FP16, 16-bit broadcast, and AVX512_FP16 tests
[ABI] Added initial support for consecutive registers into instruction database and register allocator
[ABI] Added a possibility to use temporary memory in CodeHolder's zone
[ABI] Compiler::setArg() is now deprecated, use FuncNode::setArg()
[Bug] Fixed correct RW information of instructions that only support implicit zeroing with {k}
[Bug] Fixed broadcast to be able to broadcast bcst16 operands
This commit is contained in:
kobalicek
2021-12-13 09:11:58 +01:00
parent 4ec760a3d1
commit 996deae327
154 changed files with 29537 additions and 21190 deletions

38
test/asmjitutils.h Normal file
View File

@@ -0,0 +1,38 @@
// This file is part of AsmJit project <https://asmjit.com>
//
// See asmjit.h or LICENSE.md for license and copyright information
// SPDX-License-Identifier: Zlib
#ifndef ASMJITUTILS_H_INCLUDED
#define ASMJITUTILS_H_INCLUDED
#include <asmjit/core.h>
static const char* asmjitArchAsString(asmjit::Arch arch) noexcept {
switch (arch) {
case asmjit::Arch::kX86 : return "X86";
case asmjit::Arch::kX64 : return "X64";
case asmjit::Arch::kRISCV32 : return "RISCV32";
case asmjit::Arch::kRISCV64 : return "RISCV64";
case asmjit::Arch::kARM : return "ARM";
case asmjit::Arch::kAArch64 : return "AArch64";
case asmjit::Arch::kThumb : return "Thumb";
case asmjit::Arch::kMIPS32_LE : return "MIPS_LE";
case asmjit::Arch::kMIPS64_LE : return "MIPS64_LE";
case asmjit::Arch::kARM_BE : return "ARM_BE";
case asmjit::Arch::kThumb_BE : return "Thumb_BE";
case asmjit::Arch::kAArch64_BE: return "AArch64_BE";
case asmjit::Arch::kMIPS32_BE : return "MIPS_BE";
case asmjit::Arch::kMIPS64_BE : return "MIPS64_BE";
default:
return "<Unknown>";
}
}
#endif // ASMJITUTILS_H_INCLUDED