Add Intel's Rocket Lake 11th gen cpu. (#10205)

This does nothing but may be required later.
This commit is contained in:
Paul 2021-05-13 05:34:37 -03:00 committed by GitHub
parent f0ad20a250
commit 4e12e70929
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 4 deletions

View file

@ -687,7 +687,8 @@ std::string jit_compiler::cpu(const std::string& _cpu)
m_cpu == "icelake" ||
m_cpu == "icelake-client" ||
m_cpu == "icelake-server" ||
m_cpu == "tigerlake")
m_cpu == "tigerlake" ||
m_cpu == "rocketlake")
{
// Downgrade if AVX is not supported by some chips
if (!utils::has_avx())
@ -703,7 +704,8 @@ std::string jit_compiler::cpu(const std::string& _cpu)
m_cpu == "icelake" ||
m_cpu == "icelake-client" ||
m_cpu == "icelake-server" ||
m_cpu == "tigerlake")
m_cpu == "tigerlake" ||
m_cpu == "rocketlake")
{
// Downgrade if AVX-512 is disabled or not supported
if (!utils::has_avx512())

View file

@ -56,7 +56,8 @@ void cpu_translator::initialize(llvm::LLVMContext& context, llvm::ExecutionEngin
cpu == "icelake" ||
cpu == "icelake-client" ||
cpu == "icelake-server" ||
cpu == "tigerlake")
cpu == "tigerlake" ||
cpu == "rocketlake")
{
m_use_fma = true;
m_use_avx512 = true;
@ -66,7 +67,8 @@ void cpu_translator::initialize(llvm::LLVMContext& context, llvm::ExecutionEngin
if (cpu == "icelake" ||
cpu == "icelake-client" ||
cpu == "icelake-server" ||
cpu == "tigerlake")
cpu == "tigerlake" ||
cpu == "rocketlake")
{
m_use_avx512_icl = true;
}