Projects
Mega:24.09
mesa
_service:tar_scm:31108.patch
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:tar_scm:31108.patch of Package mesa
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
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2