代码拉取完成,页面将自动刷新
同步操作将从 src-openEuler/mesa 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
From afe6147af2be4093fbc5e69299e86015982658ec Mon Sep 17 00:00:00 2001
From: Icenowy Zheng <uwu@icenowy.me>
Date: Tue, 10 Sep 2024 17:00:30 +0800
Subject: [PATCH] gallivm: use JITLink unconditionally with ORCJIT
RuntimeDyld is getting deprecated along with MCJIT, so although it's
possible to use it with ORCJIT now, using JITLink seems to be better.
Drop the condition for enabling JITLink, to enforce it everywhere.
Signed-off-by: Icenowy Zheng <uwu@icenowy.me>
---
src/gallium/auxiliary/gallivm/lp_bld_init_orc.cpp | 15 +--------------
1 file changed, 1 insertion(+), 14 deletions(-)
diff --git a/src/gallium/auxiliary/gallivm/lp_bld_init_orc.cpp b/src/gallium/auxiliary/gallivm/lp_bld_init_orc.cpp
index f38db3a57fb03..202eaca4683b3 100644
--- a/src/gallium/auxiliary/gallivm/lp_bld_init_orc.cpp
+++ b/src/gallium/auxiliary/gallivm/lp_bld_init_orc.cpp
@@ -58,12 +58,6 @@
/* conflict with ObjectLinkingLayer.h */
#include "util/u_memory.h"
-#if DETECT_ARCH_RISCV64 == 1 || DETECT_ARCH_RISCV32 == 1 || DETECT_ARCH_LOONGARCH64 == 1 || (defined(_WIN32) && LLVM_VERSION_MAJOR >= 15)
-/* use ObjectLinkingLayer (JITLINK backend) */
-#define USE_JITLINK
-#endif
-/* else use old RTDyldObjectLinkingLayer (RuntimeDyld backend) */
-
namespace {
class LPObjectCacheORC : public llvm::ObjectCache {
@@ -334,24 +328,17 @@ LPJit::LPJit() :jit_dylib_count(0) {
tm = wrap(tm_unique.get());
/* Create an LLJIT instance with an ObjectLinkingLayer (JITLINK)
- * or RuntimeDyld as the base layer.
+ * as the base layer.
* intel & perf listeners are not supported by ObjectLinkingLayer yet
*/
lljit = ExitOnErr(
LLJITBuilder()
.setJITTargetMachineBuilder(std::move(JTMB))
-#ifdef USE_JITLINK
.setObjectLinkingLayerCreator(
[&](ExecutionSession &ES, const llvm::Triple &TT) {
return std::make_unique<ObjectLinkingLayer>(
ES, ExitOnErr(llvm::jitlink::InProcessMemoryManager::Create()));
})
-#else
-#if LLVM_USE_INTEL_JITEVENTS
- .RegisterJITEventListener(
- llvm::JITEventListener::createIntelJITEventListener())
-#endif
-#endif
.create());
LLVMOrcIRTransformLayerRef TL = wrap(&lljit->getIRTransformLayer());
--
GitLab
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。