pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

g/c MesaLib and dependencies



Module Name:	pkgsrc-wip
Committed By:	Tobias Nygren <tnn%NetBSD.org@localhost>
Pushed By:	tnn
Date:		Sun Mar 13 16:56:37 2022 +0100
Changeset:	a1d912e42f6ae0476a7aa45a30a591f1e50c0b0b

Modified Files:
	Makefile
Removed Files:
	MesaLib/DESCR
	MesaLib/Makefile
	MesaLib/PLIST
	MesaLib/buildlink3.mk
	MesaLib/builtin.mk
	MesaLib/distinfo
	MesaLib/features.mk
	MesaLib/options.mk
	MesaLib/patches/patch-src_compiler_builtin__type__macros.h
	MesaLib/patches/patch-src_drm-shim_drm__shim.c
	MesaLib/patches/patch-src_egl_drivers_dri2_platform__drm.c
	MesaLib/patches/patch-src_egl_drivers_dri2_platform__x11.c
	MesaLib/patches/patch-src_egl_main_eglglobals.c
	MesaLib/patches/patch-src_gallium_auxiliary_pipe-loader_pipe__loader__drm.c
	MesaLib/patches/patch-src_gallium_auxiliary_rbug_rbug__texture.c
	MesaLib/patches/patch-src_gallium_drivers_freedreno_freedreno__screen.c
	MesaLib/patches/patch-src_gallium_drivers_freedreno_freedreno__util.h
	MesaLib/patches/patch-src_gallium_drivers_llvmpipe_lp__memory.c
	MesaLib/patches/patch-src_gallium_drivers_nouveau_nouveau__vp3__video.c
	MesaLib/patches/patch-src_gallium_drivers_nouveau_nv50_nv84__video.c
	MesaLib/patches/patch-src_gallium_drivers_vc4_vc4__bufmgr.c
	MesaLib/patches/patch-src_gallium_frontends_clover_util_range.hpp
	MesaLib/patches/patch-src_gallium_frontends_osmesa_osmesa.c
	MesaLib/patches/patch-src_glx_dri__common.c
	MesaLib/patches/patch-src_glx_dri__common.h
	MesaLib/patches/patch-src_glx_glxclient.h
	MesaLib/patches/patch-src_glx_glxcurrent.c
	MesaLib/patches/patch-src_glx_glxext.c
	MesaLib/patches/patch-src_intel_compiler_brw__fs__bank__conflicts.cpp
	MesaLib/patches/patch-src_intel_tools_aubinator__error__decode.c
	MesaLib/patches/patch-src_mapi_entry__x86-64__tls.h
	MesaLib/patches/patch-src_mapi_entry__x86__tls.h
	MesaLib/patches/patch-src_mapi_u__current.c
	MesaLib/patches/patch-src_mesa_main_context.c
	MesaLib/patches/patch-src_mesa_main_extensions.c
	MesaLib/patches/patch-src_mesa_main_formats.c
	MesaLib/patches/patch-src_mesa_main_shader__query.cpp
	MesaLib/patches/patch-src_mesa_x86_common__x86.c
	MesaLib/patches/patch-src_util_build__id.c
	MesaLib/patches/patch-src_util_disk__cache__os.c
	MesaLib/patches/patch-src_util_libsync.h
	MesaLib/patches/patch-src_util_strndup.h
	MesaLib/patches/patch-src_util_u__atomic.h
	MesaLib/patches/patch-src_util_u__printf.h
	MesaLib/patches/patch-src_util_u__process.c
	MesaLib/patches/patch-src_util_u__queue.c
	MesaLib/patches/patch-src_util_u__thread.h
	MesaLib/version.mk
	libLLVM/DESCR
	libLLVM/Makefile
	libLLVM/PLIST
	libLLVM/buildlink3.mk
	libLLVM/distinfo
	libLLVM/options.mk
	libLLVM/patches/patch-CMakeLists.txt
	libLLVM/patches/patch-cmake_config-ix.cmake
	libLLVM/patches/patch-cmake_modules_AddLLVM.cmake
	libLLVM/patches/patch-cmake_modules_CMakeLists.txt
	libLLVM/patches/patch-cmake_modules_CheckAtomic.cmake
	libLLVM/patches/patch-include_llvm-c_DataTypes.h
	libLLVM/patches/patch-include_llvm_Analysis_ConstantFolding.h
	libLLVM/patches/patch-tools_llvm-config_llvm-config.cpp
	libLLVM/patches/patch-tools_llvm-shlib_CMakeLists.txt
	libdrm/DESCR
	libdrm/Makefile
	libdrm/PLIST
	libdrm/buildlink3.mk
	libdrm/builtin.mk
	libdrm/distinfo
	libdrm/patches/patch-ac
	libdrm/patches/patch-amdgpu_amdgpu__cs.c
	libdrm/patches/patch-etnaviv_etnaviv__device.c
	libdrm/patches/patch-exynos_exynos__drm.c
	libdrm/patches/patch-exynos_exynos__fimg2d.c
	libdrm/patches/patch-include_drm_drm.h
	libdrm/patches/patch-libkms_vmwgfx.c
	libdrm/patches/patch-libsync.h
	libdrm/patches/patch-meson.build
	libdrm/patches/patch-omap_omap__drm.c
	libdrm/patches/patch-tests_exynos_exynos__fimg2d__test.c
	libdrm/patches/patch-tests_nouveau_threaded.c
	libdrm/patches/patch-xf86drm.c
	libdrm/patches/patch-xf86drmMode.c
	libdrm/patches/patch-xf86drmMode.h

Log Message:
g/c MesaLib and dependencies

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=a1d912e42f6ae0476a7aa45a30a591f1e50c0b0b

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 Makefile                                           |    3 -
 MesaLib/DESCR                                      |   10 -
 MesaLib/Makefile                                   |  184 ---
 MesaLib/PLIST                                      |  135 --
 MesaLib/buildlink3.mk                              |   43 -
 MesaLib/builtin.mk                                 |   89 -
 MesaLib/distinfo                                   |   44 -
 MesaLib/features.mk                                |   36 -
 MesaLib/options.mk                                 |  140 --
 .../patch-src_compiler_builtin__type__macros.h     |   25 -
 MesaLib/patches/patch-src_drm-shim_drm__shim.c     |   28 -
 .../patch-src_egl_drivers_dri2_platform__drm.c     |   23 -
 .../patch-src_egl_drivers_dri2_platform__x11.c     |   63 -
 MesaLib/patches/patch-src_egl_main_eglglobals.c    |   53 -
 ...llium_auxiliary_pipe-loader_pipe__loader__drm.c |  127 --
 ...atch-src_gallium_auxiliary_rbug_rbug__texture.c |   14 -
 ...c_gallium_drivers_freedreno_freedreno__screen.c |   30 -
 ...src_gallium_drivers_freedreno_freedreno__util.h |   31 -
 ...patch-src_gallium_drivers_llvmpipe_lp__memory.c |   23 -
 ...c_gallium_drivers_nouveau_nouveau__vp3__video.c |   18 -
 ...-src_gallium_drivers_nouveau_nv50_nv84__video.c |   18 -
 .../patch-src_gallium_drivers_vc4_vc4__bufmgr.c    |   18 -
 ...tch-src_gallium_frontends_clover_util_range.hpp |   40 -
 .../patch-src_gallium_frontends_osmesa_osmesa.c    |   29 -
 MesaLib/patches/patch-src_glx_dri__common.c        |   41 -
 MesaLib/patches/patch-src_glx_dri__common.h        |   17 -
 MesaLib/patches/patch-src_glx_glxclient.h          |   19 -
 MesaLib/patches/patch-src_glx_glxcurrent.c         |   42 -
 MesaLib/patches/patch-src_glx_glxext.c             |   39 -
 ...src_intel_compiler_brw__fs__bank__conflicts.cpp |   23 -
 ...atch-src_intel_tools_aubinator__error__decode.c |   19 -
 .../patches/patch-src_mapi_entry__x86-64__tls.h    |   56 -
 MesaLib/patches/patch-src_mapi_entry__x86__tls.h   |   53 -
 MesaLib/patches/patch-src_mapi_u__current.c        |   31 -
 MesaLib/patches/patch-src_mesa_main_context.c      |   28 -
 MesaLib/patches/patch-src_mesa_main_extensions.c   |   31 -
 MesaLib/patches/patch-src_mesa_main_formats.c      |   28 -
 .../patches/patch-src_mesa_main_shader__query.cpp  |   58 -
 MesaLib/patches/patch-src_mesa_x86_common__x86.c   |   24 -
 MesaLib/patches/patch-src_util_build__id.c         |   25 -
 MesaLib/patches/patch-src_util_disk__cache__os.c   |   18 -
 MesaLib/patches/patch-src_util_libsync.h           |   16 -
 MesaLib/patches/patch-src_util_strndup.h           |   15 -
 MesaLib/patches/patch-src_util_u__atomic.h         |   15 -
 MesaLib/patches/patch-src_util_u__printf.h         |   14 -
 MesaLib/patches/patch-src_util_u__process.c        |   34 -
 MesaLib/patches/patch-src_util_u__queue.c          |   44 -
 MesaLib/patches/patch-src_util_u__thread.h         |   72 -
 MesaLib/version.mk                                 |   30 -
 libLLVM/DESCR                                      |    7 -
 libLLVM/Makefile                                   |  149 --
 libLLVM/PLIST                                      | 1702 --------------------
 libLLVM/buildlink3.mk                              |   18 -
 libLLVM/distinfo                                   |   14 -
 libLLVM/options.mk                                 |   58 -
 libLLVM/patches/patch-CMakeLists.txt               |   42 -
 libLLVM/patches/patch-cmake_config-ix.cmake        |   15 -
 libLLVM/patches/patch-cmake_modules_AddLLVM.cmake  |   59 -
 libLLVM/patches/patch-cmake_modules_CMakeLists.txt |   14 -
 .../patches/patch-cmake_modules_CheckAtomic.cmake  |   43 -
 libLLVM/patches/patch-include_llvm-c_DataTypes.h   |   34 -
 .../patch-include_llvm_Analysis_ConstantFolding.h  |   17 -
 .../patch-tools_llvm-config_llvm-config.cpp        |   57 -
 .../patches/patch-tools_llvm-shlib_CMakeLists.txt  |   34 -
 libdrm/DESCR                                       |    3 -
 libdrm/Makefile                                    |   96 --
 libdrm/PLIST                                       |  102 --
 libdrm/buildlink3.mk                               |   13 -
 libdrm/builtin.mk                                  |   11 -
 libdrm/distinfo                                    |   20 -
 libdrm/patches/patch-ac                            |   40 -
 libdrm/patches/patch-amdgpu_amdgpu__cs.c           |   17 -
 libdrm/patches/patch-etnaviv_etnaviv__device.c     |   17 -
 libdrm/patches/patch-exynos_exynos__drm.c          |   16 -
 libdrm/patches/patch-exynos_exynos__fimg2d.c       |   16 -
 libdrm/patches/patch-include_drm_drm.h             |   18 -
 libdrm/patches/patch-libkms_vmwgfx.c               |   17 -
 libdrm/patches/patch-libsync.h                     |   24 -
 libdrm/patches/patch-meson.build                   |   15 -
 libdrm/patches/patch-omap_omap__drm.c              |   17 -
 .../patch-tests_exynos_exynos__fimg2d__test.c      |   16 -
 libdrm/patches/patch-tests_nouveau_threaded.c      |   13 -
 libdrm/patches/patch-xf86drm.c                     |  207 ---
 libdrm/patches/patch-xf86drmMode.c                 |  110 --
 libdrm/patches/patch-xf86drmMode.h                 |   13 -
 85 files changed, 5080 deletions(-)

diffs:
diff --git a/Makefile b/Makefile
index cbf038ff8b..494329458f 100644
--- a/Makefile
+++ b/Makefile
@@ -21,7 +21,6 @@ SUBDIR+=	GSCommander
 SUBDIR+=	Geomyidae-git
 SUBDIR+=	I2util
 SUBDIR+=	LuaJIT21
-SUBDIR+=	MesaLib
 SUBDIR+=	MesaLib-dfbsd
 SUBDIR+=	MesaLib-dfbsd-meson
 SUBDIR+=	MoleInvasion
@@ -2016,7 +2015,6 @@ SUBDIR+=	lhapdf
 SUBDIR+=	lhs2tex
 SUBDIR+=	libArcus
 SUBDIR+=	libGenome
-SUBDIR+=	libLLVM
 SUBDIR+=	libLLVM38
 SUBDIR+=	libSavitar
 SUBDIR+=	libXaw3dXft
@@ -2058,7 +2056,6 @@ SUBDIR+=	libdisasm
 SUBDIR+=	libdivecomputer
 SUBDIR+=	libdjconsole
 SUBDIR+=	libdoozer
-SUBDIR+=	libdrm
 SUBDIR+=	libdrm-dfbsd
 SUBDIR+=	libdrm-dfbsd-meson
 SUBDIR+=	libdxfrw
diff --git a/MesaLib/DESCR b/MesaLib/DESCR
deleted file mode 100644
index 8ae75a59fc..0000000000
--- a/MesaLib/DESCR
+++ /dev/null
@@ -1,10 +0,0 @@
-The Mesa project began as an open-source implementation of the OpenGL
-specification - a system for rendering interactive 3D graphics.
-
-Over the years the project has grown to implement more graphics APIs,
-including OpenGL ES (versions 1, 2, 3), OpenCL, OpenMAX, VDPAU, VA API,
-XvMC and Vulkan.
-
-A variety of device drivers allows the Mesa libraries to be used in many
-different environments ranging from software emulation to complete hardware
-acceleration for modern GPUs.
diff --git a/MesaLib/Makefile b/MesaLib/Makefile
deleted file mode 100644
index f34693fb9f..0000000000
--- a/MesaLib/Makefile
+++ /dev/null
@@ -1,184 +0,0 @@
-# $NetBSD: Makefile,v 1.197 2021/04/25 07:51:26 mrg Exp $
-
-DISTNAME=	mesa-21.3.7
-PKGNAME=	${DISTNAME:S/mesa/MesaLib/}
-CATEGORIES=	graphics
-MASTER_SITES=	https://mesa.freedesktop.org/archive/
-EXTRACT_SUFX=	.tar.xz
-
-MAINTAINER=	nia%NetBSD.org@localhost
-HOMEPAGE=	https://www.mesa3d.org/
-COMMENT=	Open source OpenGL implementation
-LICENSE=	mit
-
-USE_TOOLS+=	bison flex pkg-config xgettext
-USE_LANGUAGES=	c99 c++14
-
-# ERROR: C++ Compiler does not support -std=c++14
-GCC_REQD+=	5
-
-USE_FEATURES+=	strnlen
-
-CFLAGS.SunOS+=		-D_POSIX_PTHREAD_SEMANTICS
-CXXFLAGS.SunOS+=	-Drestrict=__restrict__
-LDFLAGS.SunOS+=		-lsocket -lnsl
-
-# Some of these get appended in options.mk.
-DRI_DRIVERS=		#
-GALLIUM_DRIVERS=	swrast
-VULKAN_DRIVERS=		#
-MESA_PLATFORMS=		#
-
-.include "../../mk/compiler.mk"
-.include "features.mk"
-.include "options.mk"
-
-PLIST_SUBST+=	GLVER="1.2.0"
-PLIST_SUBST+=	MACHINE_ARCH=${MACHINE_ARCH}
-
-# classic DRI drivers
-PLIST_VARS+=		i830 i915 i965 r100 r200 nouveau_dri
-
-# Gallium drivers
-PLIST_VARS+=		r300 svga nouveau iris
-
-# other features
-PLIST_VARS+=		arm kms vaapi
-
-.if ${MESALIB_SUPPORTS_DRI} == "yes"
-BUILDLINK_API_DEPENDS.libdrm+=  libdrm>=2.4.100
-.include "../../wip/libdrm/buildlink3.mk"
-.  if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64"
-.    include "../../sysutils/libpciaccess/buildlink3.mk"
-.  endif
-MESON_ARGS+=		-Degl=true
-MESON_ARGS+=		-Dgbm=true
-MESON_ARGS+=		-Dgallium-xa=enabled
-.  if ${X11_TYPE} == "native" && !exists(${X11BASE}/include/xcb/dri3.h)
-MESON_ARGS+=		-Ddri3=false
-.  endif
-PLIST.kms=		yes
-.  if !empty(MACHINE_ARCH:M*arm*) || \
-      ${MACHINE_CPU} == "aarch64"
-GALLIUM_DRIVERS+=	freedreno vc4 etnaviv tegra panfrost lima
-PLIST.arm=		yes
-.  endif
-.  if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64"
-GALLIUM_DRIVERS+=	svga iris
-DRI_DRIVERS+=		i915 i965
-PLIST.svga=		yes
-PLIST.i830=		yes
-PLIST.i915=		yes
-PLIST.i965=		yes
-PLIST.iris=		yes
-.  endif
-# FreeBSD lacks nouveau support (there are official binaries from Nvidia)
-.  if ${OPSYS} != "FreeBSD"
-PLIST.nouveau=		yes
-PLIST.nouveau_dri=	yes
-GALLIUM_DRIVERS+=	nouveau
-DRI_DRIVERS+=		nouveau
-.  endif
-.  if !empty(MACHINE_PLATFORM:MLinux-*-x86_64)
-# qemu Linux guest driver
-# XXX test this
-#GALLIUM_DRIVERS+=	virgl
-#PLIST.virgl=		yes
-.  endif
-# theoretically cross platform PCI drivers
-.  if empty(MACHINE_PLATFORM:MNetBSD-*-*arm*) && \
-      empty(MACHINE_PLATFORM:MNetBSD-*-mipsel)
-DRI_DRIVERS+=		r100 r200
-GALLIUM_DRIVERS+=	r300
-PLIST.r100=		yes
-PLIST.r200=		yes
-PLIST.r300=		yes
-.  endif
-.  include "../../multimedia/libva/available.mk"
-.  if ${VAAPI_AVAILABLE} == "yes" && \
-      !(empty(GALLIUM_DRIVERS:Mr600) && empty(GALLIUM_DRIVERS:Mradeonsi) && \
-        empty(GALLIUM_DRIVERS:Mnouveau))
-MESON_ARGS+=		-Dgallium-va=enabled
-PLIST.vaapi=		yes
-BUILDLINK_API_DEPENDS.libva+=	libva>=2.13.0
-.    include "../../multimedia/libva/buildlink3.mk"
-.  else
-MESON_ARGS+=		-Dgallium-va=disabled
-.  endif
-.else
-MESON_ARGS+=		-Degl=false
-MESON_ARGS+=		-Dgbm=false
-.endif # ${MESALIB_SUPPORTS_DRI} == "yes"
-
-MESON_ARGS+=	-Dgallium-drivers=${GALLIUM_DRIVERS:ts,}
-MESON_ARGS+=	-Ddri-drivers=${DRI_DRIVERS:ts,}
-MESON_ARGS+=	-Dvulkan-drivers=${VULKAN_DRIVERS:ts,}
-MESON_ARGS+=	-Dplatforms=${MESA_PLATFORMS:ts,}
-
-.if ${MACHINE_ARCH} == "i386"
-MESON_ARGS+=	-Dglx-read-only-text=true
-CFLAGS+=	-march=i586
-CXXFLAGS+=	-march=i586
-.endif
-
-MESON_ARGS+=	-Dgles1=true
-MESON_ARGS+=	-Dgles2=true
-MESON_ARGS+=	-Dosmesa=true
-MESON_ARGS+=	-Dshared-glapi=true
-MESON_ARGS+=	-Dgallium-xvmc=false
-
-CPPFLAGS+=	-DHAVE_NOATEXIT
-CPPFLAGS+=	-DSYSCONFDIR=${PKG_SYSCONFDIR}
-
-TOOL_DEPENDS+=	${PYPKGPREFIX}-mako-[0-9]*:../../devel/py-mako
-
-# needed to build vulkan support
-TOOL_DEPENDS+=	${PYPKGPREFIX}-cElementTree-[0-9]*:../../textproc/py-cElementTree
-
-BUILDLINK_TRANSFORM+=		rm:-Werror=incompatible-pointer-types
-
-# https://gitlab.freedesktop.org/mesa/mesa/merge_requests/1854
-BUILDLINK_TRANSFORM+=		rm:-Werror=return-type
-
-# ../src/intel/perf/gen_perf.c:426:7: error: %m is only allowed in syslog(3) like functions
-BUILDLINK_TRANSFORM+=		rm:-Werror=format
-BUILDLINK_TRANSFORM+=		rm:-Wformat-security
-
-# https://gitlab.freedesktop.org/mesa/mesa/merge_requests/1853
-BUILDLINK_TRANSFORM.SunOS+=	rm:-Wl,--build-id=sha1
-
-# Work around Xorg segfaulting in radeon driver due to wrong alloca being used
-CFLAGS.NetBSD+=		-Dalloca=__builtin_alloca
-CXXFLAGS.NetBSD+=	-Dalloca=__builtin_alloca
-
-EGDIR=		${PREFIX}/share/examples/mesa
-
-CONF_FILES+=	${EGDIR}/00-mesa-defaults.conf ${PKG_SYSCONFDIR}/drirc
-
-INSTALLATION_DIRS+=	${EGDIR}
-
-PYTHON_FOR_BUILD_ONLY=		tool
-PYTHON_VERSIONS_INCOMPATIBLE=	27
-
-PKGCONFIG_OVERRIDE_STAGE=	pre-install
-PKGCONFIG_OVERRIDE+=		output/meson-private/glesv1_cm.pc
-PKGCONFIG_OVERRIDE+=		output/meson-private/glesv2.pc
-PKGCONFIG_OVERRIDE+=		output/meson-private/dri.pc
-PKGCONFIG_OVERRIDE+=		output/meson-private/gbm.pc
-PKGCONFIG_OVERRIDE+=		output/meson-private/egl.pc
-PKGCONFIG_OVERRIDE+=		output/meson-private/osmesa.pc
-PKGCONFIG_OVERRIDE+=		output/meson-private/xatracker.pc
-PKGCONFIG_OVERRIDE+=		output/meson-private/gl.pc
-
-post-install:
-	${MV} ${DESTDIR}${PREFIX}/share/drirc.d/00-mesa-defaults.conf ${DESTDIR}${EGDIR}
-.if ${OPSYS} == "Darwin"
-	install_name_tool -id ${PREFIX}/lib/dri/swrast_dri.so \
-	    ${DESTDIR}${PREFIX}/lib/dri/swrast_dri.so
-.endif
-
-.include "../../devel/meson/build.mk"
-.include "../../devel/zlib/buildlink3.mk"
-.include "../../lang/python/tool.mk"
-.include "../../textproc/expat/buildlink3.mk"
-.include "../../mk/bsd.pkg.mk"
diff --git a/MesaLib/PLIST b/MesaLib/PLIST
deleted file mode 100644
index 4665ffc5e5..0000000000
--- a/MesaLib/PLIST
+++ /dev/null
@@ -1,135 +0,0 @@
-@comment $NetBSD: PLIST,v 1.46 2019/11/30 11:02:39 nia Exp $
-${PLIST.kms}include/EGL/egl.h
-${PLIST.kms}include/EGL/eglext.h
-${PLIST.kms}include/EGL/eglextchromium.h
-${PLIST.kms}include/EGL/eglmesaext.h
-${PLIST.kms}include/EGL/eglplatform.h
-include/GL/gl.h
-include/GL/glcorearb.h
-include/GL/glext.h
-${PLIST.glx}include/GL/glx.h
-${PLIST.glx}include/GL/glxext.h
-include/GL/internal/dri_interface.h
-include/GL/osmesa.h
-include/GLES/egl.h
-include/GLES/gl.h
-include/GLES/glext.h
-include/GLES/glplatform.h
-include/GLES2/gl2.h
-include/GLES2/gl2ext.h
-include/GLES2/gl2platform.h
-include/GLES3/gl3.h
-include/GLES3/gl31.h
-include/GLES3/gl32.h
-include/GLES3/gl3ext.h
-include/GLES3/gl3platform.h
-include/KHR/khrplatform.h
-${PLIST.kms}include/gbm.h
-${PLIST.kms}include/xa_composite.h
-${PLIST.kms}include/xa_context.h
-${PLIST.kms}include/xa_tracker.h
-${PLIST.arm}lib/dri/armada-drm_dri.so
-${PLIST.arm}lib/dri/etnaviv_dri.so
-${PLIST.arm}lib/dri/exynos_dri.so
-${PLIST.arm}lib/dri/hx8357d_dri.so
-${PLIST.i830}lib/dri/i830_dri.so
-${PLIST.i915}lib/dri/i915_dri.so
-${PLIST.i965}lib/dri/i965_dri.so
-${PLIST.arm}lib/dri/ili9225_dri.so
-${PLIST.arm}lib/dri/ili9341_dri.so
-${PLIST.arm}lib/dri/imx-dcss_dri.so
-${PLIST.arm}lib/dri/imx-drm_dri.so
-${PLIST.arm}lib/dri/ingenic-drm_dri.so
-${PLIST.iris}lib/dri/iris_dri.so
-${PLIST.arm}lib/dri/kgsl_dri.so
-${PLIST.arm}lib/dri/kirin_dri.so
-${PLIST.kms}lib/dri/kms_swrast_dri.so
-${PLIST.arm}lib/dri/lima_dri.so
-${PLIST.arm}lib/dri/mali-dp_dri.so
-${PLIST.arm}lib/dri/mcde_dri.so
-${PLIST.arm}lib/dri/mediatek_dri.so
-${PLIST.arm}lib/dri/meson_dri.so
-${PLIST.arm}lib/dri/mi0283qt_dri.so
-${PLIST.arm}lib/dri/msm_dri.so
-${PLIST.arm}lib/dri/mxsfb-drm_dri.so
-${PLIST.nouveau}lib/dri/nouveau_dri.so
-${PLIST.nouveau}${PLIST.vaapi}lib/dri/nouveau_drv_video.so
-${PLIST.nouveau_dri}lib/dri/nouveau_vieux_dri.so
-${PLIST.arm}lib/dri/panfrost_dri.so
-${PLIST.arm}lib/dri/pl111_dri.so
-${PLIST.r200}lib/dri/r200_dri.so
-${PLIST.r300}lib/dri/r300_dri.so
-${PLIST.r600}lib/dri/r600_dri.so
-${PLIST.r600}${PLIST.vaapi}lib/dri/r600_drv_video.so
-${PLIST.r100}lib/dri/radeon_dri.so
-${PLIST.radeonsi}lib/dri/radeonsi_dri.so
-${PLIST.r600}${PLIST.vaapi}lib/dri/radeonsi_drv_video.so
-${PLIST.arm}lib/dri/repaper_dri.so
-${PLIST.arm}lib/dri/rockchip_dri.so
-${PLIST.arm}lib/dri/st7586_dri.so
-${PLIST.arm}lib/dri/st7735r_dri.so
-${PLIST.arm}lib/dri/stm_dri.so
-${PLIST.arm}lib/dri/sun4i-drm_dri.so
-lib/dri/swrast_dri.so
-${PLIST.arm}lib/dri/tegra_dri.so
-${PLIST.arm}lib/dri/vc4_dri.so
-${PLIST.svga}lib/dri/vmwgfx_dri.so
-${PLIST.kms}lib/libEGL.so
-${PLIST.kms}lib/libEGL.so.1
-${PLIST.kms}lib/libEGL.so.1.0.0
-${PLIST.glx}lib/libGL.so
-${PLIST.glx}lib/libGL.so.1
-${PLIST.glx}lib/libGL.so.${GLVER}
-lib/libGLESv1_CM.so
-lib/libGLESv1_CM.so.1
-lib/libGLESv1_CM.so.1.1.0
-lib/libGLESv2.so
-lib/libGLESv2.so.2
-lib/libGLESv2.so.2.0.0
-lib/libOSMesa.so
-lib/libOSMesa.so.8
-lib/libOSMesa.so.8.0.0
-${PLIST.kms}lib/libgbm.so
-${PLIST.kms}lib/libgbm.so.1
-${PLIST.kms}lib/libgbm.so.1.0.0
-lib/libglapi.so
-lib/libglapi.so.0
-lib/libglapi.so.0.0.0
-${PLIST.vulkan}${PLIST.arm}lib/libvulkan_broadcom.so
-${PLIST.vulkan}${PLIST.arm}lib/libvulkan_freedreno.so
-${PLIST.vulkan_intel}lib/libvulkan_intel.so
-${PLIST.vulkan}lib/libvulkan_lvp.so
-${PLIST.vulkan}lib/libvulkan_radeon.so
-${PLIST.kms}lib/libxatracker.so
-${PLIST.kms}lib/libxatracker.so.2
-${PLIST.kms}lib/libxatracker.so.2.5.0
-lib/pkgconfig/dri.pc
-${PLIST.kms}lib/pkgconfig/egl.pc
-${PLIST.kms}lib/pkgconfig/gbm.pc
-${PLIST.glx}lib/pkgconfig/gl.pc
-lib/pkgconfig/glesv1_cm.pc
-lib/pkgconfig/glesv2.pc
-lib/pkgconfig/osmesa.pc
-${PLIST.kms}lib/pkgconfig/xatracker.pc
-${PLIST.nouveau}${PLIST.vdpau}lib/vdpau/libvdpau_nouveau.so
-${PLIST.nouveau}${PLIST.vdpau}lib/vdpau/libvdpau_nouveau.so.1
-${PLIST.nouveau}${PLIST.vdpau}lib/vdpau/libvdpau_nouveau.so.1.0
-${PLIST.nouveau}${PLIST.vdpau}lib/vdpau/libvdpau_nouveau.so.1.0.0
-${PLIST.r300}${PLIST.vdpau}lib/vdpau/libvdpau_r300.so
-${PLIST.r300}${PLIST.vdpau}lib/vdpau/libvdpau_r300.so.1
-${PLIST.r300}${PLIST.vdpau}lib/vdpau/libvdpau_r300.so.1.0
-${PLIST.r300}${PLIST.vdpau}lib/vdpau/libvdpau_r300.so.1.0.0
-${PLIST.r600}${PLIST.vdpau}lib/vdpau/libvdpau_r600.so
-${PLIST.r600}${PLIST.vdpau}lib/vdpau/libvdpau_r600.so.1
-${PLIST.r600}${PLIST.vdpau}lib/vdpau/libvdpau_r600.so.1.0
-${PLIST.r600}${PLIST.vdpau}lib/vdpau/libvdpau_r600.so.1.0.0
-${PLIST.radeonsi}${PLIST.vdpau}lib/vdpau/libvdpau_radeonsi.so
-${PLIST.radeonsi}${PLIST.vdpau}lib/vdpau/libvdpau_radeonsi.so.1
-${PLIST.radeonsi}${PLIST.vdpau}lib/vdpau/libvdpau_radeonsi.so.1.0
-${PLIST.radeonsi}${PLIST.vdpau}lib/vdpau/libvdpau_radeonsi.so.1.0.0
-share/examples/mesa/00-mesa-defaults.conf
-${PLIST.vulkan}${PLIST.arm}share/vulkan/icd.d/broadcom_icd.${MACHINE_ARCH}.json
-${PLIST.vulkan}${PLIST.arm}share/vulkan/icd.d/freedreno_icd.${MACHINE_ARCH}.json
-${PLIST.vulkan_intel}share/vulkan/icd.d/intel_icd.${MACHINE_ARCH}.json
-${PLIST.vulkan}share/vulkan/icd.d/lvp_icd.${MACHINE_ARCH}.json
-${PLIST.vulkan}share/vulkan/icd.d/radeon_icd.${MACHINE_ARCH}.json
diff --git a/MesaLib/buildlink3.mk b/MesaLib/buildlink3.mk
deleted file mode 100644
index b8d49ddbb7..0000000000
--- a/MesaLib/buildlink3.mk
+++ /dev/null
@@ -1,43 +0,0 @@
-# $NetBSD: buildlink3.mk,v 1.67 2020/03/08 16:49:52 wiz Exp $
-
-BUILDLINK_TREE+=	MesaLib
-
-.if !defined(MESALIB_BUILDLINK3_MK)
-MESALIB_BUILDLINK3_MK:=
-
-BUILDLINK_API_DEPENDS.MesaLib+=	MesaLib>=3.4.2
-BUILDLINK_ABI_DEPENDS.MesaLib+=	MesaLib>=20.0.1nb1
-BUILDLINK_PKGSRCDIR.MesaLib?=	../../graphics/MesaLib
-
-.include "../../graphics/MesaLib/features.mk"
-
-# See <http://developer.apple.com/qa/qa2007/qa1567.html>.
-.if ${X11_TYPE} == "native" && !empty(MACHINE_PLATFORM:MDarwin-[9].*-*)
-BUILDLINK_LDFLAGS.MesaLib+=	-Wl,-dylib_file,/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib:/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib
-.endif
-
-pkgbase:= MesaLib
-
-.include "../../mk/pkg-build-options.mk"
-
-.if !empty(PKG_BUILD_OPTIONS.MesaLib:Mx11)
-.  include "../../x11/libX11/buildlink3.mk"
-.  include "../../x11/libXdamage/buildlink3.mk"
-.  include "../../x11/libXext/buildlink3.mk"
-.  include "../../x11/libXfixes/buildlink3.mk"
-.  include "../../x11/libXrandr/buildlink3.mk"
-.  include "../../x11/libXxf86vm/buildlink3.mk"
-.  include "../../x11/libxcb/buildlink3.mk"
-.  include "../../x11/libxshmfence/buildlink3.mk"
-.  include "../../x11/xcb-proto/buildlink3.mk"
-.  include "../../x11/xorgproto/buildlink3.mk"
-.endif
-
-.if ${MESALIB_SUPPORTS_DRI} == "yes"
-.  include "../../wip/libdrm/buildlink3.mk"
-.endif
-
-.include "../../mk/pthread.buildlink3.mk"
-.endif # MESALIB_BUILDLINK3_MK
-
-BUILDLINK_TREE+=	-MesaLib
diff --git a/MesaLib/builtin.mk b/MesaLib/builtin.mk
deleted file mode 100644
index b2c566d8e0..0000000000
--- a/MesaLib/builtin.mk
+++ /dev/null
@@ -1,89 +0,0 @@
-# $NetBSD: builtin.mk,v 1.23 2019/08/30 19:06:34 nia Exp $
-
-BUILTIN_PKG:=	MesaLib
-
-BUILTIN_FIND_FILES_VAR:=	H_MESALIB PC_GL
-BUILTIN_FIND_FILES.H_MESALIB=	${X11BASE}/include/GL/glx.h
-BUILTIN_FIND_FILES.PC_GL=	${X11BASE}/lib/pkgconfig/gl.pc
-BUILTIN_FIND_FILES.PC_GL+=	${X11BASE}/lib${LIBABISUFFIX}/pkgconfig/gl.pc
-
-.include "../../mk/buildlink3/bsd.builtin.mk"
-
-###
-### Determine if there is a built-in implementation of the package and
-### set IS_BUILTIN.<pkg> appropriately ("yes" or "no").
-###
-.if !defined(IS_BUILTIN.MesaLib)
-.  if empty(PC_GL:M__nonexistent__)
-IS_BUILTIN.MesaLib=	yes
-.  elif empty(H_MESALIB:M__nonexistent__)
-IS_BUILTIN.MesaLib=	yes
-.  else
-IS_BUILTIN.MesaLib=	no
-.  endif
-.endif
-
-MAKEVARS+=	IS_BUILTIN.MesaLib
-
-###
-### If there is a built-in implementation, then set BUILTIN_PKG.<pkg> to
-### a package name to represent the built-in package.
-###
-.if !defined(BUILTIN_PKG.MesaLib) && \
-    !empty(IS_BUILTIN.MesaLib:M[yY][eE][sS])
-.  if empty(PC_GL:M__nonexistent__)
-BUILTIN_VERSION.Mesa!= ${SED} -n -e 's/Version: //p' ${PC_GL}
-.  elif empty(H_MESALIB:M__nonexistent__)
-.    include "version.mk"
-.  else # ?
-BUILTIN_VERSION.Mesa:= 0.something-weird-happened
-.  endif
-BUILTIN_PKG.MesaLib=	MesaLib-${BUILTIN_VERSION.Mesa}
-MAKEVARS+=	BUILTIN_VERSION.Mesa
-.endif
-MAKEVARS+=	BUILTIN_PKG.MesaLib
-
-###
-### Determine whether we should use the built-in implementation if it
-### exists, and set USE_BUILTIN.<pkg> appropriate ("yes" or "no").
-###
-.if !defined(USE_BUILTIN.MesaLib)
-.  if ${PREFER.MesaLib} == "pkgsrc"
-USE_BUILTIN.MesaLib=	no
-.  else
-USE_BUILTIN.MesaLib=	${IS_BUILTIN.MesaLib}
-.    if defined(BUILTIN_PKG.MesaLib) && \
-        !empty(IS_BUILTIN.MesaLib:M[yY][eE][sS])
-USE_BUILTIN.MesaLib=	yes
-.      for dep in ${BUILDLINK_API_DEPENDS.MesaLib}
-.        if !empty(USE_BUILTIN.MesaLib:M[yY][eE][sS])
-USE_BUILTIN.MesaLib!=							\
-	if ${PKG_ADMIN} pmatch ${dep:Q} ${BUILTIN_PKG.MesaLib}; then \
-		${ECHO} yes;						\
-	else								\
-		${ECHO} no;						\
-	fi
-.        endif
-.      endfor
-.    endif
-.  endif  # PREFER.MesaLib
-.endif
-
-MAKEVARS+=	USE_BUILTIN.MesaLib
-
-###
-### The section below only applies if we are not including this file
-### solely to determine whether a built-in implementation exists.
-###
-CHECK_BUILTIN.MesaLib?=	no
-.if !empty(CHECK_BUILTIN.MesaLib:M[nN][oO])
-
-.  if !empty(USE_BUILTIN.MesaLib:M[nN][oO])
-.    include "../../mk/pthread.buildlink3.mk"
-.    include "../../mk/pthread.builtin.mk"
-BUILTIN_PKG:=	MesaLib
-.  endif
-
-.  include "../../mk/x11.builtin.mk"
-
-.endif	# CHECK_BUILTIN.MesaLib
diff --git a/MesaLib/distinfo b/MesaLib/distinfo
deleted file mode 100644
index 6ffaab8a42..0000000000
--- a/MesaLib/distinfo
+++ /dev/null
@@ -1,44 +0,0 @@
-$NetBSD: distinfo,v 1.157 2021/07/15 14:06:56 schmonz Exp $
-
-BLAKE2s (mesa-21.3.7.tar.xz) = 5f14af06f483f145dcf442b66e408fc02980a7f69df343ac96686a6f01228719
-SHA512 (mesa-21.3.7.tar.xz) = 0991543e9435457fa4d077517408b3f197be32ed61a6c7ca34ddb3906eed208791f1a57227f74115f99df18e612efab1d2c6809b7cf426d273633b53d4aefc88
-Size (mesa-21.3.7.tar.xz) = 16569592 bytes
-SHA1 (patch-src_compiler_builtin__type__macros.h) = e4868011711fb89a293580a12eb603b8e7162336
-SHA1 (patch-src_drm-shim_drm__shim.c) = 6884d31dc3e9d47aac1785589ab289a601e64545
-SHA1 (patch-src_egl_drivers_dri2_platform__drm.c) = 9230fbae2c04246ebca8437ecad694bbae857fbe
-SHA1 (patch-src_egl_drivers_dri2_platform__x11.c) = ccf7c3ba7bdac39f9924102868f30afd7f4f05a2
-SHA1 (patch-src_egl_main_eglglobals.c) = 0d52014f52e62fc5fa6650336ddb0011ecf331e6
-SHA1 (patch-src_gallium_auxiliary_pipe-loader_pipe__loader__drm.c) = f913b779404e6bd8ae707a4fd66eb7c1dca9b311
-SHA1 (patch-src_gallium_auxiliary_rbug_rbug__texture.c) = 57d831b1001419191a27c05d9cb7734481372d27
-SHA1 (patch-src_gallium_drivers_freedreno_freedreno__screen.c) = 2d31c6d5b5271ad108f73234de34618f583e3e43
-SHA1 (patch-src_gallium_drivers_freedreno_freedreno__util.h) = 51f082b91b3015b99ed28a016eda2f0f1eaef675
-SHA1 (patch-src_gallium_drivers_llvmpipe_lp__memory.c) = ca3c1b317c41f6ae56a08272ffabdecb38fea2ec
-SHA1 (patch-src_gallium_drivers_nouveau_nouveau__vp3__video.c) = 04f95784c3270c9bb7e95377982e217962481525
-SHA1 (patch-src_gallium_drivers_nouveau_nv50_nv84__video.c) = 1b4239fe053523835ecac006894bdb0cde0ee626
-SHA1 (patch-src_gallium_drivers_vc4_vc4__bufmgr.c) = 1d591d346486fdf58893f69ab92a272e6a31a987
-SHA1 (patch-src_gallium_frontends_clover_util_range.hpp) = c1bd73721482642e62378c70cbe245c304c36d4f
-SHA1 (patch-src_gallium_frontends_osmesa_osmesa.c) = 36631301b02cf89f152925b62f538a3c0b6ab601
-SHA1 (patch-src_glx_dri__common.c) = 7fa80f8da89ba90649db170e45c8e842cf69c1eb
-SHA1 (patch-src_glx_dri__common.h) = 0274877f8c65a4bb729536a897df4704897a4c6e
-SHA1 (patch-src_glx_glxclient.h) = 7b59d5632e35aa945ad77cd5d1d2fc2e7711e82b
-SHA1 (patch-src_glx_glxcurrent.c) = bc844ab6bfe32c0a322ff0fc2c1405b67b90b64a
-SHA1 (patch-src_glx_glxext.c) = 1eacf9062b5926ea6c756e769bf6eebc7671ccba
-SHA1 (patch-src_intel_compiler_brw__fs__bank__conflicts.cpp) = 6276d2c6846bb4dd08699921bec4e20202a17478
-SHA1 (patch-src_intel_tools_aubinator__error__decode.c) = d8f636e3c3e76763a505a1dce23de0b198ad62fa
-SHA1 (patch-src_mapi_entry__x86-64__tls.h) = f3e93565a2247b47495489f2dbecdc354d4a21a0
-SHA1 (patch-src_mapi_entry__x86__tls.h) = 1ca12843b7214831c25c5cdd7860dad94312c118
-SHA1 (patch-src_mapi_u__current.c) = f10d7d56d773a30ec4f24ffc41ae68104e173a47
-SHA1 (patch-src_mesa_main_context.c) = ae26f984b30369554a0e24d03006533c75e56a9b
-SHA1 (patch-src_mesa_main_extensions.c) = 8a6094690864289393315bd0ccc4ebd1e0c59ca5
-SHA1 (patch-src_mesa_main_formats.c) = b0c31116767422efe732bc77136b03b2fddfba31
-SHA1 (patch-src_mesa_main_shader__query.cpp) = 3f9c31645d87855759def11344dee16af23c7be3
-SHA1 (patch-src_mesa_x86_common__x86.c) = f8c4b93443ef66d017f6aa114b877565b30f2598
-SHA1 (patch-src_util_build__id.c) = 7a9547bbda9d2fb9f0018ccf27b70b59e497aa2c
-SHA1 (patch-src_util_disk__cache__os.c) = 2b87c69d99e0ecf1991a6e7f3b96605887e0b2f2
-SHA1 (patch-src_util_libsync.h) = 6711d79d9011c3ba6a592ed1639c7be811aee8b4
-SHA1 (patch-src_util_strndup.h) = 73f49694ca48ad6b9a9d8346c5b84fddec2463bd
-SHA1 (patch-src_util_u__atomic.h) = 31d4514538ef5ee53012695eb5c66134aaec981e
-SHA1 (patch-src_util_u__printf.h) = 3b19d079d3857612be3cb1b5c1edb5384cd4d6fd
-SHA1 (patch-src_util_u__process.c) = 9b785d660f3d55803315598a66370139fcd9168f
-SHA1 (patch-src_util_u__queue.c) = e8d6b00473a16b6a32dcacd5ae092326fb2adb84
-SHA1 (patch-src_util_u__thread.h) = 996a51b8570cb019b9ed5ce9f3653488ce26b2df
diff --git a/MesaLib/features.mk b/MesaLib/features.mk
deleted file mode 100644
index a033bc6eea..0000000000
--- a/MesaLib/features.mk
+++ /dev/null
@@ -1,36 +0,0 @@
-# $NetBSD: features.mk,v 1.1 2019/10/21 20:47:55 nia Exp $
-
-.include "../../mk/bsd.fast.prefs.mk"
-
-.if !defined(MESALIB_SUPPORTS_DRI)
-.  for dri_os in DragonFly FreeBSD NetBSD OpenBSD Linux SunOS
-.    if !empty(OPSYS:M${dri_os})
-MESALIB_SUPPORTS_DRI?=		yes
-.    endif
-.  endfor
-.endif
-
-MESALIB_SUPPORTS_DRI?=		no
-
-.if ${X11_TYPE} == "modular"
-MESALIB_SUPPORTS_OSMESA?=	yes
-MESALIB_SUPPORTS_GLESv2?=	yes
-.  if ${MESALIB_SUPPORTS_DRI} == "yes"
-MESALIB_SUPPORTS_EGL?=		yes
-.  else
-.  endif
-.else
-.  if exists(${X11BASE}/include/EGL/egl.h)
-MESALIB_SUPPORTS_EGL?=		yes
-.  endif
-.  if exists(${X11BASE}/lib/libOSMesa.so)
-MESALIB_SUPPORTS_OSMESA?=	yes
-.  endif
-.  if exists(${X11BASE}/include/GLES2/gl2.h)
-MESALIB_SUPPORTS_GLESv2?=	yes
-.  endif
-.endif
-
-MESALIB_SUPPORTS_EGL?=		no
-MESALIB_SUPPORTS_GLESv2?=	no
-MESALIB_SUPPORTS_OSMESA?=	no
diff --git a/MesaLib/options.mk b/MesaLib/options.mk
deleted file mode 100644
index 90d9e2e699..0000000000
--- a/MesaLib/options.mk
+++ /dev/null
@@ -1,140 +0,0 @@
-# $NetBSD: options.mk,v 1.81 2020/04/09 16:54:22 nia Exp $
-
-PKG_OPTIONS_VAR=		PKG_OPTIONS.MesaLib
-
-.include "features.mk"
-
-PKG_SUPPORTED_OPTIONS+=		elf-tls llvm vulkan x11
-
-.if ${MESALIB_SUPPORTS_DRI} == "yes"
-PKG_SUPPORTED_OPTIONS+=		wayland
-.  include "../../devel/wayland/platform.mk"
-.  if ${PLATFORM_SUPPORTS_WAYLAND} == "yes"
-PKG_SUGGESTED_OPTIONS+=		wayland
-.  endif
-.endif
-
-PKG_SUGGESTED_OPTIONS+=		x11
-
-.include "../../mk/bsd.fast.prefs.mk"
-
-# The LLVM option enables JIT accelerated software rendering and is also
-# required to support the latest RADEON GPUs.
-#
-# Enable it by default on platforms where such GPUs might be encountered or
-# LLVM-accelerated software rendering might be useful.
-.if ${MESALIB_SUPPORTS_DRI} == "yes" && \
-    ${OPSYS} != "SunOS" && \
-      (${MACHINE_ARCH} == "i386" || \
-       ${MACHINE_ARCH} == "x86_64" || \
-       ${MACHINE_ARCH} == "aarch64")
-PKG_SUGGESTED_OPTIONS+=		llvm
-.endif
-
-# ELF TLS is broken in at least the following cases:
-# - NetBSD with SDL2 without X11
-# - FreeBSD - https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3559
-# - Linux with musl libc
-#
-# https://gitlab.freedesktop.org/mesa/mesa/issues/966
-.if ${OPSYS} == "Linux" && !empty(GLIBC_VERSION)
-PKG_SUGGESTED_OPTIONS+=		elf-tls
-.endif
-
-.include "../../mk/bsd.options.mk"
-
-# Gallium drivers requiring LLVM
-PLIST_VARS+=	r600 radeonsi
-
-# Windowing systems
-PLIST_VARS+=	glx
-
-# Misc. features
-PLIST_VARS+=	vdpau
-
-#
-# ELF TLS support
-#
-.if empty(PKG_OPTIONS:Melf-tls)
-BUILDLINK_TRANSFORM+=	rm:-DUSE_ELF_TLS
-.endif
-
-#
-# LLVM support
-#
-.if !empty(PKG_OPTIONS:Mllvm)
-MESON_ARGS+=		-Dllvm=enabled
-.  include "../../devel/libelf/buildlink3.mk"
-.  include "../../wip/libLLVM/buildlink3.mk"
-
-.  if ${OPSYS} != "Darwin" && ${OPSYS} != "Cygwin"
-# This is the latest libdrm requirement for amdgpu.
-BUILDLINK_API_DEPENDS.libdrm+=	libdrm>=2.4.107
-
-PLIST.r600=		yes
-GALLIUM_DRIVERS+=	r600
-PLIST.radeonsi=		yes
-GALLIUM_DRIVERS+=	radeonsi
-.  endif
-.else
-MESON_ARGS+=		-Dllvm=disabled
-.endif
-
-#
-# Vulkan support - experimental
-#
-PLIST_VARS+=		 vulkan vulkan_intel
-.if !empty(PKG_OPTIONS:Mvulkan)
-VULKAN_DRIVERS+=	amd
-VULKAN_DRIVERS+=	swrast
-PLIST.vulkan=		yes
-.  if ${MACHINE_ARCH} == "x86_64"
-VULKAN_DRIVERS+=	intel
-PLIST.vulkan_intel=	yes
-.  endif
-.  if ${MACHINE_ARCH} == "aarch64"
-VULKAN_DRIVERS+=	broadcom
-VULKAN_DRIVERS+=	freedreno
-.  endif
-.endif
-
-#
-# X11 support
-#
-.if !empty(PKG_OPTIONS:Mx11)
-MESA_PLATFORMS+=	x11
-PLIST.glx=		yes
-.  if ${MESALIB_SUPPORTS_DRI} == "yes"
-MESON_ARGS+=		-Dglx=dri
-.    include "../../multimedia/libvdpau/available.mk"
-.    if ${VDPAU_AVAILABLE} == "yes"
-MESON_ARGS+=		-Dgallium-vdpau=true
-PLIST.vdpau=		yes
-.      include "../../multimedia/libvdpau/buildlink3.mk"
-.    else
-MESON_ARGS+=		-Dgallium-vdpau=false
-.    endif
-.  endif
-.  include "../../x11/libX11/buildlink3.mk"
-.  include "../../x11/libXdamage/buildlink3.mk"
-.  include "../../x11/libXext/buildlink3.mk"
-.  include "../../x11/libXfixes/buildlink3.mk"
-.  include "../../x11/libXrandr/buildlink3.mk"
-.  include "../../x11/libXxf86vm/buildlink3.mk"
-.  include "../../x11/libxcb/buildlink3.mk"
-.  include "../../x11/libxshmfence/buildlink3.mk"
-.  include "../../x11/xcb-proto/buildlink3.mk"
-.  include "../../x11/xorgproto/buildlink3.mk"
-.else
-MESON_ARGS+=		-Dglx=disabled
-MESON_ARGS+=		-Dgallium-vdpau=false
-.endif
-
-#
-# Wayland support
-#
-.if !empty(PKG_OPTIONS:Mwayland)
-MESA_PLATFORMS+=	wayland
-.  include "../../devel/wayland/buildlink3.mk"
-.  include "../../devel/wayland-protocols/buildlink3.mk"
-.endif
diff --git a/MesaLib/patches/patch-src_compiler_builtin__type__macros.h b/MesaLib/patches/patch-src_compiler_builtin__type__macros.h
deleted file mode 100644
index b040332f3a..0000000000
--- a/MesaLib/patches/patch-src_compiler_builtin__type__macros.h
+++ /dev/null
@@ -1,25 +0,0 @@
-$NetBSD: patch-src_compiler_builtin__type__macros.h,v 1.2 2019/08/31 17:56:09 nia Exp $
-
-Workaround netbsd 8 headers.
-
---- src/compiler/builtin_type_macros.h.orig	2018-09-07 21:18:07.000000000 +0000
-+++ src/compiler/builtin_type_macros.h
-@@ -28,6 +28,18 @@
-  * language version or extension might provide them.
-  */
- 
-+#ifdef __NetBSD__ /* XXX https://mail-index.netbsd.org/tech-userlevel/2018/09/08/msg011381.html */
-+#undef uint8_t
-+#undef uint16_t
-+#undef uint32_t
-+#undef uint64_t
-+#undef int8_t
-+#undef int16_t
-+#undef int32_t
-+#undef int64_t
-+#endif
-+
-+
- DECL_TYPE(error,  GL_INVALID_ENUM, GLSL_TYPE_ERROR, 0, 0)
- DECL_TYPE(void,   GL_INVALID_ENUM, GLSL_TYPE_VOID,  0, 0)
- 
diff --git a/MesaLib/patches/patch-src_drm-shim_drm__shim.c b/MesaLib/patches/patch-src_drm-shim_drm__shim.c
deleted file mode 100644
index 21508dd56d..0000000000
--- a/MesaLib/patches/patch-src_drm-shim_drm__shim.c
+++ /dev/null
@@ -1,28 +0,0 @@
-$NetBSD$
-
-atexit() is not a good idea in shared libraries.
-
---- src/drm-shim/drm_shim.c.orig	2021-07-14 20:04:46.724922400 +0000
-+++ src/drm-shim/drm_shim.c
-@@ -162,7 +162,11 @@ drm_shim_override_file(const char *conte
-    override->contents = strdup(contents);
- }
- 
-+#if defined(HAVE_NOATEXIT)
-+static void __attribute__((__destructor__))
-+#else
- static void
-+#endif
- destroy_shim(void)
- {
-    _mesa_set_destroy(opendir_set, NULL);
-@@ -227,7 +231,9 @@ init_shim(void)
- 
-    drm_shim_device_init();
- 
-+#if !defined(HAVE_NOATEXIT)
-    atexit(destroy_shim);
-+#endif
- }
- 
- /* Override libdrm's reading of various sysfs files for device enumeration. */
diff --git a/MesaLib/patches/patch-src_egl_drivers_dri2_platform__drm.c b/MesaLib/patches/patch-src_egl_drivers_dri2_platform__drm.c
deleted file mode 100644
index d1a4cb405e..0000000000
--- a/MesaLib/patches/patch-src_egl_drivers_dri2_platform__drm.c
+++ /dev/null
@@ -1,23 +0,0 @@
-$NetBSD: patch-src_egl_drivers_dri2_platform__drm.c,v 1.5 2020/01/21 14:41:26 nia Exp $
-
-Revert: https://cgit.freedesktop.org/mesa/mesa/commit/?id=621b0fa8922ade0a8122b868177308e65e6d3595
-
-This causes symbol referencing errors:
-"ld: /usr/pkg/lib/libEGL.so.1: undefined reference to `gbm_format_get_name'"
-
-TODO: Talk to upstream and investigate why.
-
---- src/egl/drivers/dri2/platform_drm.c.orig	2019-12-04 22:10:12.000000000 +0000
-+++ src/egl/drivers/dri2/platform_drm.c
-@@ -649,9 +649,8 @@ drm_add_configs_for_visuals(_EGLDriver *
- 
-    for (unsigned i = 0; i < ARRAY_SIZE(format_count); i++) {
-       if (!format_count[i]) {
--         struct gbm_format_name_desc desc;
--         _eglLog(_EGL_DEBUG, "No DRI config supports native format %s",
--                 gbm_format_get_name(visuals[i].gbm_format, &desc));
-+         _eglLog(_EGL_DEBUG, "No DRI config supports native format 0x%x",
-+                 visuals[i].gbm_format);
-       }
-    }
- 
diff --git a/MesaLib/patches/patch-src_egl_drivers_dri2_platform__x11.c b/MesaLib/patches/patch-src_egl_drivers_dri2_platform__x11.c
deleted file mode 100644
index 741826af67..0000000000
--- a/MesaLib/patches/patch-src_egl_drivers_dri2_platform__x11.c
+++ /dev/null
@@ -1,63 +0,0 @@
-$NetBSD$
-
-Provide compat strndup for older Darwin.
-
-* From FreeBSD ports 18.0.0:
-work-around for https://bugs.freedesktop.org/show_bug.cgi?id=100627
-
-Mon Apr 10 19:14:48 2017 UTC
-DRI3 remains enabled at compile time, but it is now disabled at
-runtime for stock FreeBSD.  Set LIBGL_DRI3_ENABLE in the
-environment to enable DRI3.
-This change was made to work around a problem in libEGL,
-which fails to fall back to using DRI2 when run on a system
-without DRI3 support.
-
-* Added logging statement to note dri3 initialization being invoked.
-
---- src/egl/drivers/dri2/platform_x11.c.orig	2021-07-14 20:04:46.732922600 +0000
-+++ src/egl/drivers/dri2/platform_x11.c
-@@ -628,6 +628,23 @@ dri2_x11_local_authenticate(struct dri2_
-    return EGL_TRUE;
- }
- 
-+#if (defined(__APPLE__) && __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__-0 < 1070)
-+static char *
-+strndup(const char *s, int length)
-+{
-+   char *d;
-+
-+   d = malloc(length + 1);
-+   if (d == NULL)
-+      return NULL;
-+
-+   memcpy(d, s, length);
-+   d[length] = '\0';
-+
-+   return d;
-+}
-+#endif
-+
- static EGLBoolean
- dri2_x11_connect(struct dri2_egl_display *dri2_dpy)
- {
-@@ -1539,9 +1556,17 @@ dri2_initialize_x11(_EGLDisplay *disp)
-       return dri2_initialize_x11_swrast(disp);
- 
- #ifdef HAVE_DRI3
--   if (!env_var_as_boolean("LIBGL_DRI3_DISABLE", false))
--      if (dri2_initialize_x11_dri3(disp))
-+
-+#if ((defined(__FreeBSD__) || defined(__FreeBSD_kernel__)) && !defined(__DRM_NEXT__)) || defined(__DragonFly__) || defined(__NetBSD__)
-+   if (env_var_as_boolean("LIBGL_DRI3_ENABLE", false))
-+#endif
-+   if (!env_var_as_boolean("LIBGL_DRI3_DISABLE", false)) {
-+      _eglLog(_EGL_INFO, "platform_x11.c: calling dri2_initialize_x11_dri3\n");
-+      if (dri2_initialize_x11_dri3(disp)) {
-+         _eglLog(_EGL_INFO, "platform_x11.c: initialized by dri2_initialize_x11_dri3\n");
-          return EGL_TRUE;
-+      }
-+   }
- #endif
- 
-    if (!env_var_as_boolean("LIBGL_DRI2_DISABLE", false))
diff --git a/MesaLib/patches/patch-src_egl_main_eglglobals.c b/MesaLib/patches/patch-src_egl_main_eglglobals.c
deleted file mode 100644
index 94c40c0877..0000000000
--- a/MesaLib/patches/patch-src_egl_main_eglglobals.c
+++ /dev/null
@@ -1,53 +0,0 @@
-$NetBSD: patch-src_egl_main_eglglobals.c,v 1.2 2019/08/21 13:35:28 nia Exp $
-
-atexit() is not a good idea in shared libraries.
-
-FreeBSD reported atexit bug for 10.6:
-https://bugs.freedesktop.org/show_bug.cgi?id=91869
-
---- src/egl/main/eglglobals.c.orig	2018-01-18 21:30:28.000000000 +0000
-+++ src/egl/main/eglglobals.c
-@@ -85,11 +85,22 @@ struct _egl_global _eglGlobal =
-    .debugTypesEnabled = _EGL_DEBUG_BIT_CRITICAL | _EGL_DEBUG_BIT_ERROR,
- };
- 
-+#if defined(HAVE_NOATEXIT)
-+static EGLBoolean registered = EGL_FALSE;
- 
-+static void __attribute__((__destructor__))
-+#else
- static void
-+#endif
- _eglAtExit(void)
- {
-    EGLint i;
-+
-+#if defined(HAVE_NOATEXIT)
-+   if (!registered)
-+      return;
-+#endif
-+
-    for (i = _eglGlobal.NumAtExitCalls - 1; i >= 0; i--)
-       _eglGlobal.AtExitCalls[i]();
- }
-@@ -99,14 +110,20 @@ void
- _eglAddAtExitCall(void (*func)(void))
- {
-    if (func) {
-+#if !defined(HAVE_NOATEXIT)
-       static EGLBoolean registered = EGL_FALSE;
-+#endif
- 
-       mtx_lock(_eglGlobal.Mutex);
- 
-+#if defined(HAVE_NOATEXIT)
-+      registered = EGL_TRUE;
-+#else
-       if (!registered) {
-          atexit(_eglAtExit);
-          registered = EGL_TRUE;
-       }
-+#endif
- 
-       assert(_eglGlobal.NumAtExitCalls < ARRAY_SIZE(_eglGlobal.AtExitCalls));
-       _eglGlobal.AtExitCalls[_eglGlobal.NumAtExitCalls++] = func;
diff --git a/MesaLib/patches/patch-src_gallium_auxiliary_pipe-loader_pipe__loader__drm.c b/MesaLib/patches/patch-src_gallium_auxiliary_pipe-loader_pipe__loader__drm.c
deleted file mode 100644
index 7aba3f6a5c..0000000000
--- a/MesaLib/patches/patch-src_gallium_auxiliary_pipe-loader_pipe__loader__drm.c
+++ /dev/null
@@ -1,127 +0,0 @@
-$NetBSD: patch-src_gallium_auxiliary_pipe-loader_pipe__loader__drm.c,v 1.1 2019/08/21 13:35:28 nia Exp $
-
-* From FreeBSD ports / DragonFly dports graphics/mesa-dri
-
-Revert the following commit.
-
-FreeBSD and DragonFly don't have the required render nodes.
-
--------
-
-From 69a1b9959e59653da262185c4e2cf57d24939b19 Mon Sep 17 00:00:00 2001
-Date: Mon, 29 Jun 2015 12:36:45 +0100
-Subject: pipe-loader: drop support for non-render node devices
-
-Render nodes have been around for quite some time. Removing support via
-the master/primary node allows us to clean up the conditional
-compilation and simplify the build greatly.
-
-For example currently we the pipe-loader, which explicitly links against
-xcb and friends (for X auth) if found at compile-time. That
-would cause problems as one will be forced to use X/xcb, even if it's a
-headless system that is used for opencl.
-
-v2: Clarify the linking topic in the commit message.
-
-* Extended for NetBSD.
-
---- src/gallium/auxiliary/pipe-loader/pipe_loader_drm.c.orig	2018-12-11 21:13:57.000000000 +0000
-+++ src/gallium/auxiliary/pipe-loader/pipe_loader_drm.c
-@@ -229,6 +229,16 @@ pipe_loader_drm_probe_fd(struct pipe_loa
-    return ret;
- }
- 
-+#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__DragonFly__) || defined(__NetBSD__)
-+static int
-+open_drm_minor(int minor)
-+{
-+   char path[PATH_MAX];
-+   snprintf(path, sizeof(path), DRM_DEV_NAME, DRM_DIR_NAME, minor);
-+   return open(path, O_RDWR, 0);
-+}
-+#endif
-+
- static int
- open_drm_render_node_minor(int minor)
- {
-@@ -241,7 +251,19 @@ open_drm_render_node_minor(int minor)
- int
- pipe_loader_drm_probe(struct pipe_loader_device **devs, int ndev)
- {
-+#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__DragonFly__) || defined(__NetBSD__)
-+   int i, k, fd, num_render_node_devs;
-+   int j = 0;
-+
-+   struct {
-+      unsigned vendor_id;
-+      unsigned chip_id;
-+   } render_node_devs[DRM_RENDER_NODE_MAX_NODES];
-+
-+   /* Look for render nodes first */
-+#else
-    int i, j, fd;
-+#endif
- 
-    for (i = DRM_RENDER_NODE_MIN_MINOR, j = 0;
-         i <= DRM_RENDER_NODE_MAX_MINOR; i++) {
-@@ -256,6 +278,11 @@ pipe_loader_drm_probe(struct pipe_loader
-          continue;
-       }
- 
-+#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__DragonFly__) || defined(__NetBSD__)
-+      render_node_devs[j].vendor_id = dev->u.pci.vendor_id;
-+      render_node_devs[j].chip_id = dev->u.pci.chip_id;
-+
-+#endif
-       if (j < ndev) {
-          devs[j] = dev;
-       } else {
-@@ -265,6 +292,48 @@ pipe_loader_drm_probe(struct pipe_loader
-       j++;
-    }
- 
-+#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__DragonFly__) || defined(__NetBSD__)
-+   num_render_node_devs = j;
-+
-+   /* Next look for drm devices. */
-+   for (i = 0; i < DRM_MAX_MINOR; i++) {
-+      struct pipe_loader_device *dev;
-+      boolean duplicate = FALSE;
-+      fd = open_drm_minor(i);
-+      if (fd < 0)
-+         continue;
-+
-+      if (!pipe_loader_drm_probe_fd(&dev, fd)) {
-+         close(fd);
-+         continue;
-+      }
-+
-+      /* Check to make sure we aren't already accessing this device via
-+       * render nodes.
-+       */
-+      for (k = 0; k < num_render_node_devs; k++) {
-+         if (dev->u.pci.vendor_id == render_node_devs[k].vendor_id &&
-+             dev->u.pci.chip_id == render_node_devs[k].chip_id) {
-+            close(fd);
-+            dev->ops->release(&dev);
-+            duplicate = TRUE;
-+            break;
-+         }
-+      }
-+
-+      if (duplicate)
-+         continue;
-+
-+      if (j < ndev) {
-+         devs[j] = dev;
-+      } else {
-+         dev->ops->release(&dev);
-+      }
-+
-+      j++;
-+   }
-+
-+#endif
-    return j;
- }
- 
diff --git a/MesaLib/patches/patch-src_gallium_auxiliary_rbug_rbug__texture.c b/MesaLib/patches/patch-src_gallium_auxiliary_rbug_rbug__texture.c
deleted file mode 100644
index 09dbd3bf8d..0000000000
--- a/MesaLib/patches/patch-src_gallium_auxiliary_rbug_rbug__texture.c
+++ /dev/null
@@ -1,14 +0,0 @@
-$NetBSD: patch-src_gallium_auxiliary_rbug_rbug__texture.c,v 1.1 2019/10/29 20:20:04 nia Exp $
-
-Needs alloca definition.
-
---- src/gallium/auxiliary/rbug/rbug_texture.c.orig	2019-10-24 16:13:03.000000000 +0000
-+++ src/gallium/auxiliary/rbug/rbug_texture.c
-@@ -36,6 +36,7 @@
- 
- #include "rbug_internal.h"
- #include "rbug_texture.h"
-+#include "c99_alloca.h"
- 
- int rbug_send_texture_list(struct rbug_connection *__con,
-                            uint32_t *__serial)
diff --git a/MesaLib/patches/patch-src_gallium_drivers_freedreno_freedreno__screen.c b/MesaLib/patches/patch-src_gallium_drivers_freedreno_freedreno__screen.c
deleted file mode 100644
index 184c627566..0000000000
--- a/MesaLib/patches/patch-src_gallium_drivers_freedreno_freedreno__screen.c
+++ /dev/null
@@ -1,30 +0,0 @@
-$NetBSD$
-
-sysinfo(2) is for Linux only
-
---- src/gallium/drivers/freedreno/freedreno_screen.c.orig	2021-12-01 19:04:14.000000000 +0000
-+++ src/gallium/drivers/freedreno/freedreno_screen.c
-@@ -43,7 +43,9 @@
- #include <stdio.h>
- #include <stdlib.h>
- #include "drm-uapi/drm_fourcc.h"
-+#if !defined(__NetBSD__)
- #include <sys/sysinfo.h>
-+#endif
- 
- #include "freedreno_fence.h"
- #include "freedreno_perfetto.h"
-@@ -1020,9 +1022,13 @@ fd_screen_create(struct fd_device *dev, 
-    driParseConfigFiles(config->options, config->options_info, 0, "msm",
-                        NULL, fd_dev_name(screen->dev_id), NULL, 0, NULL, 0);
- 
-+#if defined(__NetBSD__)
-+   screen->ram_size = 512 * 1024 * 1024; /* XXX should use sysctl hw.physmem64 here */
-+#else
-    struct sysinfo si;
-    sysinfo(&si);
-    screen->ram_size = si.totalram;
-+#endif
- 
-    DBG("Pipe Info:");
-    DBG(" GPU-id:          %s", fd_dev_name(screen->dev_id));
diff --git a/MesaLib/patches/patch-src_gallium_drivers_freedreno_freedreno__util.h b/MesaLib/patches/patch-src_gallium_drivers_freedreno_freedreno__util.h
deleted file mode 100644
index 39e820af6a..0000000000
--- a/MesaLib/patches/patch-src_gallium_drivers_freedreno_freedreno__util.h
+++ /dev/null
@@ -1,31 +0,0 @@
-$NetBSD$
-
-gettid() is linux-specific
-
---- src/gallium/drivers/freedreno/freedreno_util.h.orig	2022-01-12 21:32:28.000000000 +0000
-+++ src/gallium/drivers/freedreno/freedreno_util.h
-@@ -108,6 +108,7 @@ extern bool fd_binning_enabled;
- #include <sys/types.h>
- #include <sys/syscall.h>
- 
-+#if defined(__linux__)
- #define DBG(fmt, ...)                                                          \
-    do {                                                                        \
-       if (FD_DBG(MSGS))                                                        \
-@@ -115,6 +116,16 @@ extern bool fd_binning_enabled;
-                                         __FUNCTION__, __LINE__,                \
-                                         ##__VA_ARGS__);                        \
-    } while (0)
-+#else
-+#define DBG(fmt, ...)                                                          \
-+   do {                                                                        \
-+      if (FD_DBG(MSGS))                                                        \
-+         mesa_logi("%s:%d: " fmt,                                              \
-+                                        __FUNCTION__, __LINE__,                \
-+                                        ##__VA_ARGS__);                        \
-+   } while (0)
-+#endif
-+
- 
- #define perf_debug_message(debug, type, ...)                                   \
-    do {                                                                        \
diff --git a/MesaLib/patches/patch-src_gallium_drivers_llvmpipe_lp__memory.c b/MesaLib/patches/patch-src_gallium_drivers_llvmpipe_lp__memory.c
deleted file mode 100644
index 9a38fd348c..0000000000
--- a/MesaLib/patches/patch-src_gallium_drivers_llvmpipe_lp__memory.c
+++ /dev/null
@@ -1,23 +0,0 @@
-$NetBSD: patch-src_gallium_drivers_llvmpipe_lp__memory.c,v 1.1 2020/03/08 10:35:03 tnn Exp $
-
-Force the symbol into data rather than bss to work around linking
-problem on OS X.
-
-Undefined symbols for architecture x86_64:
-  "_lp_dummy_tile", referenced from:
-      _lp_rast_create in libllvmpipe.a(lp_rast.c.o)
-      _llvmpipe_launch_grid in libllvmpipe.a(lp_state_cs.c.o)
-      _lp_setup_set_fragment_sampler_views in libllvmpipe.a(lp_setup.c.o)
-
---- src/gallium/drivers/llvmpipe/lp_memory.c.orig	2020-03-05 21:34:31.000000000 +0000
-+++ src/gallium/drivers/llvmpipe/lp_memory.c
-@@ -32,5 +32,9 @@
- /* A single dummy tile used in a couple of out-of-memory situations. 
-  */
- PIPE_ALIGN_VAR(LP_MIN_VECTOR_ALIGN)
-+#ifdef __APPLE__
-+uint8_t lp_dummy_tile[TILE_SIZE * TILE_SIZE * 4] = { 0 };
-+#else
- uint8_t lp_dummy_tile[TILE_SIZE * TILE_SIZE * 4];
-+#endif
- 
diff --git a/MesaLib/patches/patch-src_gallium_drivers_nouveau_nouveau__vp3__video.c b/MesaLib/patches/patch-src_gallium_drivers_nouveau_nouveau__vp3__video.c
deleted file mode 100644
index 7b310b3922..0000000000
--- a/MesaLib/patches/patch-src_gallium_drivers_nouveau_nouveau__vp3__video.c
+++ /dev/null
@@ -1,18 +0,0 @@
-$NetBSD: patch-src_gallium_drivers_nouveau_nouveau__vp3__video.c,v 1.2 2019/08/21 13:35:28 nia Exp $
-
-Fix build on platforms without close-on-exec.
-
---- src/gallium/drivers/nouveau/nouveau_vp3_video.c.orig	2017-02-13 11:55:49.000000000 +0000
-+++ src/gallium/drivers/nouveau/nouveau_vp3_video.c
-@@ -294,7 +294,11 @@ nouveau_vp3_load_firmware(struct nouveau
-    if (nouveau_bo_map(dec->fw_bo, NOUVEAU_BO_WR, dec->client))
-       return 1;
- 
-+#ifdef O_CLOEXEC
-    fd = open(path, O_RDONLY | O_CLOEXEC);
-+#else
-+   fd = open(path, O_RDONLY);
-+#endif
-    if (fd < 0) {
-       fprintf(stderr, "opening firmware file %s failed: %m\n", path);
-       return 1;
diff --git a/MesaLib/patches/patch-src_gallium_drivers_nouveau_nv50_nv84__video.c b/MesaLib/patches/patch-src_gallium_drivers_nouveau_nv50_nv84__video.c
deleted file mode 100644
index ae714d1470..0000000000
--- a/MesaLib/patches/patch-src_gallium_drivers_nouveau_nv50_nv84__video.c
+++ /dev/null
@@ -1,18 +0,0 @@
-$NetBSD: patch-src_gallium_drivers_nouveau_nv50_nv84__video.c,v 1.2 2019/08/21 13:35:28 nia Exp $
-
-Fix build on platforms without close-on-exec.
-
---- src/gallium/drivers/nouveau/nv50/nv84_video.c.orig	2015-03-21 00:51:18.000000000 +0000
-+++ src/gallium/drivers/nouveau/nv50/nv84_video.c
-@@ -34,7 +34,11 @@
- static int
- nv84_copy_firmware(const char *path, void *dest, ssize_t len)
- {
-+#ifdef O_CLOEXEC
-    int fd = open(path, O_RDONLY | O_CLOEXEC);
-+#else
-+   int fd = open(path, O_RDONLY);
-+#endif
-    ssize_t r;
-    if (fd < 0) {
-       fprintf(stderr, "opening firmware file %s failed: %m\n", path);
diff --git a/MesaLib/patches/patch-src_gallium_drivers_vc4_vc4__bufmgr.c b/MesaLib/patches/patch-src_gallium_drivers_vc4_vc4__bufmgr.c
deleted file mode 100644
index 60fd41f962..0000000000
--- a/MesaLib/patches/patch-src_gallium_drivers_vc4_vc4__bufmgr.c
+++ /dev/null
@@ -1,18 +0,0 @@
-$NetBSD: patch-src_gallium_drivers_vc4_vc4__bufmgr.c,v 1.1 2019/08/21 13:35:28 nia Exp $
-
-Patch from FreeBSD ports graphics/mesa-dri 17.1.0
-
-# define ETIME as ETIMEOUT same as in intel driver
-
---- src/gallium/drivers/vc4/vc4_bufmgr.c.orig	2017-05-25 07:13:13.000000000 +0000
-+++ src/gallium/drivers/vc4/vc4_bufmgr.c
-@@ -27,6 +27,9 @@
- #include <fcntl.h>
- #include <xf86drm.h>
- #include <xf86drmMode.h>
-+#ifndef ETIME
-+#define ETIME ETIMEDOUT
-+#endif
- 
- #include "util/u_hash_table.h"
- #include "util/u_memory.h"
diff --git a/MesaLib/patches/patch-src_gallium_frontends_clover_util_range.hpp b/MesaLib/patches/patch-src_gallium_frontends_clover_util_range.hpp
deleted file mode 100644
index 57522e575a..0000000000
--- a/MesaLib/patches/patch-src_gallium_frontends_clover_util_range.hpp
+++ /dev/null
@@ -1,40 +0,0 @@
-$NetBSD$
-
-From FreeBSD ports for mesa 17.1.10:
-
-From b95533b981af9a6687b41418e7cc2a5652fc2bdb Mon Sep 17 00:00:00 2001
-Date: Fri, 7 Mar 2014 15:16:08 +0100
-Subject: [PATCH 3/3] Work around for clang 3.4 which fails to build Clover
-
-See:
-  https://bugs.freedesktop.org/show_bug.cgi?id=74098#c3
-
---- src/gallium/frontends/clover/util/range.hpp.orig	2021-07-14 20:04:53.703990500 +0000
-+++ src/gallium/frontends/clover/util/range.hpp
-@@ -362,6 +362,14 @@ namespace clover {
-       return { i, i + n };
-    }
- 
-+#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__DragonFly__)
-+   namespace detail {
-+      template<typename T>
-+      using fixup_function_type =
-+         typename std::conditional<std::is_function<T>::value, T &, T>::type;
-+   }
-+#endif
-+
-    ///
-    /// Create a range by transforming the contents of a number of
-    /// source ranges \a rs element-wise using a provided functor \a f.
-@@ -369,7 +377,11 @@ namespace clover {
-    /// \sa adaptor_range.
-    ///
-    template<typename F, typename... Rs>
-+#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__DragonFly__)
-+   adaptor_range<detail::fixup_function_type<F>, Rs...>
-+#else
-    adaptor_range<F, Rs...>
-+#endif
-    map(F &&f, Rs &&... rs) {
-       return { std::forward<F>(f), std::forward<Rs>(rs)... };
-    }
diff --git a/MesaLib/patches/patch-src_gallium_frontends_osmesa_osmesa.c b/MesaLib/patches/patch-src_gallium_frontends_osmesa_osmesa.c
deleted file mode 100644
index b050cad3c7..0000000000
--- a/MesaLib/patches/patch-src_gallium_frontends_osmesa_osmesa.c
+++ /dev/null
@@ -1,29 +0,0 @@
-$NetBSD$
-
-atexit() is not a good idea in shared libraries.
-
---- src/gallium/frontends/osmesa/osmesa.c.orig	2021-07-14 20:04:55.420007000 +0000
-+++ src/gallium/frontends/osmesa/osmesa.c
-@@ -134,7 +134,11 @@ osmesa_st_get_param(struct st_manager *s
- static struct st_manager *stmgr = NULL;
- static struct st_api *stapi = NULL;
- 
-+#if defined(HAVE_NOATEXIT)
-+static void __attribute__((__destructor__))
-+#else
- static void
-+#endif
- destroy_st_manager(void)
- {
-    if (stmgr) {
-@@ -151,8 +155,10 @@ destroy_st_manager(void)
- static void
- create_st_manager(void)
- {
-+#if !defined(HAVE_NOATEXIT)
-    if (atexit(destroy_st_manager) != 0)
-       return;
-+#endif
- 
-    stmgr = CALLOC_STRUCT(st_manager);
-    if (stmgr) {
diff --git a/MesaLib/patches/patch-src_glx_dri__common.c b/MesaLib/patches/patch-src_glx_dri__common.c
deleted file mode 100644
index 70264bd596..0000000000
--- a/MesaLib/patches/patch-src_glx_dri__common.c
+++ /dev/null
@@ -1,41 +0,0 @@
-$NetBSD$
-
-atexit() is not a good idea in shared libraries.
-
-FreeBSD reported atexit bug for 10.6:
-https://bugs.freedesktop.org/show_bug.cgi?id=91869
-
---- src/glx/dri_common.c.orig	2021-07-14 20:04:55.743010300 +0000
-+++ src/glx/dri_common.c
-@@ -690,9 +690,19 @@ static struct driver_config_entry *drive
- /* Called as an atexit function. Otherwise, this would have to be called with
-  * driver_config_mutex locked.
-  */
-+#if defined(HAVE_NOATEXIT)
-+static Bool e_next_ever_null = False;
-+
-+static void __attribute__((__destructor__))
-+#else
- static void
-+#endif
- clear_driver_config_cache()
- {
-+#if defined(HAVE_NOATEXIT)
-+   if (!e_next_ever_null)
-+      return;
-+#endif
-    while (driver_config_cache) {
-       struct driver_config_entry *e = driver_config_cache;
-       driver_config_cache = e->next;
-@@ -777,7 +787,11 @@ glXGetDriverConfig(const char *driverNam
-    driver_config_cache = e;
- 
-    if (!e->next)
-+#if defined(HAVE_NOATEXIT)
-+      e_next_ever_null = True;
-+#else
-       atexit(clear_driver_config_cache);
-+#endif
- 
- out:
-    pthread_mutex_unlock(&driver_config_mutex);
diff --git a/MesaLib/patches/patch-src_glx_dri__common.h b/MesaLib/patches/patch-src_glx_dri__common.h
deleted file mode 100644
index 6cb9109827..0000000000
--- a/MesaLib/patches/patch-src_glx_dri__common.h
+++ /dev/null
@@ -1,17 +0,0 @@
-$NetBSD: patch-src_glx_dri__common.h,v 1.1 2019/08/21 13:35:28 nia Exp $
-
-Fix error on OSX.
-
---- src/glx/dri_common.h.orig	2019-01-17 11:26:23.000000000 +0000
-+++ src/glx/dri_common.h
-@@ -55,8 +55,10 @@ extern struct glx_config *driConvertConf
- 
- extern void driDestroyConfigs(const __DRIconfig **configs);
- 
-+#if !defined(GLX_USE_APPLEGL)
- extern __GLXDRIdrawable *
- driFetchDrawable(struct glx_context *gc, GLXDrawable glxDrawable);
-+#endif
- 
- extern void
- driReleaseDrawables(struct glx_context *gc);
diff --git a/MesaLib/patches/patch-src_glx_glxclient.h b/MesaLib/patches/patch-src_glx_glxclient.h
deleted file mode 100644
index 5134715841..0000000000
--- a/MesaLib/patches/patch-src_glx_glxclient.h
+++ /dev/null
@@ -1,19 +0,0 @@
-$NetBSD: patch-src_glx_glxclient.h,v 1.2 2019/08/21 13:35:28 nia Exp $
-
-NetBSD only supports zero-initialized initial-exec tls variables in conjuction
-with dlopen(3) at the moment.
-
---- src/glx/glxclient.h.orig	2021-08-04 18:49:29.150474000 +0000
-+++ src/glx/glxclient.h
-@@ -648,7 +648,11 @@ extern void __glXSetCurrentContext(struc
- 
- extern __THREAD_INITIAL_EXEC void *__glX_tls_Context;
- 
-+#if defined(__NetBSD__)
-+#  define __glXGetCurrentContext() (likely(__glX_tls_Context) ? __glX_tls_Context : (void*)&dummyContext)
-+#else
- #  define __glXGetCurrentContext() __glX_tls_Context
-+#endif
- 
- # else
- 
diff --git a/MesaLib/patches/patch-src_glx_glxcurrent.c b/MesaLib/patches/patch-src_glx_glxcurrent.c
deleted file mode 100644
index db8404a1d6..0000000000
--- a/MesaLib/patches/patch-src_glx_glxcurrent.c
+++ /dev/null
@@ -1,42 +0,0 @@
-$NetBSD: patch-src_glx_glxcurrent.c,v 1.4 2020/02/19 21:03:41 tnn Exp $
-
-Interim fix for toolchain/50277.
-
-NetBSD only supports zero-initialized initial-exec tls variables in conjuction
-with dlopen(3) at the moment.
-
---- src/glx/glxcurrent.c.orig	2021-08-04 18:49:29.150474000 +0000
-+++ src/glx/glxcurrent.c
-@@ -40,6 +40,20 @@
- #include "glx_error.h"
- 
- /*
-+ * MASSIVE KLUDGE!
-+ * We need these to not be extern in libGL.so because of
-+ * PR toolchain/50277
-+ */
-+#if defined(USE_ELF_TLS) && defined(__NetBSD__)
-+#define u_current_table _glapi_tls_Dispatch
-+#define u_current_context _glapi_tls_Context
-+_X_EXPORT __thread struct _glapi_table *u_current_table
-+    __attribute__((tls_model("initial-exec"))) = NULL;
-+_X_EXPORT __thread void * u_current_context
-+    __attribute__((tls_model("initial-exec")));
-+#endif
-+
-+/*
- ** We setup some dummy structures here so that the API can be used
- ** even if no context is current.
- */
-@@ -76,7 +90,11 @@ _X_HIDDEN pthread_mutex_t __glXmutex = P
-  * \b never be \c NULL.  This is important!  Because of this
-  * \c __glXGetCurrentContext can be implemented as trivial macro.
-  */
-+#if defined(__NetBSD__)
-+__THREAD_INITIAL_EXEC void *__glX_tls_Context = NULL; /* non-zero initializers not supported with dlopen */
-+#else
- __THREAD_INITIAL_EXEC void *__glX_tls_Context = &dummyContext;
-+#endif
- 
- _X_HIDDEN void
- __glXSetCurrentContext(struct glx_context * c)
diff --git a/MesaLib/patches/patch-src_glx_glxext.c b/MesaLib/patches/patch-src_glx_glxext.c
deleted file mode 100644
index 59990a9340..0000000000
--- a/MesaLib/patches/patch-src_glx_glxext.c
+++ /dev/null
@@ -1,39 +0,0 @@
-$NetBSD$
-
-* Patch from FreeBSD ports graphics/mesa-dri 18.0.0
-
-# work-around for https://bugs.freedesktop.org/show_bug.cgi?id=100627
-
-* Extended to DragonFly and NetBSD.  Other OSes might need this as well.
-
-* Added logging statements to note dri3 initialization being invoked.
-
---- src/glx/glxext.c.orig	2021-07-14 20:04:55.750010300 +0000
-+++ src/glx/glxext.c
-@@ -819,7 +819,11 @@ AllocAndFetchScreenConfigs(Display * dpy
- #if defined(GLX_USE_DRM)
- #if defined(HAVE_DRI3)
-       if (priv->dri3Display)
-+         InfoMessageF("glxext.c: AllocAndFetchScreenConfigs: priv->dri3Display\n");
-+      if (priv->dri3Display)
-          psc = (*priv->dri3Display->createScreen) (i, priv);
-+      if (psc != NULL && priv->dri3Display)
-+         InfoMessageF("glxext.c: AllocAndFetchScreenConfigs: psc set by priv->dri3Display\n");
- #endif /* HAVE_DRI3 */
-       if (psc == NULL && priv->dri2Display)
- 	 psc = (*priv->dri2Display->createScreen) (i, priv);
-@@ -925,8 +929,13 @@ __glXInitialize(Display * dpy)
- #if defined(GLX_USE_DRM)
-    if (glx_direct && glx_accel) {
- #if defined(HAVE_DRI3)
--      if (!env_var_as_boolean("LIBGL_DRI3_DISABLE", false))
-+#if ((defined(__FreeBSD__) || defined(__FreeBSD_kernel__)) && !defined(__DRM_NEXT__)) || defined(__DragonFly__) || defined(__NetBSD__)
-+      if (env_var_as_boolean("LIBGL_DRI3_ENABLE", false))
-+#endif
-+      if (!env_var_as_boolean("LIBGL_DRI3_DISABLE", false)) {
-+         InfoMessageF("glxext.c: __glxInitialize: dpyPriv->dri3Display = dri3_create_display\n");
-          dpyPriv->dri3Display = dri3_create_display(dpy);
-+      }
- #endif /* HAVE_DRI3 */
-       if (!env_var_as_boolean("LIBGL_DRI2_DISABLE", false))
-          dpyPriv->dri2Display = dri2CreateDisplay(dpy);
diff --git a/MesaLib/patches/patch-src_intel_compiler_brw__fs__bank__conflicts.cpp b/MesaLib/patches/patch-src_intel_compiler_brw__fs__bank__conflicts.cpp
deleted file mode 100644
index e51fe2a1f3..0000000000
--- a/MesaLib/patches/patch-src_intel_compiler_brw__fs__bank__conflicts.cpp
+++ /dev/null
@@ -1,23 +0,0 @@
-$NetBSD: patch-src_intel_compiler_brw__fs__bank__conflicts.cpp,v 1.1 2019/08/21 13:35:28 nia Exp $
-
-https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=225415
-FreeBSD Bugzilla: Bug 225415 graphics/mesa-dri: update to 18.0.0
-
-compiler/brw_fs_bank_conflicts.cpp:719:25: error: scalar initializer cannot be empty
-      vector_type s_p = {}, s_n = {};
-                        ^~
-compiler/brw_fs_bank_conflicts.cpp:719:35: error: scalar initializer cannot be empty
-      vector_type s_p = {}, s_n = {};
-                                  ^~
-
---- src/intel/compiler/brw_fs_bank_conflicts.cpp.orig	2018-02-09 02:17:59.000000000 +0000
-+++ src/intel/compiler/brw_fs_bank_conflicts.cpp
-@@ -716,7 +716,7 @@ namespace {
-                    const weight_vector_type &conflicts)
-    {
-       const unsigned m = DIV_ROUND_UP(conflicts.size, vector_width);
--      vector_type s_p = {}, s_n = {};
-+      vector_type s_p = {0}, s_n = {0};
- 
-       for (unsigned r = 0; r < m; r++) {
-          s_p = adds(s_p, mask(bank_mask_p.v[r], conflicts.v[r]));
diff --git a/MesaLib/patches/patch-src_intel_tools_aubinator__error__decode.c b/MesaLib/patches/patch-src_intel_tools_aubinator__error__decode.c
deleted file mode 100644
index 488212746b..0000000000
--- a/MesaLib/patches/patch-src_intel_tools_aubinator__error__decode.c
+++ /dev/null
@@ -1,19 +0,0 @@
-$NetBSD: patch-src_intel_tools_aubinator__error__decode.c,v 1.1 2019/08/21 13:35:28 nia Exp $
-
-Patch from FreeBSD ports graphics/mesa-dri 17.1.0
-
-# expose getline in FreeBSD's stdio.h
-#
-
---- src/intel/tools/aubinator_error_decode.c.orig	2017-05-25 07:13:13.000000000 +0000
-+++ src/intel/tools/aubinator_error_decode.c
-@@ -22,6 +22,9 @@
-  *
-  */
- 
-+#ifdef __FreeBSD__
-+#define _WITH_GETLINE
-+#endif
- #include <stdbool.h>
- #include <stdio.h>
- #include <stdlib.h>
diff --git a/MesaLib/patches/patch-src_mapi_entry__x86-64__tls.h b/MesaLib/patches/patch-src_mapi_entry__x86-64__tls.h
deleted file mode 100644
index 6302e9972c..0000000000
--- a/MesaLib/patches/patch-src_mapi_entry__x86-64__tls.h
+++ /dev/null
@@ -1,56 +0,0 @@
-$NetBSD$
-
-NetBSD only supports zero-initialized initial-exec tls variables in conjuction
-with dlopen(3) at the moment.
-
-table_noop_array is only defined for shared-glapi.
-es1api and es2api are not going to be patched for NetBSD.
-
---- src/mapi/entry_x86-64_tls.h.orig	2021-07-14 20:04:57.805030000 +0000
-+++ src/mapi/entry_x86-64_tls.h
-@@ -38,22 +38,34 @@
- #endif
- 
- __asm__(".text\n"
--        ".balign 32\n"
-+        ".balign 64\n"
-         "x86_64_entry_start:");
- 
- #define STUB_ASM_ENTRY(func)                             \
-    ".globl " func "\n"                                   \
-    ".type " func ", @function\n"                         \
--   ".balign 32\n"                                        \
-+   ".balign 64\n"                                        \
-    func ":"
- 
- #ifndef __ILP32__
- 
-+#if defined(__NetBSD__)
-+#define STUB_ASM_CODE(slot)                              \
-+   "movq " ENTRY_CURRENT_TABLE "@GOTTPOFF(%rip), %rax\n\t"  \
-+   "movq %fs:(%rax), %r11\n\t"                           \
-+   "testq %r11, %r11\n\t"                                \
-+   "je 1f\n\t"                                           \
-+   "jmp *(8 * " slot ")(%r11)\n\t"                       \
-+   "1:\n\t"                                              \
-+   "callq " ENTRY_CURRENT_TABLE_GET "@PLT\n\t"           \
-+   "jmp *(8 * " slot ")(%rax)"
-+#else
- #define STUB_ASM_CODE(slot)                              \
-    ENDBR                                                 \
-    "movq " ENTRY_CURRENT_TABLE "@GOTTPOFF(%rip), %rax\n\t"  \
-    "movq %fs:(%rax), %r11\n\t"                           \
-    "jmp *(8 * " slot ")(%r11)"
-+#endif
- 
- #else
- 
-@@ -85,7 +97,7 @@ x86_64_entry_start[] HIDDEN;
- mapi_func
- entry_get_public(int slot)
- {
--   return (mapi_func) (x86_64_entry_start + slot * 32);
-+   return (mapi_func) (x86_64_entry_start + slot * 64);
- }
- 
- void
diff --git a/MesaLib/patches/patch-src_mapi_entry__x86__tls.h b/MesaLib/patches/patch-src_mapi_entry__x86__tls.h
deleted file mode 100644
index c1aa21045c..0000000000
--- a/MesaLib/patches/patch-src_mapi_entry__x86__tls.h
+++ /dev/null
@@ -1,53 +0,0 @@
-$NetBSD$
-
-NetBSD only supports zero-initialized initial-exec tls variables in conjuction
-with dlopen(3) at the moment.
-
---- src/mapi/entry_x86_tls.h.orig	2021-07-14 20:04:57.805030000 +0000
-+++ src/mapi/entry_x86_tls.h
-@@ -51,6 +51,25 @@ __asm__("x86_current_tls:\n\t"
- 	"movl " ENTRY_CURRENT_TABLE "@GOTNTPOFF(%eax), %eax\n\t"
- 	"ret");
- 
-+#if defined(__NetBSD__)
-+__asm__("x86_current_table_helper:\n\t"
-+	"call 1f\n\t"
-+	"1:\n\t"
-+	"popl %eax\n\t"
-+	"addl $_GLOBAL_OFFSET_TABLE_+[.-1b], %eax\n\t"
-+	"movl " ENTRY_CURRENT_TABLE "@GOTNTPOFF(%eax), %eax\n\t"
-+	"movl %gs:(%eax), %eax\n\t"
-+	"testl %eax, %eax\n\t"
-+	"je 2f\n\t"
-+	"ret\n\t"
-+	"2:\n\t"
-+	"call 3f\n\t"
-+	"3:\n\t"
-+	"popl %eax\n\t"
-+	"addl $_GLOBAL_OFFSET_TABLE_+[.-3b], %eax\n\t"
-+	"jmp *" ENTRY_CURRENT_TABLE_GET "@GOT(%eax)");
-+#endif
-+
- #ifndef GLX_X86_READONLY_TEXT
- __asm__(".section wtext, \"awx\", @progbits");
- #endif /* GLX_X86_READONLY_TEXT */
-@@ -64,6 +83,11 @@ __asm__(".balign 16\n"
-    ".balign 16\n"                \
-    func ":"
- 
-+#if defined(__NetBSD__)
-+#define STUB_ASM_CODE(slot)                                 \
-+   "call x86_current_table_helper\n\t"                      \
-+   "jmp *(4 * " slot ")(%eax)"
-+#else
- #define STUB_ASM_CODE(slot)                                 \
-    ENDBR                                                    \
-    "call 1f\n"                                              \
-@@ -73,6 +97,7 @@ __asm__(".balign 16\n"
-    "movl " ENTRY_CURRENT_TABLE "@GOTNTPOFF(%eax), %eax\n\t" \
-    "movl %gs:(%eax), %eax\n\t"                              \
-    "jmp *(4 * " slot ")(%eax)"
-+#endif
- 
- #define MAPI_TMP_STUB_ASM_GCC
- #include "mapi_tmp.h"
diff --git a/MesaLib/patches/patch-src_mapi_u__current.c b/MesaLib/patches/patch-src_mapi_u__current.c
deleted file mode 100644
index 8684e3f916..0000000000
--- a/MesaLib/patches/patch-src_mapi_u__current.c
+++ /dev/null
@@ -1,31 +0,0 @@
-$NetBSD$
-
-NetBSD only supports zero-initialized initial-exec tls variables in conjuction
-with dlopen(3) at the moment.
-
---- src/mapi/u_current.c.orig	2021-08-04 18:49:29.246474300 +0000
-+++ src/mapi/u_current.c
-@@ -101,7 +101,11 @@ extern void (*__glapi_noop_table[])(void
- #if defined(USE_ELF_TLS)
- 
- __THREAD_INITIAL_EXEC struct _glapi_table *u_current_table
-+#if defined(__NetBSD__)
-+    = NULL; /* non-zero initializers not supported with dlopen */
-+#else
-     = (struct _glapi_table *) table_noop_array;
-+#endif
- 
- __THREAD_INITIAL_EXEC void *u_current_context;
- 
-@@ -251,7 +255,11 @@ struct _glapi_table *
- u_current_get_table_internal(void)
- {
- #if defined(USE_ELF_TLS)
-+#  if defined(__NetBSD__)
-+    return (likely(u_current_table) ? u_current_table : (struct _glapi_table *) table_noop_array);
-+#  else
-    return u_current_table;
-+#  endif
- #else
-    if (ThreadSafe)
-       return (struct _glapi_table *) tss_get(u_current_table_tsd);
diff --git a/MesaLib/patches/patch-src_mesa_main_context.c b/MesaLib/patches/patch-src_mesa_main_context.c
deleted file mode 100644
index c2725e8007..0000000000
--- a/MesaLib/patches/patch-src_mesa_main_context.c
+++ /dev/null
@@ -1,28 +0,0 @@
-$NetBSD$
-
-atexit() is not a good idea in shared libraries.
-
---- src/mesa/main/context.c.orig	2021-07-14 20:04:58.296035000 +0000
-+++ src/mesa/main/context.c
-@@ -324,7 +324,11 @@ _mesa_destroy_visual( struct gl_config *
-  * Calls all the various one-time-fini functions in Mesa
-  */
- 
-+#if defined(HAVE_NOATEXIT)
-+static void __attribute__((__destructor__))
-+#else
- static void
-+#endif
- one_time_fini(void)
- {
-    glsl_type_singleton_decref();
-@@ -357,7 +361,9 @@ one_time_init(void)
-       _mesa_ubyte_to_float_color_tab[i] = (float) i / 255.0F;
-    }
- 
-+#if !defined(HAVE_NOATEXIT)
-    atexit(one_time_fini);
-+#endif
- 
- #if defined(DEBUG)
-    if (MESA_VERBOSE != 0) {
diff --git a/MesaLib/patches/patch-src_mesa_main_extensions.c b/MesaLib/patches/patch-src_mesa_main_extensions.c
deleted file mode 100644
index 8d37e38e72..0000000000
--- a/MesaLib/patches/patch-src_mesa_main_extensions.c
+++ /dev/null
@@ -1,31 +0,0 @@
-$NetBSD$
-
-atexit() is not a good idea in shared libraries.
-
-FreeBSD reported atexit bug for 10.6:
-https://bugs.freedesktop.org/show_bug.cgi?id=91869
-
---- src/mesa/main/extensions.c.orig	2021-07-14 20:04:58.316035000 +0000
-+++ src/mesa/main/extensions.c
-@@ -213,7 +213,11 @@ set_extension(struct gl_extensions *ext,
-  * This string is allocated early during the first context creation by
-  * _mesa_one_time_init_extension_overrides.
-  */
-+#if defined(HAVE_NOATEXIT)
-+static void __attribute__((__destructor__))
-+#else
- static void
-+#endif
- free_unknown_extensions_strings(void)
- {
-    free(unrecognized_extensions.env);
-@@ -304,7 +308,9 @@ _mesa_one_time_init_extension_overrides(
-       free(env);
-    } else {
-       unrecognized_extensions.env = env;
-+#if !defined(HAVE_NOATEXIT)
-       atexit(free_unknown_extensions_strings);
-+#endif
-    }
- }
- 
diff --git a/MesaLib/patches/patch-src_mesa_main_formats.c b/MesaLib/patches/patch-src_mesa_main_formats.c
deleted file mode 100644
index 0cd18ebae5..0000000000
--- a/MesaLib/patches/patch-src_mesa_main_formats.c
+++ /dev/null
@@ -1,28 +0,0 @@
-$NetBSD$
-
-atexit() is not a good idea in shared libraries.
-
---- src/mesa/main/formats.c.orig	2021-07-14 20:04:58.323035200 +0000
-+++ src/mesa/main/formats.c
-@@ -451,7 +451,11 @@ _mesa_format_to_array_format(mesa_format
- static struct hash_table *format_array_format_table;
- static once_flag format_array_format_table_exists = ONCE_FLAG_INIT;
- 
-+#if defined(HAVE_NOATEXIT)
-+static void __attribute__((__destructor__))
-+#else
- static void
-+#endif
- format_array_format_table_destroy(void)
- {
-    _mesa_hash_table_destroy(format_array_format_table, NULL);
-@@ -496,7 +500,9 @@ format_array_format_table_init(void)
-                                          (void *)(intptr_t)f);
-    }
- 
-+#if !defined(HAVE_NOATEXIT)
-    atexit(format_array_format_table_destroy);
-+#endif
- }
- 
- mesa_format
diff --git a/MesaLib/patches/patch-src_mesa_main_shader__query.cpp b/MesaLib/patches/patch-src_mesa_main_shader__query.cpp
deleted file mode 100644
index 081728ec92..0000000000
--- a/MesaLib/patches/patch-src_mesa_main_shader__query.cpp
+++ /dev/null
@@ -1,58 +0,0 @@
-$NetBSD: patch-src_mesa_main_shader__query.cpp,v 1.2 2019/08/21 13:35:28 nia Exp $
-
-https://bugs.freedesktop.org/show_bug.cgi?id=66346
-
-From c4a1fec68d2508ff0c4fc2831465aca8c4ca783a Mon Sep 17 00:00:00 2001
-From: Julien Isorce <j.isorce%samsung.com@localhost>
-Date: Wed, 22 Apr 2015 23:04:42 +0100
-Subject: [PATCH 1/2] shader_query: convert GLhandleARB to uintptr_t before
- troncating to GLuint
-
-Fixes compiler error on OSX as GLhandleARB is defined as void* if __APPLE__.
-
-https://bugs.freedesktop.org/show_bug.cgi?id=66346
----
- src/mesa/main/shader_query.cpp | 6 +++---
- 1 file changed, 3 insertions(+), 3 deletions(-)
-
---- src/mesa/main/shader_query.cpp.orig	2016-11-10 22:05:17.000000000 +0000
-+++ src/mesa/main/shader_query.cpp
-@@ -70,7 +70,12 @@ _mesa_BindAttribLocation(GLuint program,
-    GET_CURRENT_CONTEXT(ctx);
- 
-    struct gl_shader_program *const shProg =
-+#if defined(__APPLE__)
-+      _mesa_lookup_shader_program_err(ctx, (GLuint)(uintptr_t)program, "glBindAttribLocation");
-+#else
-       _mesa_lookup_shader_program_err(ctx, program, "glBindAttribLocation");
-+#endif
-+
-    if (!shProg)
-       return;
- 
-@@ -114,7 +119,12 @@ _mesa_GetActiveAttrib(GLuint program, GL
-       return;
-    }
- 
-+#if defined(__APPLE__)
-+   shProg = _mesa_lookup_shader_program_err(ctx, (GLuint)(uintptr_t)program, "glGetActiveAttrib");
-+#else
-    shProg = _mesa_lookup_shader_program_err(ctx, program, "glGetActiveAttrib");
-+#endif
-+
-    if (!shProg)
-       return;
- 
-@@ -159,7 +169,12 @@ _mesa_GetAttribLocation(GLuint program,
- {
-    GET_CURRENT_CONTEXT(ctx);
-    struct gl_shader_program *const shProg =
-+
-+#if defined(__APPLE__)
-+      _mesa_lookup_shader_program_err(ctx, (GLuint)(uintptr_t)program, "glGetAttribLocation");
-+#else
-       _mesa_lookup_shader_program_err(ctx, program, "glGetAttribLocation");
-+#endif
- 
-    if (!shProg) {
-       return -1;
diff --git a/MesaLib/patches/patch-src_mesa_x86_common__x86.c b/MesaLib/patches/patch-src_mesa_x86_common__x86.c
deleted file mode 100644
index 8858cac199..0000000000
--- a/MesaLib/patches/patch-src_mesa_x86_common__x86.c
+++ /dev/null
@@ -1,24 +0,0 @@
-$NetBSD: patch-src_mesa_x86_common__x86.c,v 1.3 2019/08/21 13:35:28 nia Exp $
-
-DragonFly support.
-
---- src/mesa/x86/common_x86.c.orig	2017-05-10 14:13:58.000000000 +0000
-+++ src/mesa/x86/common_x86.c
-@@ -35,7 +35,7 @@
-  */
- 
- /* XXX these includes should probably go into imports.h or glheader.h */
--#if defined(USE_SSE_ASM) && defined(__FreeBSD__)
-+#if defined(USE_SSE_ASM) && (defined(__FreeBSD__) || defined(__DragonFly__))
- #include <sys/types.h>
- #include <sys/sysctl.h>
- #endif
-@@ -125,7 +125,7 @@ static LONG WINAPI ExceptionFilter(LPEXC
-  */
- void _mesa_check_os_sse_support( void )
- {
--#if defined(__FreeBSD__)
-+#if defined(__FreeBSD__) || defined(__DragonFly__)
-    {
-       int ret, enabled;
-       unsigned int len;
diff --git a/MesaLib/patches/patch-src_util_build__id.c b/MesaLib/patches/patch-src_util_build__id.c
deleted file mode 100644
index 647e40d719..0000000000
--- a/MesaLib/patches/patch-src_util_build__id.c
+++ /dev/null
@@ -1,25 +0,0 @@
-$NetBSD: patch-src_util_build__id.c,v 1.1 2019/08/21 13:35:28 nia Exp $
-
-Patch taken from FreeBSD ports graphics/mesa-dri mesa 17.1.0.
-
-# Elf_ doesn't exist, use Elf32_ or Elf64_.
-
---- src/util/build_id.c.orig	2018-09-07 21:18:07.000000000 +0000
-+++ src/util/build_id.c
-@@ -35,7 +35,15 @@
- #endif
- 
- #ifndef ElfW
--#define ElfW(type) Elf_##type
-+# if defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__DragonFly__)
-+#  ifdef __LP64__
-+#    define ElfW(type) Elf64_##type
-+#  else
-+#    define ElfW(type) Elf32_##type
-+#  endif /* __LP64__ */
-+#  else
-+#    define ElfW(type) Elf_##type
-+#  endif
- #endif
- 
- struct build_id_note {
diff --git a/MesaLib/patches/patch-src_util_disk__cache__os.c b/MesaLib/patches/patch-src_util_disk__cache__os.c
deleted file mode 100644
index 4a03f51a97..0000000000
--- a/MesaLib/patches/patch-src_util_disk__cache__os.c
+++ /dev/null
@@ -1,18 +0,0 @@
-$NetBSD$
-
---- src/util/disk_cache_os.c.orig	2021-12-29 21:05:19.000000000 +0000
-+++ src/util/disk_cache_os.c
-@@ -167,9 +167,13 @@ choose_lru_file_matching(const char *dir
-    /* First count the number of files in the directory */
-    unsigned total_file_count = 0;
-    while ((dir_ent = readdir(dir)) != NULL) {
-+#if defined(DT_REG)
-       if (dir_ent->d_type == DT_REG) { /* If the entry is a regular file */
-          total_file_count++;
-       }
-+#else
-+      total_file_count++;
-+#endif
-    }
- 
-    /* Reset to the start of the directory */
diff --git a/MesaLib/patches/patch-src_util_libsync.h b/MesaLib/patches/patch-src_util_libsync.h
deleted file mode 100644
index 8f22aad382..0000000000
--- a/MesaLib/patches/patch-src_util_libsync.h
+++ /dev/null
@@ -1,16 +0,0 @@
-$NetBSD$
-
-sys/ioccom.h for _IOWR
-
---- src/util/libsync.h.orig	2022-01-12 21:32:28.000000000 +0000
-+++ src/util/libsync.h
-@@ -34,6 +34,9 @@
- #include <stdint.h>
- #include <string.h>
- #include <sys/ioctl.h>
-+#ifdef __sun__
-+#include <sys/ioccom.h>
-+#endif
- #include <sys/poll.h>
- #include <unistd.h>
- 
diff --git a/MesaLib/patches/patch-src_util_strndup.h b/MesaLib/patches/patch-src_util_strndup.h
deleted file mode 100644
index 0151a3596f..0000000000
--- a/MesaLib/patches/patch-src_util_strndup.h
+++ /dev/null
@@ -1,15 +0,0 @@
-$NetBSD: patch-src_util_strndup.h,v 1.2 2019/08/21 13:35:28 nia Exp $
-
-Provide compat strndup for older Darwin.
-
---- src/util/strndup.h.orig	2017-05-10 14:13:58.000000000 +0000
-+++ src/util/strndup.h
-@@ -24,7 +24,7 @@
- #ifndef STRNDUP_H
- #define STRNDUP_H
- 
--#if defined(_WIN32)
-+#if defined(_WIN32) || (defined(__APPLE__) && __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__-0 < 1070)
- 
- #include <stdlib.h> // size_t
- #include <string.h>
diff --git a/MesaLib/patches/patch-src_util_u__atomic.h b/MesaLib/patches/patch-src_util_u__atomic.h
deleted file mode 100644
index 58a6aef473..0000000000
--- a/MesaLib/patches/patch-src_util_u__atomic.h
+++ /dev/null
@@ -1,15 +0,0 @@
-$NetBSD: patch-src_util_u__atomic.h,v 1.2 2019/08/21 13:35:28 nia Exp $
-
-Fix SunOS atomic macros.
-
---- src/util/u_atomic.h.orig	2018-09-07 21:18:07.000000000 +0000
-+++ src/util/u_atomic.h
-@@ -20,7 +20,7 @@
-  * locally coded assembly, compiler intrinsic or ultimately a
-  * mutex-based implementation.
-  */
--#if defined(__sun)
-+#if defined(__sun) && !defined(__GNUC__)
- #define PIPE_ATOMIC_OS_SOLARIS
- #elif defined(_MSC_VER)
- #define PIPE_ATOMIC_MSVC_INTRINSIC
diff --git a/MesaLib/patches/patch-src_util_u__printf.h b/MesaLib/patches/patch-src_util_u__printf.h
deleted file mode 100644
index 760d3eeb12..0000000000
--- a/MesaLib/patches/patch-src_util_u__printf.h
+++ /dev/null
@@ -1,14 +0,0 @@
-$NetBSD$
-
-include cstdarg for va_list
-
---- src/util/u_printf.h.orig	2021-12-01 19:04:14.000000000 +0000
-+++ src/util/u_printf.h
-@@ -25,6 +25,7 @@
- #ifdef __cplusplus
- 
- #include <string>
-+#include <cstdarg>
- 
- /* find next valid printf specifier in a C++ std::string */
- size_t util_printf_next_spec_pos(const std::string &s, size_t pos);
diff --git a/MesaLib/patches/patch-src_util_u__process.c b/MesaLib/patches/patch-src_util_u__process.c
deleted file mode 100644
index a87243d1ef..0000000000
--- a/MesaLib/patches/patch-src_util_u__process.c
+++ /dev/null
@@ -1,34 +0,0 @@
-$NetBSD$
-
-atexit() is not a good idea in shared libraries.
-
---- src/util/u_process.c.orig	2021-07-14 20:04:59.260044300 +0000
-+++ src/util/u_process.c
-@@ -48,9 +48,15 @@
- 
- static char *path = NULL;
- 
--static void __freeProgramPath()
-+#if defined(HAVE_NOATEXIT)
-+static void __attribute__((__destructor__))
-+#else
-+static void
-+#endif
-+__freeProgramPath()
- {
--   free(path);
-+   if (path)
-+     free(path);
-    path = NULL;
- }
- 
-@@ -68,7 +74,9 @@ __getProgramName()
-        */
-       if (!path) {
-          path = realpath("/proc/self/exe", NULL);
-+#if !defined(HAVE_NOATEXIT)
-          atexit(__freeProgramPath);
-+#endif
-       }
- 
-       if (path && strncmp(path, program_invocation_name, strlen(path)) == 0) {
diff --git a/MesaLib/patches/patch-src_util_u__queue.c b/MesaLib/patches/patch-src_util_u__queue.c
deleted file mode 100644
index 7170bc2e71..0000000000
--- a/MesaLib/patches/patch-src_util_u__queue.c
+++ /dev/null
@@ -1,44 +0,0 @@
-$NetBSD$
-
-atexit() is not a good idea in shared libraries.
-
-FreeBSD reported atexit bug for 10.6:
-https://bugs.freedesktop.org/show_bug.cgi?id=91869
-
---- src/util/u_queue.c.orig	2021-07-14 20:04:59.260044300 +0000
-+++ src/util/u_queue.c
-@@ -58,11 +58,22 @@ static once_flag atexit_once_flag = ONCE
- static struct list_head queue_list;
- static mtx_t exit_mutex = _MTX_INITIALIZER_NP;
- 
-+#if defined(HAVE_NOATEXIT)
-+static int global_init_called = 0;
-+
-+static void __attribute__((__destructor__))
-+#else
- static void
-+#endif
- atexit_handler(void)
- {
-    struct util_queue *iter;
- 
-+#if defined(HAVE_NOATEXIT)
-+   if (!global_init_called)
-+      return;
-+#endif
-+
-    mtx_lock(&exit_mutex);
-    /* Wait for all queues to assert idle. */
-    LIST_FOR_EACH_ENTRY(iter, &queue_list, head) {
-@@ -75,7 +86,11 @@ static void
- global_init(void)
- {
-    list_inithead(&queue_list);
-+#if defined(HAVE_NOATEXIT)
-+   global_init_called = 1;
-+#else
-    atexit(atexit_handler);
-+#endif
- }
- 
- static void
diff --git a/MesaLib/patches/patch-src_util_u__thread.h b/MesaLib/patches/patch-src_util_u__thread.h
deleted file mode 100644
index 6ec67209f7..0000000000
--- a/MesaLib/patches/patch-src_util_u__thread.h
+++ /dev/null
@@ -1,72 +0,0 @@
-$NetBSD$
-
-Oracle Solaris has pthread_setname_np. illumos does not.
-(actually, newer Illumos does have it, but never mind.)
-
-Don't hard error when there's no pthread_setname_np.
-
-handle NetBSD-style pthread_setaffinity_np(3)
-
---- src/util/u_thread.h.orig	2021-08-04 18:49:29.374474500 +0000
-+++ src/util/u_thread.h
-@@ -129,7 +129,7 @@ static inline thrd_t u_thread_create(int
- static inline void u_thread_setname( const char *name )
- {
- #if defined(HAVE_PTHREAD)
--#if DETECT_OS_LINUX || DETECT_OS_CYGWIN || DETECT_OS_SOLARIS
-+#if DETECT_OS_LINUX || DETECT_OS_CYGWIN
-    int ret = pthread_setname_np(pthread_self(), name);
-    if (ret == ERANGE) {
-       char buf[16];
-@@ -169,8 +169,32 @@ util_set_thread_affinity(thrd_t thread,
-                          unsigned num_mask_bits)
- {
- #if defined(HAVE_PTHREAD_SETAFFINITY)
--   cpu_set_t cpuset;
-+# if defined(__NetBSD__)
-+   cpu_set_t *cpuset;
-+   cpuset = cpuset_create();
-+   if (cpuset == NULL)
-+      return;
-+   if (old_mask) {
-+      if (pthread_getaffinity_np(thread, cpuset_size(cpuset), cpuset) != 0)
-+         return false;
- 
-+      memset(old_mask, 0, num_mask_bits / 8);
-+      for (unsigned i = 0; i < num_mask_bits && i < CPU_SETSIZE; i++) {
-+         if (cpuset_isset(i, cpuset))
-+            old_mask[i / 32] |= 1u << (i % 32);
-+      }
-+   }
-+
-+   cpuset_zero(cpuset);
-+   for (unsigned i = 0; i < num_mask_bits && i < CPU_SETSIZE; i++) {
-+      if (mask[i / 32] & (1u << (i % 32)))
-+         cpuset_set(i, cpuset);
-+   }
-+   int err = pthread_setaffinity_np(thread, cpuset_size(cpuset), cpuset);
-+   cpuset_destroy(cpuset);
-+   return err == 0;
-+# else
-+   cpu_set_t cpuset;
-    if (old_mask) {
-       if (pthread_getaffinity_np(thread, sizeof(cpuset), &cpuset) != 0)
-          return false;
-@@ -188,7 +212,7 @@ util_set_thread_affinity(thrd_t thread,
-          CPU_SET(i, &cpuset);
-    }
-    return pthread_setaffinity_np(thread, sizeof(cpuset), &cpuset) == 0;
--
-+# endif
- #elif defined(_WIN32) && !defined(__CYGWIN__)
-    DWORD_PTR m = mask[0];
- 
-@@ -242,7 +266,7 @@ util_set_current_thread_affinity(const u
- static inline int64_t
- util_thread_get_time_nano(thrd_t thread)
- {
--#if defined(HAVE_PTHREAD) && !defined(__APPLE__) && !defined(__HAIKU__)
-+#if defined(HAVE_PTHREAD) && !defined(__APPLE__) && !defined(__HAIKU__) && !defined(__sun)
-    struct timespec ts;
-    clockid_t cid;
- 
diff --git a/MesaLib/version.mk b/MesaLib/version.mk
deleted file mode 100644
index 7f8b9ab5dd..0000000000
--- a/MesaLib/version.mk
+++ /dev/null
@@ -1,30 +0,0 @@
-# $NetBSD: version.mk,v 1.1 2019/08/30 19:06:34 nia Exp $
-#
-# This file computes the version number of the Mesa distributed with
-# XFree86 and stores it in ${BUILTIN_VERSION.Mesa}.
-#
-# NOTE: This file should only be used by the Mesa-related builtin.mk files.
-#
-
-BUILTIN_FIND_FILES_VAR:=	H_MESA
-BUILTIN_FIND_FILES.H_MESA=	${X11BASE}/include/GL/gl.h
-.include "../../mk/buildlink3/find-files.mk"
-.include "../../mk/bsd.fast.prefs.mk"
-.if !defined(BUILTIN_VERSION.Mesa) && exists(${H_MESA})
-#
-# According to the Mesa documentation, for stable releases:
-#
-#	Mesa-6.0 implements OpenGL 1.5,
-#	Mesa-5.0 implements OpenGL 1.4,
-#	Mesa-4.0.4 implements OpenGL 1.3,
-#	Mesa-3.4.2 implements OpenGL 1.2.
-#
-BUILTIN_VERSION.Mesa!=							\
-	${AWK} '/\#define[ 	]*GL_VERSION_1_2/ { v = "3.4.2" }	\
-		/\#define[ 	]*GL_VERSION_1_3/ { v = "4.0.4" }	\
-		/\#define[ 	]*GL_VERSION_1_4/ { v = "5.0" }		\
-		/\#define[ 	]*GL_VERSION_1_5/ { v = "6.0" }		\
-		END { printf "%s\n", v }'				\
-		${H_MESA}
-.endif
-MAKEVARS+=	BUILTIN_VERSION.Mesa
diff --git a/libLLVM/DESCR b/libLLVM/DESCR
deleted file mode 100644
index c78531718e..0000000000
--- a/libLLVM/DESCR
+++ /dev/null
@@ -1,7 +0,0 @@
-The LLVM Project is a collection of modular and reusable compiler and toolchain
-technologies. Despite its name, LLVM has little to do with traditional virtual
-machines, though it does provide helpful libraries that can be used to build
-them.
-
-This package contains the LLVM core shared libraries intended to be usable by
-packages built on an otherwise GCC-built system.
diff --git a/libLLVM/Makefile b/libLLVM/Makefile
deleted file mode 100644
index 8ba6858e85..0000000000
--- a/libLLVM/Makefile
+++ /dev/null
@@ -1,149 +0,0 @@
-# $NetBSD: Makefile,v 1.37 2021/05/24 19:52:33 wiz Exp $
-
-DISTNAME=	llvm-13.0.1.src
-PKGNAME=	${DISTNAME:S/llvm/libLLVM/:S/.src//}
-CATEGORIES=	lang devel
-MASTER_SITES=	${MASTER_SITE_GITHUB:=llvm/}
-GITHUB_PROJECT=	llvm-project
-GITHUB_RELEASE=	llvmorg-${PKGVERSION_NOREV}
-EXTRACT_SUFX=	.tar.xz
-
-MAINTAINER=	pkgsrc-users%NetBSD.org@localhost
-HOMEPAGE=	https://llvm.org/
-COMMENT=	Low Level Virtual Machine shared library
-LICENSE=	modified-bsd
-
-USE_LANGUAGES=		c c++11
-USE_CMAKE=		yes
-GCC_REQD+=		5
-PYTHON_FOR_BUILD_ONLY=	yes
-
-CONFIGURE_DIRS=		${WRKDIR}/build
-CMAKE_ARG_PATH=		${WRKSRC}
-
-CMAKE_ARGS+=	-DCMAKE_BUILD_TYPE=Release
-CMAKE_ARGS+=	-DCMAKE_C_COMPILER=${CC:Q}
-CMAKE_ARGS+=	-DCMAKE_CXX_COMPILER=${CXX:Q}
-CMAKE_ARGS+=	-DCMAKE_CXX_LINK_FLAGS=${LDFLAGS:Q}
-CMAKE_ARGS+=	-DLLVM_BUILD_LLVM_DYLIB=ON
-CMAKE_ARGS+=	-DLLVM_INSTALL_UTILS=OFF
-CMAKE_ARGS+=	-DLLVM_LINK_LLVM_DYLIB=ON
-CMAKE_ARGS+=	-DLLVM_INCLUDE_TESTS=OFF
-CMAKE_ARGS+=	-DLLVM_ENABLE_LIBXML2=OFF
-CMAKE_ARGS+=	-DLLVM_BUILD_UTILS=OFF
-CMAKE_ARGS+=	-DLLVM_INCLUDE_BENCHMARKS=OFF
-CMAKE_ARGS+=	-DLLVM_ENABLE_RTTI=ON
-CMAKE_ARGS+=	-DCMAKE_EXE_LINKER_FLAGS=${COMPILER_RPATH_FLAG}${PREFIX}/lib/libLLVM
-
-CMAKE_ARGS.Darwin+=	-DCMAKE_LIBTOOL=/usr/bin/libtool
-
-.for tool in	bugpoint bugpoint_passes dsymutil gold llc lli llvm_ar	\
-	llvm_as llvm_as_fuzzer llvm_bcanalyzer llvm_c_test llvm_cat	\
-	llvm_cfi_verify llvm_cov llvm_cvtres llvm_cxxdump llvm_cxxfilt	\
-	llvm_cxxmap llvm_diff llvm_dis llvm_dwp				\
-	llvm_elfabi llvm_exegesis llvm_extract llvm_go llvm_isel_fuzzer	\
-	llvm_itanium_demangle_fuzzer llvm_jitlink llvm_jitlistener	\
-	llvm_link llvm_lipo llvm_lto llvm_lto2 llvm_mc			\
-	llvm_mc_assemble_fuzzer llvm_mc_disassemble_fuzzer llvm_mca	\
-	llvm_microsoft_demangle_fuzzer llvm_modextract llvm_mt llvm_nm	\
-	llvm_objcopy llvm_objdump llvm_opt_fuzzer llvm_opt_report	\
-	llvm_pdbutil llvm_profdata llvm_rc llvm_readobj llvm_rtdyld	\
-	llvm_size llvm_special_case_list_fuzzer llvm_split llvm_stress	\
-	llvm_strings llvm_symbolizer llvm_undname llvm_xray		\
-	llvm_yaml_numeric_parser_fuzzer lto msbuild obj2yaml		\
-	opt opt_viewer remarks_shlib sancov sanstats			\
-	verify_uselistorder xcode_toolchain yaml2obj			\
-	llvm_ml llvm_profgen llvm_reduce llvm_gsymutil split_file	\
-	llvm_libtool_darwin llvm_ifs llvm_dwarfdump llvm_sim		\
-	llvm_tapi_diff
-
-CMAKE_ARGS+=	-DLLVM_TOOL_${tool:tu}_BUILD=OFF
-.endfor
-
-SUBST_CLASSES+=		fix-cnf
-SUBST_STAGE.fix-cnf=	pre-configure
-SUBST_MESSAGE.fix-cnf=	Fixing llvm-config paths
-SUBST_FILES.fix-cnf=	tools/llvm-config/llvm-config.cpp
-SUBST_VARS.fix-cnf=	PREFIX LLVM_MAJOR_MINOR COMPILER_RPATH_FLAG
-
-CHECK_PORTABILITY_SKIP=	utils/buildit/build_llvm
-
-# XXX perl is not added as a tool as it does not seem to be required
-REPLACE_PERL+=		utils/*.pl
-REPLACE_PERL+=		utils/codegen-diff
-REPLACE_PERL+=		utils/llvm-native-gxx
-
-REPLACE_PYTHON+=	tools/opt-viewer/*.py
-REPLACE_PYTHON+=	tools/sancov/*.py
-REPLACE_PYTHON+=	utils/*.py
-REPLACE_PYTHON+=	utils/Misc/zkill
-REPLACE_PYTHON+=	utils/bisect
-REPLACE_PYTHON+=	utils/clang-parse-diagnostics-file
-REPLACE_PYTHON+=	utils/git/find-rev
-REPLACE_PYTHON+=	utils/lit/tests/Inputs/googletest-format/DummySubDir/OneTest.py
-REPLACE_PYTHON+=	utils/llvm-build/llvm-build
-REPLACE_PYTHON+=	utils/llvm-compilers-check
-REPLACE_PYTHON+=	utils/llvm-lit/llvm-lit.in
-
-TEST_TARGET=		check
-TEST_ENV+=		LD_LIBRARY_PATH=${WRKDIR}/build/lib
-
-.include "../../mk/bsd.prefs.mk"
-
-# 7.0.1 -> 7.0
-#LLVM_MAJOR_MINOR=	${PKGVERSION_NOREV:C/^([0-9]+\.[0-9]+)\..*$/\1/}
-# 7.0.1 -> 7
-LLVM_MAJOR_MINOR=	${PKGVERSION_NOREV:C/^([0-9]+).*$/\1/}
-PLIST_SUBST+=		LLVM_MAJOR_MINOR=${LLVM_MAJOR_MINOR}
-
-PLIST_VARS+=	notdylib
-.if ${SHLIB_TYPE} == "dylib"
-SOEXT=		dylib
-LLVM_LIBNAME=	libLLVM.${SOEXT}
-.else
-SOEXT=		so
-LLVM_LIBNAME=	libLLVM-${LLVM_MAJOR_MINOR}.${SOEXT}
-PLIST.notdylib=	yes
-.endif
-PLIST_SUBST+=	SOEXT=${SOEXT}
-PLIST_SUBST+=	LLVM_LIBNAME=${LLVM_LIBNAME}
-
-# needs std::atomic with 64-bit CAS
-.if ${MACHINE_ARCH} == "i386"
-CXXFLAGS+=	-march=i586
-.endif
-
-.if !empty(MACHINE_ARCH:Mpowerpc*)
-# Needed to avoid "relocation truncated to fit: R_PPC_REL24"
-CFLAGS+=	-mlongcall
-CXXFLAGS+=	-mlongcall
-.endif
-
-.include "options.mk"
-
-# replacing config.guess is required even for cmake.
-# It is used to detect correct LLVM_HOST_TRIPLE, e.g. for NetBSD/evbarm.
-post-extract:
-	${RUN} mkdir -p ${WRKDIR}/build
-.for f in config.guess config.sub
-	cp ../../mk/gnu-config/${f} ${WRKSRC}/cmake/${f}
-.endfor
-
-post-install:
-	${INSTALL_LIB_DIR} ${DESTDIR}${PREFIX}/lib/libLLVM
-	${INSTALL_LIB} ${WRKDIR}/build/lib/${LLVM_LIBNAME}	\
-		${DESTDIR}${PREFIX}/lib/libLLVM/${LLVM_LIBNAME}
-.if ${OPSYS} == "Darwin"
-	install_name_tool -id	\
-		${PREFIX}/lib/libLLVM/${LLVM_LIBNAME}	\
-		${DESTDIR}${PREFIX}/lib/libLLVM/${LLVM_LIBNAME}
-.else
-	${LN} -sf ${LLVM_LIBNAME}	\
-		${DESTDIR}${PREFIX}/lib/libLLVM/libLLVM.${SOEXT}
-	${LN} -sf ${LLVM_LIBNAME}	\
-		${DESTDIR}${PREFIX}/lib/libLLVM/libLLVM-${PKGVERSION_NOREV}.${SOEXT}
-.endif
-
-.include "../../devel/zlib/buildlink3.mk"
-.include "../../lang/python/tool.mk"
-.include "../../mk/bsd.pkg.mk"
diff --git a/libLLVM/PLIST b/libLLVM/PLIST
deleted file mode 100644
index cb324e9f10..0000000000
--- a/libLLVM/PLIST
+++ /dev/null
@@ -1,1702 +0,0 @@
-@comment $NetBSD$
-include/libLLVM/llvm-c/Analysis.h
-include/libLLVM/llvm-c/BitReader.h
-include/libLLVM/llvm-c/BitWriter.h
-include/libLLVM/llvm-c/Comdat.h
-include/libLLVM/llvm-c/Core.h
-include/libLLVM/llvm-c/DataTypes.h
-include/libLLVM/llvm-c/DebugInfo.h
-include/libLLVM/llvm-c/Disassembler.h
-include/libLLVM/llvm-c/DisassemblerTypes.h
-include/libLLVM/llvm-c/Error.h
-include/libLLVM/llvm-c/ErrorHandling.h
-include/libLLVM/llvm-c/ExecutionEngine.h
-include/libLLVM/llvm-c/ExternC.h
-include/libLLVM/llvm-c/IRReader.h
-include/libLLVM/llvm-c/Initialization.h
-include/libLLVM/llvm-c/LLJIT.h
-include/libLLVM/llvm-c/Linker.h
-include/libLLVM/llvm-c/Object.h
-include/libLLVM/llvm-c/Orc.h
-include/libLLVM/llvm-c/OrcEE.h
-include/libLLVM/llvm-c/Remarks.h
-include/libLLVM/llvm-c/Support.h
-include/libLLVM/llvm-c/Target.h
-include/libLLVM/llvm-c/TargetMachine.h
-include/libLLVM/llvm-c/Transforms/AggressiveInstCombine.h
-include/libLLVM/llvm-c/Transforms/Coroutines.h
-include/libLLVM/llvm-c/Transforms/IPO.h
-include/libLLVM/llvm-c/Transforms/InstCombine.h
-include/libLLVM/llvm-c/Transforms/PassBuilder.h
-include/libLLVM/llvm-c/Transforms/PassManagerBuilder.h
-include/libLLVM/llvm-c/Transforms/Scalar.h
-include/libLLVM/llvm-c/Transforms/Utils.h
-include/libLLVM/llvm-c/Transforms/Vectorize.h
-include/libLLVM/llvm-c/Types.h
-include/libLLVM/llvm-c/lto.h
-include/libLLVM/llvm/ADT/APFixedPoint.h
-include/libLLVM/llvm/ADT/APFloat.h
-include/libLLVM/llvm/ADT/APInt.h
-include/libLLVM/llvm/ADT/APSInt.h
-include/libLLVM/llvm/ADT/AllocatorList.h
-include/libLLVM/llvm/ADT/Any.h
-include/libLLVM/llvm/ADT/ArrayRef.h
-include/libLLVM/llvm/ADT/BitVector.h
-include/libLLVM/llvm/ADT/Bitfields.h
-include/libLLVM/llvm/ADT/BitmaskEnum.h
-include/libLLVM/llvm/ADT/BreadthFirstIterator.h
-include/libLLVM/llvm/ADT/CachedHashString.h
-include/libLLVM/llvm/ADT/CoalescingBitVector.h
-include/libLLVM/llvm/ADT/DAGDeltaAlgorithm.h
-include/libLLVM/llvm/ADT/DeltaAlgorithm.h
-include/libLLVM/llvm/ADT/DenseMap.h
-include/libLLVM/llvm/ADT/DenseMapInfo.h
-include/libLLVM/llvm/ADT/DenseSet.h
-include/libLLVM/llvm/ADT/DepthFirstIterator.h
-include/libLLVM/llvm/ADT/DirectedGraph.h
-include/libLLVM/llvm/ADT/EnumeratedArray.h
-include/libLLVM/llvm/ADT/EpochTracker.h
-include/libLLVM/llvm/ADT/EquivalenceClasses.h
-include/libLLVM/llvm/ADT/FloatingPointMode.h
-include/libLLVM/llvm/ADT/FoldingSet.h
-include/libLLVM/llvm/ADT/FunctionExtras.h
-include/libLLVM/llvm/ADT/GraphTraits.h
-include/libLLVM/llvm/ADT/Hashing.h
-include/libLLVM/llvm/ADT/ImmutableList.h
-include/libLLVM/llvm/ADT/ImmutableMap.h
-include/libLLVM/llvm/ADT/ImmutableSet.h
-include/libLLVM/llvm/ADT/IndexedMap.h
-include/libLLVM/llvm/ADT/IntEqClasses.h
-include/libLLVM/llvm/ADT/IntervalMap.h
-include/libLLVM/llvm/ADT/IntrusiveRefCntPtr.h
-include/libLLVM/llvm/ADT/MapVector.h
-include/libLLVM/llvm/ADT/None.h
-include/libLLVM/llvm/ADT/Optional.h
-include/libLLVM/llvm/ADT/PackedVector.h
-include/libLLVM/llvm/ADT/PointerEmbeddedInt.h
-include/libLLVM/llvm/ADT/PointerIntPair.h
-include/libLLVM/llvm/ADT/PointerSumType.h
-include/libLLVM/llvm/ADT/PointerUnion.h
-include/libLLVM/llvm/ADT/PostOrderIterator.h
-include/libLLVM/llvm/ADT/PriorityQueue.h
-include/libLLVM/llvm/ADT/PriorityWorklist.h
-include/libLLVM/llvm/ADT/SCCIterator.h
-include/libLLVM/llvm/ADT/STLExtras.h
-include/libLLVM/llvm/ADT/STLForwardCompat.h
-include/libLLVM/llvm/ADT/ScopeExit.h
-include/libLLVM/llvm/ADT/ScopedHashTable.h
-include/libLLVM/llvm/ADT/Sequence.h
-include/libLLVM/llvm/ADT/SetOperations.h
-include/libLLVM/llvm/ADT/SetVector.h
-include/libLLVM/llvm/ADT/SmallBitVector.h
-include/libLLVM/llvm/ADT/SmallPtrSet.h
-include/libLLVM/llvm/ADT/SmallSet.h
-include/libLLVM/llvm/ADT/SmallString.h
-include/libLLVM/llvm/ADT/SmallVector.h
-include/libLLVM/llvm/ADT/SparseBitVector.h
-include/libLLVM/llvm/ADT/SparseMultiSet.h
-include/libLLVM/llvm/ADT/SparseSet.h
-include/libLLVM/llvm/ADT/Statistic.h
-include/libLLVM/llvm/ADT/StringExtras.h
-include/libLLVM/llvm/ADT/StringMap.h
-include/libLLVM/llvm/ADT/StringMapEntry.h
-include/libLLVM/llvm/ADT/StringRef.h
-include/libLLVM/llvm/ADT/StringSet.h
-include/libLLVM/llvm/ADT/StringSwitch.h
-include/libLLVM/llvm/ADT/TinyPtrVector.h
-include/libLLVM/llvm/ADT/Triple.h
-include/libLLVM/llvm/ADT/Twine.h
-include/libLLVM/llvm/ADT/TypeSwitch.h
-include/libLLVM/llvm/ADT/UniqueVector.h
-include/libLLVM/llvm/ADT/Waymarking.h
-include/libLLVM/llvm/ADT/bit.h
-include/libLLVM/llvm/ADT/edit_distance.h
-include/libLLVM/llvm/ADT/fallible_iterator.h
-include/libLLVM/llvm/ADT/ilist.h
-include/libLLVM/llvm/ADT/ilist_base.h
-include/libLLVM/llvm/ADT/ilist_iterator.h
-include/libLLVM/llvm/ADT/ilist_node.h
-include/libLLVM/llvm/ADT/ilist_node_base.h
-include/libLLVM/llvm/ADT/ilist_node_options.h
-include/libLLVM/llvm/ADT/iterator.h
-include/libLLVM/llvm/ADT/iterator_range.h
-include/libLLVM/llvm/ADT/simple_ilist.h
-include/libLLVM/llvm/Analysis/AliasAnalysis.h
-include/libLLVM/llvm/Analysis/AliasAnalysisEvaluator.h
-include/libLLVM/llvm/Analysis/AliasSetTracker.h
-include/libLLVM/llvm/Analysis/AssumeBundleQueries.h
-include/libLLVM/llvm/Analysis/AssumptionCache.h
-include/libLLVM/llvm/Analysis/BasicAliasAnalysis.h
-include/libLLVM/llvm/Analysis/BlockFrequencyInfo.h
-include/libLLVM/llvm/Analysis/BlockFrequencyInfoImpl.h
-include/libLLVM/llvm/Analysis/BranchProbabilityInfo.h
-include/libLLVM/llvm/Analysis/CFG.h
-include/libLLVM/llvm/Analysis/CFGPrinter.h
-include/libLLVM/llvm/Analysis/CFLAliasAnalysisUtils.h
-include/libLLVM/llvm/Analysis/CFLAndersAliasAnalysis.h
-include/libLLVM/llvm/Analysis/CFLSteensAliasAnalysis.h
-include/libLLVM/llvm/Analysis/CGSCCPassManager.h
-include/libLLVM/llvm/Analysis/CallGraph.h
-include/libLLVM/llvm/Analysis/CallGraphSCCPass.h
-include/libLLVM/llvm/Analysis/CallPrinter.h
-include/libLLVM/llvm/Analysis/CaptureTracking.h
-include/libLLVM/llvm/Analysis/CmpInstAnalysis.h
-include/libLLVM/llvm/Analysis/CodeMetrics.h
-include/libLLVM/llvm/Analysis/ConstantFolding.h
-include/libLLVM/llvm/Analysis/ConstraintSystem.h
-include/libLLVM/llvm/Analysis/DDG.h
-include/libLLVM/llvm/Analysis/DDGPrinter.h
-include/libLLVM/llvm/Analysis/DOTGraphTraitsPass.h
-include/libLLVM/llvm/Analysis/Delinearization.h
-include/libLLVM/llvm/Analysis/DemandedBits.h
-include/libLLVM/llvm/Analysis/DependenceAnalysis.h
-include/libLLVM/llvm/Analysis/DependenceGraphBuilder.h
-include/libLLVM/llvm/Analysis/DivergenceAnalysis.h
-include/libLLVM/llvm/Analysis/DomPrinter.h
-include/libLLVM/llvm/Analysis/DomTreeUpdater.h
-include/libLLVM/llvm/Analysis/DominanceFrontier.h
-include/libLLVM/llvm/Analysis/DominanceFrontierImpl.h
-include/libLLVM/llvm/Analysis/EHPersonalities.h
-include/libLLVM/llvm/Analysis/FunctionPropertiesAnalysis.h
-include/libLLVM/llvm/Analysis/GlobalsModRef.h
-include/libLLVM/llvm/Analysis/GuardUtils.h
-include/libLLVM/llvm/Analysis/HeatUtils.h
-include/libLLVM/llvm/Analysis/IRSimilarityIdentifier.h
-include/libLLVM/llvm/Analysis/IVDescriptors.h
-include/libLLVM/llvm/Analysis/IVUsers.h
-include/libLLVM/llvm/Analysis/IndirectCallPromotionAnalysis.h
-include/libLLVM/llvm/Analysis/IndirectCallVisitor.h
-include/libLLVM/llvm/Analysis/InlineAdvisor.h
-include/libLLVM/llvm/Analysis/InlineCost.h
-include/libLLVM/llvm/Analysis/InlineModelFeatureMaps.h
-include/libLLVM/llvm/Analysis/InlineSizeEstimatorAnalysis.h
-include/libLLVM/llvm/Analysis/InstCount.h
-include/libLLVM/llvm/Analysis/InstructionPrecedenceTracking.h
-include/libLLVM/llvm/Analysis/InstructionSimplify.h
-include/libLLVM/llvm/Analysis/Interval.h
-include/libLLVM/llvm/Analysis/IntervalIterator.h
-include/libLLVM/llvm/Analysis/IntervalPartition.h
-include/libLLVM/llvm/Analysis/IteratedDominanceFrontier.h
-include/libLLVM/llvm/Analysis/LazyBlockFrequencyInfo.h
-include/libLLVM/llvm/Analysis/LazyBranchProbabilityInfo.h
-include/libLLVM/llvm/Analysis/LazyCallGraph.h
-include/libLLVM/llvm/Analysis/LazyValueInfo.h
-include/libLLVM/llvm/Analysis/LegacyDivergenceAnalysis.h
-include/libLLVM/llvm/Analysis/Lint.h
-include/libLLVM/llvm/Analysis/Loads.h
-include/libLLVM/llvm/Analysis/LoopAccessAnalysis.h
-include/libLLVM/llvm/Analysis/LoopAnalysisManager.h
-include/libLLVM/llvm/Analysis/LoopCacheAnalysis.h
-include/libLLVM/llvm/Analysis/LoopInfo.h
-include/libLLVM/llvm/Analysis/LoopInfoImpl.h
-include/libLLVM/llvm/Analysis/LoopIterator.h
-include/libLLVM/llvm/Analysis/LoopNestAnalysis.h
-include/libLLVM/llvm/Analysis/LoopPass.h
-include/libLLVM/llvm/Analysis/LoopUnrollAnalyzer.h
-include/libLLVM/llvm/Analysis/MLInlineAdvisor.h
-include/libLLVM/llvm/Analysis/MLModelRunner.h
-include/libLLVM/llvm/Analysis/MemDerefPrinter.h
-include/libLLVM/llvm/Analysis/MemoryBuiltins.h
-include/libLLVM/llvm/Analysis/MemoryDependenceAnalysis.h
-include/libLLVM/llvm/Analysis/MemoryLocation.h
-include/libLLVM/llvm/Analysis/MemorySSA.h
-include/libLLVM/llvm/Analysis/MemorySSAUpdater.h
-include/libLLVM/llvm/Analysis/ModuleDebugInfoPrinter.h
-include/libLLVM/llvm/Analysis/ModuleSummaryAnalysis.h
-include/libLLVM/llvm/Analysis/MustExecute.h
-include/libLLVM/llvm/Analysis/ObjCARCAliasAnalysis.h
-include/libLLVM/llvm/Analysis/ObjCARCAnalysisUtils.h
-include/libLLVM/llvm/Analysis/ObjCARCInstKind.h
-include/libLLVM/llvm/Analysis/ObjCARCUtil.h
-include/libLLVM/llvm/Analysis/OptimizationRemarkEmitter.h
-include/libLLVM/llvm/Analysis/OverflowInstAnalysis.h
-include/libLLVM/llvm/Analysis/PHITransAddr.h
-include/libLLVM/llvm/Analysis/Passes.h
-include/libLLVM/llvm/Analysis/PhiValues.h
-include/libLLVM/llvm/Analysis/PostDominators.h
-include/libLLVM/llvm/Analysis/ProfileSummaryInfo.h
-include/libLLVM/llvm/Analysis/PtrUseVisitor.h
-include/libLLVM/llvm/Analysis/RegionInfo.h
-include/libLLVM/llvm/Analysis/RegionInfoImpl.h
-include/libLLVM/llvm/Analysis/RegionIterator.h
-include/libLLVM/llvm/Analysis/RegionPass.h
-include/libLLVM/llvm/Analysis/RegionPrinter.h
-include/libLLVM/llvm/Analysis/ReplayInlineAdvisor.h
-include/libLLVM/llvm/Analysis/ScalarEvolution.h
-include/libLLVM/llvm/Analysis/ScalarEvolutionAliasAnalysis.h
-include/libLLVM/llvm/Analysis/ScalarEvolutionDivision.h
-include/libLLVM/llvm/Analysis/ScalarEvolutionExpressions.h
-include/libLLVM/llvm/Analysis/ScalarEvolutionNormalization.h
-include/libLLVM/llvm/Analysis/ScopedNoAliasAA.h
-include/libLLVM/llvm/Analysis/SparsePropagation.h
-include/libLLVM/llvm/Analysis/StackLifetime.h
-include/libLLVM/llvm/Analysis/StackSafetyAnalysis.h
-include/libLLVM/llvm/Analysis/SyncDependenceAnalysis.h
-include/libLLVM/llvm/Analysis/SyntheticCountsUtils.h
-include/libLLVM/llvm/Analysis/TargetFolder.h
-include/libLLVM/llvm/Analysis/TargetLibraryInfo.def
-include/libLLVM/llvm/Analysis/TargetLibraryInfo.h
-include/libLLVM/llvm/Analysis/TargetTransformInfo.h
-include/libLLVM/llvm/Analysis/TargetTransformInfoImpl.h
-include/libLLVM/llvm/Analysis/Trace.h
-include/libLLVM/llvm/Analysis/TypeBasedAliasAnalysis.h
-include/libLLVM/llvm/Analysis/TypeMetadataUtils.h
-include/libLLVM/llvm/Analysis/Utils/ImportedFunctionsInliningStatistics.h
-include/libLLVM/llvm/Analysis/Utils/Local.h
-include/libLLVM/llvm/Analysis/Utils/TFUtils.h
-include/libLLVM/llvm/Analysis/ValueLattice.h
-include/libLLVM/llvm/Analysis/ValueLatticeUtils.h
-include/libLLVM/llvm/Analysis/ValueTracking.h
-include/libLLVM/llvm/Analysis/VecFuncs.def
-include/libLLVM/llvm/Analysis/VectorUtils.h
-include/libLLVM/llvm/AsmParser/LLLexer.h
-include/libLLVM/llvm/AsmParser/LLParser.h
-include/libLLVM/llvm/AsmParser/LLToken.h
-include/libLLVM/llvm/AsmParser/Parser.h
-include/libLLVM/llvm/AsmParser/SlotMapping.h
-include/libLLVM/llvm/BinaryFormat/AMDGPUMetadataVerifier.h
-include/libLLVM/llvm/BinaryFormat/COFF.h
-include/libLLVM/llvm/BinaryFormat/Dwarf.def
-include/libLLVM/llvm/BinaryFormat/Dwarf.h
-include/libLLVM/llvm/BinaryFormat/DynamicTags.def
-include/libLLVM/llvm/BinaryFormat/ELF.h
-include/libLLVM/llvm/BinaryFormat/ELFRelocs/AArch64.def
-include/libLLVM/llvm/BinaryFormat/ELFRelocs/AMDGPU.def
-include/libLLVM/llvm/BinaryFormat/ELFRelocs/ARC.def
-include/libLLVM/llvm/BinaryFormat/ELFRelocs/ARM.def
-include/libLLVM/llvm/BinaryFormat/ELFRelocs/AVR.def
-include/libLLVM/llvm/BinaryFormat/ELFRelocs/BPF.def
-include/libLLVM/llvm/BinaryFormat/ELFRelocs/CSKY.def
-include/libLLVM/llvm/BinaryFormat/ELFRelocs/Hexagon.def
-include/libLLVM/llvm/BinaryFormat/ELFRelocs/Lanai.def
-include/libLLVM/llvm/BinaryFormat/ELFRelocs/M68k.def
-include/libLLVM/llvm/BinaryFormat/ELFRelocs/MSP430.def
-include/libLLVM/llvm/BinaryFormat/ELFRelocs/Mips.def
-include/libLLVM/llvm/BinaryFormat/ELFRelocs/PowerPC.def
-include/libLLVM/llvm/BinaryFormat/ELFRelocs/PowerPC64.def
-include/libLLVM/llvm/BinaryFormat/ELFRelocs/RISCV.def
-include/libLLVM/llvm/BinaryFormat/ELFRelocs/Sparc.def
-include/libLLVM/llvm/BinaryFormat/ELFRelocs/SystemZ.def
-include/libLLVM/llvm/BinaryFormat/ELFRelocs/VE.def
-include/libLLVM/llvm/BinaryFormat/ELFRelocs/i386.def
-include/libLLVM/llvm/BinaryFormat/ELFRelocs/x86_64.def
-include/libLLVM/llvm/BinaryFormat/MachO.def
-include/libLLVM/llvm/BinaryFormat/MachO.h
-include/libLLVM/llvm/BinaryFormat/Magic.h
-include/libLLVM/llvm/BinaryFormat/Minidump.h
-include/libLLVM/llvm/BinaryFormat/MinidumpConstants.def
-include/libLLVM/llvm/BinaryFormat/MsgPack.def
-include/libLLVM/llvm/BinaryFormat/MsgPack.h
-include/libLLVM/llvm/BinaryFormat/MsgPackDocument.h
-include/libLLVM/llvm/BinaryFormat/MsgPackReader.h
-include/libLLVM/llvm/BinaryFormat/MsgPackWriter.h
-include/libLLVM/llvm/BinaryFormat/Wasm.h
-include/libLLVM/llvm/BinaryFormat/WasmRelocs.def
-include/libLLVM/llvm/BinaryFormat/WasmTraits.h
-include/libLLVM/llvm/BinaryFormat/XCOFF.h
-include/libLLVM/llvm/Bitcode/BitcodeAnalyzer.h
-include/libLLVM/llvm/Bitcode/BitcodeCommon.h
-include/libLLVM/llvm/Bitcode/BitcodeConvenience.h
-include/libLLVM/llvm/Bitcode/BitcodeReader.h
-include/libLLVM/llvm/Bitcode/BitcodeWriter.h
-include/libLLVM/llvm/Bitcode/BitcodeWriterPass.h
-include/libLLVM/llvm/Bitcode/LLVMBitCodes.h
-include/libLLVM/llvm/Bitstream/BitCodes.h
-include/libLLVM/llvm/Bitstream/BitstreamReader.h
-include/libLLVM/llvm/Bitstream/BitstreamWriter.h
-include/libLLVM/llvm/CodeGen/AccelTable.h
-include/libLLVM/llvm/CodeGen/Analysis.h
-include/libLLVM/llvm/CodeGen/AntiDepBreaker.h
-include/libLLVM/llvm/CodeGen/AsmPrinter.h
-include/libLLVM/llvm/CodeGen/AsmPrinterHandler.h
-include/libLLVM/llvm/CodeGen/AtomicExpandUtils.h
-include/libLLVM/llvm/CodeGen/BasicBlockSectionUtils.h
-include/libLLVM/llvm/CodeGen/BasicTTIImpl.h
-include/libLLVM/llvm/CodeGen/CSEConfigBase.h
-include/libLLVM/llvm/CodeGen/CalcSpillWeights.h
-include/libLLVM/llvm/CodeGen/CallingConvLower.h
-include/libLLVM/llvm/CodeGen/CodeGenPassBuilder.h
-include/libLLVM/llvm/CodeGen/CommandFlags.h
-include/libLLVM/llvm/CodeGen/CostTable.h
-include/libLLVM/llvm/CodeGen/DAGCombine.h
-include/libLLVM/llvm/CodeGen/DFAPacketizer.h
-include/libLLVM/llvm/CodeGen/DIE.h
-include/libLLVM/llvm/CodeGen/DIEValue.def
-include/libLLVM/llvm/CodeGen/DbgEntityHistoryCalculator.h
-include/libLLVM/llvm/CodeGen/DebugHandlerBase.h
-include/libLLVM/llvm/CodeGen/DwarfStringPoolEntry.h
-include/libLLVM/llvm/CodeGen/EdgeBundles.h
-include/libLLVM/llvm/CodeGen/ExecutionDomainFix.h
-include/libLLVM/llvm/CodeGen/ExpandReductions.h
-include/libLLVM/llvm/CodeGen/ExpandVectorPredication.h
-include/libLLVM/llvm/CodeGen/FastISel.h
-include/libLLVM/llvm/CodeGen/FaultMaps.h
-include/libLLVM/llvm/CodeGen/FunctionLoweringInfo.h
-include/libLLVM/llvm/CodeGen/GCMetadata.h
-include/libLLVM/llvm/CodeGen/GCMetadataPrinter.h
-include/libLLVM/llvm/CodeGen/GlobalISel/CSEInfo.h
-include/libLLVM/llvm/CodeGen/GlobalISel/CSEMIRBuilder.h
-include/libLLVM/llvm/CodeGen/GlobalISel/CallLowering.h
-include/libLLVM/llvm/CodeGen/GlobalISel/Combiner.h
-include/libLLVM/llvm/CodeGen/GlobalISel/CombinerHelper.h
-include/libLLVM/llvm/CodeGen/GlobalISel/CombinerInfo.h
-include/libLLVM/llvm/CodeGen/GlobalISel/GISelChangeObserver.h
-include/libLLVM/llvm/CodeGen/GlobalISel/GISelKnownBits.h
-include/libLLVM/llvm/CodeGen/GlobalISel/GISelWorkList.h
-include/libLLVM/llvm/CodeGen/GlobalISel/GenericMachineInstrs.h
-include/libLLVM/llvm/CodeGen/GlobalISel/IRTranslator.h
-include/libLLVM/llvm/CodeGen/GlobalISel/InlineAsmLowering.h
-include/libLLVM/llvm/CodeGen/GlobalISel/InstructionSelect.h
-include/libLLVM/llvm/CodeGen/GlobalISel/InstructionSelector.h
-include/libLLVM/llvm/CodeGen/GlobalISel/InstructionSelectorImpl.h
-include/libLLVM/llvm/CodeGen/GlobalISel/LegacyLegalizerInfo.h
-include/libLLVM/llvm/CodeGen/GlobalISel/LegalizationArtifactCombiner.h
-include/libLLVM/llvm/CodeGen/GlobalISel/Legalizer.h
-include/libLLVM/llvm/CodeGen/GlobalISel/LegalizerHelper.h
-include/libLLVM/llvm/CodeGen/GlobalISel/LegalizerInfo.h
-include/libLLVM/llvm/CodeGen/GlobalISel/Localizer.h
-include/libLLVM/llvm/CodeGen/GlobalISel/LostDebugLocObserver.h
-include/libLLVM/llvm/CodeGen/GlobalISel/MIPatternMatch.h
-include/libLLVM/llvm/CodeGen/GlobalISel/MachineIRBuilder.h
-include/libLLVM/llvm/CodeGen/GlobalISel/RegBankSelect.h
-include/libLLVM/llvm/CodeGen/GlobalISel/RegisterBank.h
-include/libLLVM/llvm/CodeGen/GlobalISel/RegisterBankInfo.h
-include/libLLVM/llvm/CodeGen/GlobalISel/Utils.h
-include/libLLVM/llvm/CodeGen/ISDOpcodes.h
-include/libLLVM/llvm/CodeGen/IndirectThunks.h
-include/libLLVM/llvm/CodeGen/IntrinsicLowering.h
-include/libLLVM/llvm/CodeGen/LatencyPriorityQueue.h
-include/libLLVM/llvm/CodeGen/LazyMachineBlockFrequencyInfo.h
-include/libLLVM/llvm/CodeGen/LexicalScopes.h
-include/libLLVM/llvm/CodeGen/LinkAllAsmWriterComponents.h
-include/libLLVM/llvm/CodeGen/LinkAllCodegenComponents.h
-include/libLLVM/llvm/CodeGen/LiveInterval.h
-include/libLLVM/llvm/CodeGen/LiveIntervalCalc.h
-include/libLLVM/llvm/CodeGen/LiveIntervalUnion.h
-include/libLLVM/llvm/CodeGen/LiveIntervals.h
-include/libLLVM/llvm/CodeGen/LivePhysRegs.h
-include/libLLVM/llvm/CodeGen/LiveRangeCalc.h
-include/libLLVM/llvm/CodeGen/LiveRangeEdit.h
-include/libLLVM/llvm/CodeGen/LiveRegMatrix.h
-include/libLLVM/llvm/CodeGen/LiveRegUnits.h
-include/libLLVM/llvm/CodeGen/LiveStacks.h
-include/libLLVM/llvm/CodeGen/LiveVariables.h
-include/libLLVM/llvm/CodeGen/LoopTraversal.h
-include/libLLVM/llvm/CodeGen/LowLevelType.h
-include/libLLVM/llvm/CodeGen/MBFIWrapper.h
-include/libLLVM/llvm/CodeGen/MIRFSDiscriminator.h
-include/libLLVM/llvm/CodeGen/MIRFormatter.h
-include/libLLVM/llvm/CodeGen/MIRParser/MIParser.h
-include/libLLVM/llvm/CodeGen/MIRParser/MIRParser.h
-include/libLLVM/llvm/CodeGen/MIRPrinter.h
-include/libLLVM/llvm/CodeGen/MIRYamlMapping.h
-include/libLLVM/llvm/CodeGen/MachORelocation.h
-include/libLLVM/llvm/CodeGen/MachineBasicBlock.h
-include/libLLVM/llvm/CodeGen/MachineBlockFrequencyInfo.h
-include/libLLVM/llvm/CodeGen/MachineBranchProbabilityInfo.h
-include/libLLVM/llvm/CodeGen/MachineCombinerPattern.h
-include/libLLVM/llvm/CodeGen/MachineConstantPool.h
-include/libLLVM/llvm/CodeGen/MachineDominanceFrontier.h
-include/libLLVM/llvm/CodeGen/MachineDominators.h
-include/libLLVM/llvm/CodeGen/MachineFrameInfo.h
-include/libLLVM/llvm/CodeGen/MachineFunction.h
-include/libLLVM/llvm/CodeGen/MachineFunctionPass.h
-include/libLLVM/llvm/CodeGen/MachineInstr.h
-include/libLLVM/llvm/CodeGen/MachineInstrBuilder.h
-include/libLLVM/llvm/CodeGen/MachineInstrBundle.h
-include/libLLVM/llvm/CodeGen/MachineInstrBundleIterator.h
-include/libLLVM/llvm/CodeGen/MachineJumpTableInfo.h
-include/libLLVM/llvm/CodeGen/MachineLoopInfo.h
-include/libLLVM/llvm/CodeGen/MachineLoopUtils.h
-include/libLLVM/llvm/CodeGen/MachineMemOperand.h
-include/libLLVM/llvm/CodeGen/MachineModuleInfo.h
-include/libLLVM/llvm/CodeGen/MachineModuleInfoImpls.h
-include/libLLVM/llvm/CodeGen/MachineModuleSlotTracker.h
-include/libLLVM/llvm/CodeGen/MachineOperand.h
-include/libLLVM/llvm/CodeGen/MachineOptimizationRemarkEmitter.h
-include/libLLVM/llvm/CodeGen/MachineOutliner.h
-include/libLLVM/llvm/CodeGen/MachinePassManager.h
-include/libLLVM/llvm/CodeGen/MachinePassRegistry.def
-include/libLLVM/llvm/CodeGen/MachinePassRegistry.h
-include/libLLVM/llvm/CodeGen/MachinePipeliner.h
-include/libLLVM/llvm/CodeGen/MachinePostDominators.h
-include/libLLVM/llvm/CodeGen/MachineRegionInfo.h
-include/libLLVM/llvm/CodeGen/MachineRegisterInfo.h
-include/libLLVM/llvm/CodeGen/MachineSSAUpdater.h
-include/libLLVM/llvm/CodeGen/MachineScheduler.h
-include/libLLVM/llvm/CodeGen/MachineSizeOpts.h
-include/libLLVM/llvm/CodeGen/MachineStableHash.h
-include/libLLVM/llvm/CodeGen/MachineTraceMetrics.h
-include/libLLVM/llvm/CodeGen/MacroFusion.h
-include/libLLVM/llvm/CodeGen/ModuloSchedule.h
-include/libLLVM/llvm/CodeGen/MultiHazardRecognizer.h
-include/libLLVM/llvm/CodeGen/NonRelocatableStringpool.h
-include/libLLVM/llvm/CodeGen/PBQP/CostAllocator.h
-include/libLLVM/llvm/CodeGen/PBQP/Graph.h
-include/libLLVM/llvm/CodeGen/PBQP/Math.h
-include/libLLVM/llvm/CodeGen/PBQP/ReductionRules.h
-include/libLLVM/llvm/CodeGen/PBQP/Solution.h
-include/libLLVM/llvm/CodeGen/PBQPRAConstraint.h
-include/libLLVM/llvm/CodeGen/ParallelCG.h
-include/libLLVM/llvm/CodeGen/Passes.h
-include/libLLVM/llvm/CodeGen/PreISelIntrinsicLowering.h
-include/libLLVM/llvm/CodeGen/PseudoSourceValue.h
-include/libLLVM/llvm/CodeGen/RDFGraph.h
-include/libLLVM/llvm/CodeGen/RDFLiveness.h
-include/libLLVM/llvm/CodeGen/RDFRegisters.h
-include/libLLVM/llvm/CodeGen/ReachingDefAnalysis.h
-include/libLLVM/llvm/CodeGen/RegAllocCommon.h
-include/libLLVM/llvm/CodeGen/RegAllocPBQP.h
-include/libLLVM/llvm/CodeGen/RegAllocRegistry.h
-include/libLLVM/llvm/CodeGen/Register.h
-include/libLLVM/llvm/CodeGen/RegisterClassInfo.h
-include/libLLVM/llvm/CodeGen/RegisterPressure.h
-include/libLLVM/llvm/CodeGen/RegisterScavenging.h
-include/libLLVM/llvm/CodeGen/RegisterUsageInfo.h
-include/libLLVM/llvm/CodeGen/ReplaceWithVeclib.h
-include/libLLVM/llvm/CodeGen/ResourcePriorityQueue.h
-include/libLLVM/llvm/CodeGen/RuntimeLibcalls.h
-include/libLLVM/llvm/CodeGen/SDNodeProperties.td
-include/libLLVM/llvm/CodeGen/ScheduleDAG.h
-include/libLLVM/llvm/CodeGen/ScheduleDAGInstrs.h
-include/libLLVM/llvm/CodeGen/ScheduleDAGMutation.h
-include/libLLVM/llvm/CodeGen/ScheduleDFS.h
-include/libLLVM/llvm/CodeGen/ScheduleHazardRecognizer.h
-include/libLLVM/llvm/CodeGen/SchedulerRegistry.h
-include/libLLVM/llvm/CodeGen/ScoreboardHazardRecognizer.h
-include/libLLVM/llvm/CodeGen/SelectionDAG.h
-include/libLLVM/llvm/CodeGen/SelectionDAGAddressAnalysis.h
-include/libLLVM/llvm/CodeGen/SelectionDAGISel.h
-include/libLLVM/llvm/CodeGen/SelectionDAGNodes.h
-include/libLLVM/llvm/CodeGen/SelectionDAGTargetInfo.h
-include/libLLVM/llvm/CodeGen/SlotIndexes.h
-include/libLLVM/llvm/CodeGen/Spiller.h
-include/libLLVM/llvm/CodeGen/StableHashing.h
-include/libLLVM/llvm/CodeGen/StackMaps.h
-include/libLLVM/llvm/CodeGen/StackProtector.h
-include/libLLVM/llvm/CodeGen/SwiftErrorValueTracking.h
-include/libLLVM/llvm/CodeGen/SwitchLoweringUtils.h
-include/libLLVM/llvm/CodeGen/TailDuplicator.h
-include/libLLVM/llvm/CodeGen/TargetCallingConv.h
-include/libLLVM/llvm/CodeGen/TargetFrameLowering.h
-include/libLLVM/llvm/CodeGen/TargetInstrInfo.h
-include/libLLVM/llvm/CodeGen/TargetLowering.h
-include/libLLVM/llvm/CodeGen/TargetLoweringObjectFileImpl.h
-include/libLLVM/llvm/CodeGen/TargetOpcodes.h
-include/libLLVM/llvm/CodeGen/TargetPassConfig.h
-include/libLLVM/llvm/CodeGen/TargetRegisterInfo.h
-include/libLLVM/llvm/CodeGen/TargetSchedule.h
-include/libLLVM/llvm/CodeGen/TargetSubtargetInfo.h
-include/libLLVM/llvm/CodeGen/TileShapeInfo.h
-include/libLLVM/llvm/CodeGen/UnreachableBlockElim.h
-include/libLLVM/llvm/CodeGen/ValueTypes.h
-include/libLLVM/llvm/CodeGen/ValueTypes.td
-include/libLLVM/llvm/CodeGen/VirtRegMap.h
-include/libLLVM/llvm/CodeGen/WasmEHFuncInfo.h
-include/libLLVM/llvm/CodeGen/WinEHFuncInfo.h
-include/libLLVM/llvm/Config/AsmParsers.def
-include/libLLVM/llvm/Config/AsmPrinters.def
-include/libLLVM/llvm/Config/Disassemblers.def
-include/libLLVM/llvm/Config/Targets.def
-include/libLLVM/llvm/Config/abi-breaking.h
-include/libLLVM/llvm/Config/llvm-config.h
-include/libLLVM/llvm/DWARFLinker/DWARFLinker.h
-include/libLLVM/llvm/DWARFLinker/DWARFLinkerCompileUnit.h
-include/libLLVM/llvm/DWARFLinker/DWARFLinkerDeclContext.h
-include/libLLVM/llvm/DWARFLinker/DWARFStreamer.h
-include/libLLVM/llvm/DWP/DWP.h
-include/libLLVM/llvm/DWP/DWPError.h
-include/libLLVM/llvm/DWP/DWPStringPool.h
-include/libLLVM/llvm/DebugInfo/CodeView/AppendingTypeTableBuilder.h
-include/libLLVM/llvm/DebugInfo/CodeView/CVRecord.h
-include/libLLVM/llvm/DebugInfo/CodeView/CVSymbolVisitor.h
-include/libLLVM/llvm/DebugInfo/CodeView/CVTypeVisitor.h
-include/libLLVM/llvm/DebugInfo/CodeView/CodeView.h
-include/libLLVM/llvm/DebugInfo/CodeView/CodeViewError.h
-include/libLLVM/llvm/DebugInfo/CodeView/CodeViewRecordIO.h
-include/libLLVM/llvm/DebugInfo/CodeView/CodeViewRegisters.def
-include/libLLVM/llvm/DebugInfo/CodeView/CodeViewSymbols.def
-include/libLLVM/llvm/DebugInfo/CodeView/CodeViewTypes.def
-include/libLLVM/llvm/DebugInfo/CodeView/ContinuationRecordBuilder.h
-include/libLLVM/llvm/DebugInfo/CodeView/DebugChecksumsSubsection.h
-include/libLLVM/llvm/DebugInfo/CodeView/DebugCrossExSubsection.h
-include/libLLVM/llvm/DebugInfo/CodeView/DebugCrossImpSubsection.h
-include/libLLVM/llvm/DebugInfo/CodeView/DebugFrameDataSubsection.h
-include/libLLVM/llvm/DebugInfo/CodeView/DebugInlineeLinesSubsection.h
-include/libLLVM/llvm/DebugInfo/CodeView/DebugLinesSubsection.h
-include/libLLVM/llvm/DebugInfo/CodeView/DebugStringTableSubsection.h
-include/libLLVM/llvm/DebugInfo/CodeView/DebugSubsection.h
-include/libLLVM/llvm/DebugInfo/CodeView/DebugSubsectionRecord.h
-include/libLLVM/llvm/DebugInfo/CodeView/DebugSubsectionVisitor.h
-include/libLLVM/llvm/DebugInfo/CodeView/DebugSymbolRVASubsection.h
-include/libLLVM/llvm/DebugInfo/CodeView/DebugSymbolsSubsection.h
-include/libLLVM/llvm/DebugInfo/CodeView/DebugUnknownSubsection.h
-include/libLLVM/llvm/DebugInfo/CodeView/EnumTables.h
-include/libLLVM/llvm/DebugInfo/CodeView/Formatters.h
-include/libLLVM/llvm/DebugInfo/CodeView/FunctionId.h
-include/libLLVM/llvm/DebugInfo/CodeView/GUID.h
-include/libLLVM/llvm/DebugInfo/CodeView/GlobalTypeTableBuilder.h
-include/libLLVM/llvm/DebugInfo/CodeView/LazyRandomTypeCollection.h
-include/libLLVM/llvm/DebugInfo/CodeView/Line.h
-include/libLLVM/llvm/DebugInfo/CodeView/MergingTypeTableBuilder.h
-include/libLLVM/llvm/DebugInfo/CodeView/RecordName.h
-include/libLLVM/llvm/DebugInfo/CodeView/RecordSerialization.h
-include/libLLVM/llvm/DebugInfo/CodeView/SimpleTypeSerializer.h
-include/libLLVM/llvm/DebugInfo/CodeView/StringsAndChecksums.h
-include/libLLVM/llvm/DebugInfo/CodeView/SymbolDeserializer.h
-include/libLLVM/llvm/DebugInfo/CodeView/SymbolDumpDelegate.h
-include/libLLVM/llvm/DebugInfo/CodeView/SymbolDumper.h
-include/libLLVM/llvm/DebugInfo/CodeView/SymbolRecord.h
-include/libLLVM/llvm/DebugInfo/CodeView/SymbolRecordHelpers.h
-include/libLLVM/llvm/DebugInfo/CodeView/SymbolRecordMapping.h
-include/libLLVM/llvm/DebugInfo/CodeView/SymbolSerializer.h
-include/libLLVM/llvm/DebugInfo/CodeView/SymbolVisitorCallbackPipeline.h
-include/libLLVM/llvm/DebugInfo/CodeView/SymbolVisitorCallbacks.h
-include/libLLVM/llvm/DebugInfo/CodeView/SymbolVisitorDelegate.h
-include/libLLVM/llvm/DebugInfo/CodeView/TypeCollection.h
-include/libLLVM/llvm/DebugInfo/CodeView/TypeDeserializer.h
-include/libLLVM/llvm/DebugInfo/CodeView/TypeDumpVisitor.h
-include/libLLVM/llvm/DebugInfo/CodeView/TypeHashing.h
-include/libLLVM/llvm/DebugInfo/CodeView/TypeIndex.h
-include/libLLVM/llvm/DebugInfo/CodeView/TypeIndexDiscovery.h
-include/libLLVM/llvm/DebugInfo/CodeView/TypeRecord.h
-include/libLLVM/llvm/DebugInfo/CodeView/TypeRecordHelpers.h
-include/libLLVM/llvm/DebugInfo/CodeView/TypeRecordMapping.h
-include/libLLVM/llvm/DebugInfo/CodeView/TypeStreamMerger.h
-include/libLLVM/llvm/DebugInfo/CodeView/TypeSymbolEmitter.h
-include/libLLVM/llvm/DebugInfo/CodeView/TypeTableCollection.h
-include/libLLVM/llvm/DebugInfo/CodeView/TypeVisitorCallbackPipeline.h
-include/libLLVM/llvm/DebugInfo/CodeView/TypeVisitorCallbacks.h
-include/libLLVM/llvm/DebugInfo/DIContext.h
-include/libLLVM/llvm/DebugInfo/DWARF/DWARFAbbreviationDeclaration.h
-include/libLLVM/llvm/DebugInfo/DWARF/DWARFAcceleratorTable.h
-include/libLLVM/llvm/DebugInfo/DWARF/DWARFAddressRange.h
-include/libLLVM/llvm/DebugInfo/DWARF/DWARFAttribute.h
-include/libLLVM/llvm/DebugInfo/DWARF/DWARFCompileUnit.h
-include/libLLVM/llvm/DebugInfo/DWARF/DWARFContext.h
-include/libLLVM/llvm/DebugInfo/DWARF/DWARFDataExtractor.h
-include/libLLVM/llvm/DebugInfo/DWARF/DWARFDebugAbbrev.h
-include/libLLVM/llvm/DebugInfo/DWARF/DWARFDebugAddr.h
-include/libLLVM/llvm/DebugInfo/DWARF/DWARFDebugArangeSet.h
-include/libLLVM/llvm/DebugInfo/DWARF/DWARFDebugAranges.h
-include/libLLVM/llvm/DebugInfo/DWARF/DWARFDebugFrame.h
-include/libLLVM/llvm/DebugInfo/DWARF/DWARFDebugInfoEntry.h
-include/libLLVM/llvm/DebugInfo/DWARF/DWARFDebugLine.h
-include/libLLVM/llvm/DebugInfo/DWARF/DWARFDebugLoc.h
-include/libLLVM/llvm/DebugInfo/DWARF/DWARFDebugMacro.h
-include/libLLVM/llvm/DebugInfo/DWARF/DWARFDebugPubTable.h
-include/libLLVM/llvm/DebugInfo/DWARF/DWARFDebugRangeList.h
-include/libLLVM/llvm/DebugInfo/DWARF/DWARFDebugRnglists.h
-include/libLLVM/llvm/DebugInfo/DWARF/DWARFDie.h
-include/libLLVM/llvm/DebugInfo/DWARF/DWARFExpression.h
-include/libLLVM/llvm/DebugInfo/DWARF/DWARFFormValue.h
-include/libLLVM/llvm/DebugInfo/DWARF/DWARFGdbIndex.h
-include/libLLVM/llvm/DebugInfo/DWARF/DWARFListTable.h
-include/libLLVM/llvm/DebugInfo/DWARF/DWARFLocationExpression.h
-include/libLLVM/llvm/DebugInfo/DWARF/DWARFObject.h
-include/libLLVM/llvm/DebugInfo/DWARF/DWARFRelocMap.h
-include/libLLVM/llvm/DebugInfo/DWARF/DWARFSection.h
-include/libLLVM/llvm/DebugInfo/DWARF/DWARFTypeUnit.h
-include/libLLVM/llvm/DebugInfo/DWARF/DWARFUnit.h
-include/libLLVM/llvm/DebugInfo/DWARF/DWARFUnitIndex.h
-include/libLLVM/llvm/DebugInfo/DWARF/DWARFVerifier.h
-include/libLLVM/llvm/DebugInfo/GSYM/DwarfTransformer.h
-include/libLLVM/llvm/DebugInfo/GSYM/FileEntry.h
-include/libLLVM/llvm/DebugInfo/GSYM/FileWriter.h
-include/libLLVM/llvm/DebugInfo/GSYM/FunctionInfo.h
-include/libLLVM/llvm/DebugInfo/GSYM/GsymCreator.h
-include/libLLVM/llvm/DebugInfo/GSYM/GsymReader.h
-include/libLLVM/llvm/DebugInfo/GSYM/Header.h
-include/libLLVM/llvm/DebugInfo/GSYM/InlineInfo.h
-include/libLLVM/llvm/DebugInfo/GSYM/LineEntry.h
-include/libLLVM/llvm/DebugInfo/GSYM/LineTable.h
-include/libLLVM/llvm/DebugInfo/GSYM/LookupResult.h
-include/libLLVM/llvm/DebugInfo/GSYM/ObjectFileTransformer.h
-include/libLLVM/llvm/DebugInfo/GSYM/Range.h
-include/libLLVM/llvm/DebugInfo/GSYM/StringTable.h
-include/libLLVM/llvm/DebugInfo/MSF/IMSFFile.h
-include/libLLVM/llvm/DebugInfo/MSF/MSFBuilder.h
-include/libLLVM/llvm/DebugInfo/MSF/MSFCommon.h
-include/libLLVM/llvm/DebugInfo/MSF/MSFError.h
-include/libLLVM/llvm/DebugInfo/MSF/MappedBlockStream.h
-include/libLLVM/llvm/DebugInfo/PDB/ConcreteSymbolEnumerator.h
-include/libLLVM/llvm/DebugInfo/PDB/DIA/DIADataStream.h
-include/libLLVM/llvm/DebugInfo/PDB/DIA/DIAEnumDebugStreams.h
-include/libLLVM/llvm/DebugInfo/PDB/DIA/DIAEnumFrameData.h
-include/libLLVM/llvm/DebugInfo/PDB/DIA/DIAEnumInjectedSources.h
-include/libLLVM/llvm/DebugInfo/PDB/DIA/DIAEnumLineNumbers.h
-include/libLLVM/llvm/DebugInfo/PDB/DIA/DIAEnumSectionContribs.h
-include/libLLVM/llvm/DebugInfo/PDB/DIA/DIAEnumSourceFiles.h
-include/libLLVM/llvm/DebugInfo/PDB/DIA/DIAEnumSymbols.h
-include/libLLVM/llvm/DebugInfo/PDB/DIA/DIAEnumTables.h
-include/libLLVM/llvm/DebugInfo/PDB/DIA/DIAError.h
-include/libLLVM/llvm/DebugInfo/PDB/DIA/DIAFrameData.h
-include/libLLVM/llvm/DebugInfo/PDB/DIA/DIAInjectedSource.h
-include/libLLVM/llvm/DebugInfo/PDB/DIA/DIALineNumber.h
-include/libLLVM/llvm/DebugInfo/PDB/DIA/DIARawSymbol.h
-include/libLLVM/llvm/DebugInfo/PDB/DIA/DIASectionContrib.h
-include/libLLVM/llvm/DebugInfo/PDB/DIA/DIASession.h
-include/libLLVM/llvm/DebugInfo/PDB/DIA/DIASourceFile.h
-include/libLLVM/llvm/DebugInfo/PDB/DIA/DIASupport.h
-include/libLLVM/llvm/DebugInfo/PDB/DIA/DIATable.h
-include/libLLVM/llvm/DebugInfo/PDB/DIA/DIAUtils.h
-include/libLLVM/llvm/DebugInfo/PDB/GenericError.h
-include/libLLVM/llvm/DebugInfo/PDB/IPDBDataStream.h
-include/libLLVM/llvm/DebugInfo/PDB/IPDBEnumChildren.h
-include/libLLVM/llvm/DebugInfo/PDB/IPDBFrameData.h
-include/libLLVM/llvm/DebugInfo/PDB/IPDBInjectedSource.h
-include/libLLVM/llvm/DebugInfo/PDB/IPDBLineNumber.h
-include/libLLVM/llvm/DebugInfo/PDB/IPDBRawSymbol.h
-include/libLLVM/llvm/DebugInfo/PDB/IPDBSectionContrib.h
-include/libLLVM/llvm/DebugInfo/PDB/IPDBSession.h
-include/libLLVM/llvm/DebugInfo/PDB/IPDBSourceFile.h
-include/libLLVM/llvm/DebugInfo/PDB/IPDBTable.h
-include/libLLVM/llvm/DebugInfo/PDB/Native/DbiModuleDescriptor.h
-include/libLLVM/llvm/DebugInfo/PDB/Native/DbiModuleDescriptorBuilder.h
-include/libLLVM/llvm/DebugInfo/PDB/Native/DbiModuleList.h
-include/libLLVM/llvm/DebugInfo/PDB/Native/DbiStream.h
-include/libLLVM/llvm/DebugInfo/PDB/Native/DbiStreamBuilder.h
-include/libLLVM/llvm/DebugInfo/PDB/Native/EnumTables.h
-include/libLLVM/llvm/DebugInfo/PDB/Native/Formatters.h
-include/libLLVM/llvm/DebugInfo/PDB/Native/GSIStreamBuilder.h
-include/libLLVM/llvm/DebugInfo/PDB/Native/GlobalsStream.h
-include/libLLVM/llvm/DebugInfo/PDB/Native/Hash.h
-include/libLLVM/llvm/DebugInfo/PDB/Native/HashTable.h
-include/libLLVM/llvm/DebugInfo/PDB/Native/ISectionContribVisitor.h
-include/libLLVM/llvm/DebugInfo/PDB/Native/InfoStream.h
-include/libLLVM/llvm/DebugInfo/PDB/Native/InfoStreamBuilder.h
-include/libLLVM/llvm/DebugInfo/PDB/Native/InjectedSourceStream.h
-include/libLLVM/llvm/DebugInfo/PDB/Native/ModuleDebugStream.h
-include/libLLVM/llvm/DebugInfo/PDB/Native/NamedStreamMap.h
-include/libLLVM/llvm/DebugInfo/PDB/Native/NativeCompilandSymbol.h
-include/libLLVM/llvm/DebugInfo/PDB/Native/NativeEnumGlobals.h
-include/libLLVM/llvm/DebugInfo/PDB/Native/NativeEnumInjectedSources.h
-include/libLLVM/llvm/DebugInfo/PDB/Native/NativeEnumLineNumbers.h
-include/libLLVM/llvm/DebugInfo/PDB/Native/NativeEnumModules.h
-include/libLLVM/llvm/DebugInfo/PDB/Native/NativeEnumSymbols.h
-include/libLLVM/llvm/DebugInfo/PDB/Native/NativeEnumTypes.h
-include/libLLVM/llvm/DebugInfo/PDB/Native/NativeExeSymbol.h
-include/libLLVM/llvm/DebugInfo/PDB/Native/NativeFunctionSymbol.h
-include/libLLVM/llvm/DebugInfo/PDB/Native/NativeInlineSiteSymbol.h
-include/libLLVM/llvm/DebugInfo/PDB/Native/NativeLineNumber.h
-include/libLLVM/llvm/DebugInfo/PDB/Native/NativePublicSymbol.h
-include/libLLVM/llvm/DebugInfo/PDB/Native/NativeRawSymbol.h
-include/libLLVM/llvm/DebugInfo/PDB/Native/NativeSession.h
-include/libLLVM/llvm/DebugInfo/PDB/Native/NativeSourceFile.h
-include/libLLVM/llvm/DebugInfo/PDB/Native/NativeSymbolEnumerator.h
-include/libLLVM/llvm/DebugInfo/PDB/Native/NativeTypeArray.h
-include/libLLVM/llvm/DebugInfo/PDB/Native/NativeTypeBuiltin.h
-include/libLLVM/llvm/DebugInfo/PDB/Native/NativeTypeEnum.h
-include/libLLVM/llvm/DebugInfo/PDB/Native/NativeTypeFunctionSig.h
-include/libLLVM/llvm/DebugInfo/PDB/Native/NativeTypePointer.h
-include/libLLVM/llvm/DebugInfo/PDB/Native/NativeTypeTypedef.h
-include/libLLVM/llvm/DebugInfo/PDB/Native/NativeTypeUDT.h
-include/libLLVM/llvm/DebugInfo/PDB/Native/NativeTypeVTShape.h
-include/libLLVM/llvm/DebugInfo/PDB/Native/PDBFile.h
-include/libLLVM/llvm/DebugInfo/PDB/Native/PDBFileBuilder.h
-include/libLLVM/llvm/DebugInfo/PDB/Native/PDBStringTable.h
-include/libLLVM/llvm/DebugInfo/PDB/Native/PDBStringTableBuilder.h
-include/libLLVM/llvm/DebugInfo/PDB/Native/PublicsStream.h
-include/libLLVM/llvm/DebugInfo/PDB/Native/RawConstants.h
-include/libLLVM/llvm/DebugInfo/PDB/Native/RawError.h
-include/libLLVM/llvm/DebugInfo/PDB/Native/RawTypes.h
-include/libLLVM/llvm/DebugInfo/PDB/Native/SymbolCache.h
-include/libLLVM/llvm/DebugInfo/PDB/Native/SymbolStream.h
-include/libLLVM/llvm/DebugInfo/PDB/Native/TpiHashing.h
-include/libLLVM/llvm/DebugInfo/PDB/Native/TpiStream.h
-include/libLLVM/llvm/DebugInfo/PDB/Native/TpiStreamBuilder.h
-include/libLLVM/llvm/DebugInfo/PDB/PDB.h
-include/libLLVM/llvm/DebugInfo/PDB/PDBContext.h
-include/libLLVM/llvm/DebugInfo/PDB/PDBExtras.h
-include/libLLVM/llvm/DebugInfo/PDB/PDBSymDumper.h
-include/libLLVM/llvm/DebugInfo/PDB/PDBSymbol.h
-include/libLLVM/llvm/DebugInfo/PDB/PDBSymbolAnnotation.h
-include/libLLVM/llvm/DebugInfo/PDB/PDBSymbolBlock.h
-include/libLLVM/llvm/DebugInfo/PDB/PDBSymbolCompiland.h
-include/libLLVM/llvm/DebugInfo/PDB/PDBSymbolCompilandDetails.h
-include/libLLVM/llvm/DebugInfo/PDB/PDBSymbolCompilandEnv.h
-include/libLLVM/llvm/DebugInfo/PDB/PDBSymbolCustom.h
-include/libLLVM/llvm/DebugInfo/PDB/PDBSymbolData.h
-include/libLLVM/llvm/DebugInfo/PDB/PDBSymbolExe.h
-include/libLLVM/llvm/DebugInfo/PDB/PDBSymbolFunc.h
-include/libLLVM/llvm/DebugInfo/PDB/PDBSymbolFuncDebugEnd.h
-include/libLLVM/llvm/DebugInfo/PDB/PDBSymbolFuncDebugStart.h
-include/libLLVM/llvm/DebugInfo/PDB/PDBSymbolLabel.h
-include/libLLVM/llvm/DebugInfo/PDB/PDBSymbolPublicSymbol.h
-include/libLLVM/llvm/DebugInfo/PDB/PDBSymbolThunk.h
-include/libLLVM/llvm/DebugInfo/PDB/PDBSymbolTypeArray.h
-include/libLLVM/llvm/DebugInfo/PDB/PDBSymbolTypeBaseClass.h
-include/libLLVM/llvm/DebugInfo/PDB/PDBSymbolTypeBuiltin.h
-include/libLLVM/llvm/DebugInfo/PDB/PDBSymbolTypeCustom.h
-include/libLLVM/llvm/DebugInfo/PDB/PDBSymbolTypeDimension.h
-include/libLLVM/llvm/DebugInfo/PDB/PDBSymbolTypeEnum.h
-include/libLLVM/llvm/DebugInfo/PDB/PDBSymbolTypeFriend.h
-include/libLLVM/llvm/DebugInfo/PDB/PDBSymbolTypeFunctionArg.h
-include/libLLVM/llvm/DebugInfo/PDB/PDBSymbolTypeFunctionSig.h
-include/libLLVM/llvm/DebugInfo/PDB/PDBSymbolTypeManaged.h
-include/libLLVM/llvm/DebugInfo/PDB/PDBSymbolTypePointer.h
-include/libLLVM/llvm/DebugInfo/PDB/PDBSymbolTypeTypedef.h
-include/libLLVM/llvm/DebugInfo/PDB/PDBSymbolTypeUDT.h
-include/libLLVM/llvm/DebugInfo/PDB/PDBSymbolTypeVTable.h
-include/libLLVM/llvm/DebugInfo/PDB/PDBSymbolTypeVTableShape.h
-include/libLLVM/llvm/DebugInfo/PDB/PDBSymbolUnknown.h
-include/libLLVM/llvm/DebugInfo/PDB/PDBSymbolUsingNamespace.h
-include/libLLVM/llvm/DebugInfo/PDB/PDBTypes.h
-include/libLLVM/llvm/DebugInfo/PDB/UDTLayout.h
-include/libLLVM/llvm/DebugInfo/Symbolize/DIPrinter.h
-include/libLLVM/llvm/DebugInfo/Symbolize/SymbolizableModule.h
-include/libLLVM/llvm/DebugInfo/Symbolize/Symbolize.h
-include/libLLVM/llvm/Demangle/Demangle.h
-include/libLLVM/llvm/Demangle/DemangleConfig.h
-include/libLLVM/llvm/Demangle/ItaniumDemangle.h
-include/libLLVM/llvm/Demangle/MicrosoftDemangle.h
-include/libLLVM/llvm/Demangle/MicrosoftDemangleNodes.h
-include/libLLVM/llvm/Demangle/StringView.h
-include/libLLVM/llvm/Demangle/Utility.h
-include/libLLVM/llvm/ExecutionEngine/ExecutionEngine.h
-include/libLLVM/llvm/ExecutionEngine/GenericValue.h
-include/libLLVM/llvm/ExecutionEngine/Interpreter.h
-include/libLLVM/llvm/ExecutionEngine/JITEventListener.h
-include/libLLVM/llvm/ExecutionEngine/JITLink/EHFrameSupport.h
-include/libLLVM/llvm/ExecutionEngine/JITLink/ELF.h
-include/libLLVM/llvm/ExecutionEngine/JITLink/ELF_riscv.h
-include/libLLVM/llvm/ExecutionEngine/JITLink/ELF_x86_64.h
-include/libLLVM/llvm/ExecutionEngine/JITLink/JITLink.h
-include/libLLVM/llvm/ExecutionEngine/JITLink/JITLinkDylib.h
-include/libLLVM/llvm/ExecutionEngine/JITLink/JITLinkMemoryManager.h
-include/libLLVM/llvm/ExecutionEngine/JITLink/MachO.h
-include/libLLVM/llvm/ExecutionEngine/JITLink/MachO_arm64.h
-include/libLLVM/llvm/ExecutionEngine/JITLink/MachO_x86_64.h
-include/libLLVM/llvm/ExecutionEngine/JITLink/riscv.h
-include/libLLVM/llvm/ExecutionEngine/JITLink/x86_64.h
-include/libLLVM/llvm/ExecutionEngine/JITSymbol.h
-include/libLLVM/llvm/ExecutionEngine/MCJIT.h
-include/libLLVM/llvm/ExecutionEngine/OProfileWrapper.h
-include/libLLVM/llvm/ExecutionEngine/ObjectCache.h
-include/libLLVM/llvm/ExecutionEngine/Orc/CompileOnDemandLayer.h
-include/libLLVM/llvm/ExecutionEngine/Orc/CompileUtils.h
-include/libLLVM/llvm/ExecutionEngine/Orc/Core.h
-include/libLLVM/llvm/ExecutionEngine/Orc/DebugObjectManagerPlugin.h
-include/libLLVM/llvm/ExecutionEngine/Orc/DebugUtils.h
-include/libLLVM/llvm/ExecutionEngine/Orc/EPCDebugObjectRegistrar.h
-include/libLLVM/llvm/ExecutionEngine/Orc/EPCDynamicLibrarySearchGenerator.h
-include/libLLVM/llvm/ExecutionEngine/Orc/EPCEHFrameRegistrar.h
-include/libLLVM/llvm/ExecutionEngine/Orc/EPCIndirectionUtils.h
-include/libLLVM/llvm/ExecutionEngine/Orc/ExecutionUtils.h
-include/libLLVM/llvm/ExecutionEngine/Orc/ExecutorProcessControl.h
-include/libLLVM/llvm/ExecutionEngine/Orc/IRCompileLayer.h
-include/libLLVM/llvm/ExecutionEngine/Orc/IRTransformLayer.h
-include/libLLVM/llvm/ExecutionEngine/Orc/IndirectionUtils.h
-include/libLLVM/llvm/ExecutionEngine/Orc/JITTargetMachineBuilder.h
-include/libLLVM/llvm/ExecutionEngine/Orc/LLJIT.h
-include/libLLVM/llvm/ExecutionEngine/Orc/LLVMSPSSerializers.h
-include/libLLVM/llvm/ExecutionEngine/Orc/Layer.h
-include/libLLVM/llvm/ExecutionEngine/Orc/LazyReexports.h
-include/libLLVM/llvm/ExecutionEngine/Orc/MachOPlatform.h
-include/libLLVM/llvm/ExecutionEngine/Orc/Mangling.h
-include/libLLVM/llvm/ExecutionEngine/Orc/ObjectLinkingLayer.h
-include/libLLVM/llvm/ExecutionEngine/Orc/ObjectTransformLayer.h
-include/libLLVM/llvm/ExecutionEngine/Orc/OrcABISupport.h
-include/libLLVM/llvm/ExecutionEngine/Orc/OrcRPCExecutorProcessControl.h
-include/libLLVM/llvm/ExecutionEngine/Orc/OrcRemoteTargetClient.h
-include/libLLVM/llvm/ExecutionEngine/Orc/OrcRemoteTargetRPCAPI.h
-include/libLLVM/llvm/ExecutionEngine/Orc/OrcRemoteTargetServer.h
-include/libLLVM/llvm/ExecutionEngine/Orc/RTDyldObjectLinkingLayer.h
-include/libLLVM/llvm/ExecutionEngine/Orc/Shared/ExecutorAddress.h
-include/libLLVM/llvm/ExecutionEngine/Orc/Shared/FDRawByteChannel.h
-include/libLLVM/llvm/ExecutionEngine/Orc/Shared/OrcError.h
-include/libLLVM/llvm/ExecutionEngine/Orc/Shared/RPCUtils.h
-include/libLLVM/llvm/ExecutionEngine/Orc/Shared/RawByteChannel.h
-include/libLLVM/llvm/ExecutionEngine/Orc/Shared/Serialization.h
-include/libLLVM/llvm/ExecutionEngine/Orc/Shared/SimplePackedSerialization.h
-include/libLLVM/llvm/ExecutionEngine/Orc/Shared/TargetProcessControlTypes.h
-include/libLLVM/llvm/ExecutionEngine/Orc/Shared/WrapperFunctionUtils.h
-include/libLLVM/llvm/ExecutionEngine/Orc/SpeculateAnalyses.h
-include/libLLVM/llvm/ExecutionEngine/Orc/Speculation.h
-include/libLLVM/llvm/ExecutionEngine/Orc/SymbolStringPool.h
-include/libLLVM/llvm/ExecutionEngine/Orc/TargetProcess/JITLoaderGDB.h
-include/libLLVM/llvm/ExecutionEngine/Orc/TargetProcess/OrcRPCTPCServer.h
-include/libLLVM/llvm/ExecutionEngine/Orc/TargetProcess/RegisterEHFrames.h
-include/libLLVM/llvm/ExecutionEngine/Orc/TargetProcess/TargetExecutionUtils.h
-include/libLLVM/llvm/ExecutionEngine/Orc/ThreadSafeModule.h
-include/libLLVM/llvm/ExecutionEngine/OrcMCJITReplacement.h
-include/libLLVM/llvm/ExecutionEngine/OrcV1Deprecation.h
-include/libLLVM/llvm/ExecutionEngine/RTDyldMemoryManager.h
-include/libLLVM/llvm/ExecutionEngine/RuntimeDyld.h
-include/libLLVM/llvm/ExecutionEngine/RuntimeDyldChecker.h
-include/libLLVM/llvm/ExecutionEngine/SectionMemoryManager.h
-include/libLLVM/llvm/FileCheck/FileCheck.h
-include/libLLVM/llvm/Frontend/Directive/DirectiveBase.td
-include/libLLVM/llvm/Frontend/OpenACC/ACC.h.inc
-include/libLLVM/llvm/Frontend/OpenACC/ACC.inc
-include/libLLVM/llvm/Frontend/OpenACC/ACC.td
-include/libLLVM/llvm/Frontend/OpenMP/OMP.h.inc
-include/libLLVM/llvm/Frontend/OpenMP/OMP.inc
-include/libLLVM/llvm/Frontend/OpenMP/OMP.td
-include/libLLVM/llvm/Frontend/OpenMP/OMPConstants.h
-include/libLLVM/llvm/Frontend/OpenMP/OMPContext.h
-include/libLLVM/llvm/Frontend/OpenMP/OMPGridValues.h
-include/libLLVM/llvm/Frontend/OpenMP/OMPIRBuilder.h
-include/libLLVM/llvm/Frontend/OpenMP/OMPKinds.def
-include/libLLVM/llvm/FuzzMutate/FuzzerCLI.h
-include/libLLVM/llvm/FuzzMutate/IRMutator.h
-include/libLLVM/llvm/FuzzMutate/OpDescriptor.h
-include/libLLVM/llvm/FuzzMutate/Operations.h
-include/libLLVM/llvm/FuzzMutate/Random.h
-include/libLLVM/llvm/FuzzMutate/RandomIRBuilder.h
-include/libLLVM/llvm/IR/AbstractCallSite.h
-include/libLLVM/llvm/IR/Argument.h
-include/libLLVM/llvm/IR/AssemblyAnnotationWriter.h
-include/libLLVM/llvm/IR/Assumptions.h
-include/libLLVM/llvm/IR/Attributes.h
-include/libLLVM/llvm/IR/Attributes.inc
-include/libLLVM/llvm/IR/Attributes.td
-include/libLLVM/llvm/IR/AutoUpgrade.h
-include/libLLVM/llvm/IR/BasicBlock.h
-include/libLLVM/llvm/IR/BuiltinGCs.h
-include/libLLVM/llvm/IR/CFG.h
-include/libLLVM/llvm/IR/CallingConv.h
-include/libLLVM/llvm/IR/Comdat.h
-include/libLLVM/llvm/IR/Constant.h
-include/libLLVM/llvm/IR/ConstantFolder.h
-include/libLLVM/llvm/IR/ConstantRange.h
-include/libLLVM/llvm/IR/Constants.h
-include/libLLVM/llvm/IR/ConstrainedOps.def
-include/libLLVM/llvm/IR/DIBuilder.h
-include/libLLVM/llvm/IR/DataLayout.h
-include/libLLVM/llvm/IR/DebugInfo.h
-include/libLLVM/llvm/IR/DebugInfoFlags.def
-include/libLLVM/llvm/IR/DebugInfoMetadata.h
-include/libLLVM/llvm/IR/DebugLoc.h
-include/libLLVM/llvm/IR/DerivedTypes.h
-include/libLLVM/llvm/IR/DerivedUser.h
-include/libLLVM/llvm/IR/DiagnosticHandler.h
-include/libLLVM/llvm/IR/DiagnosticInfo.h
-include/libLLVM/llvm/IR/DiagnosticPrinter.h
-include/libLLVM/llvm/IR/Dominators.h
-include/libLLVM/llvm/IR/FPEnv.h
-include/libLLVM/llvm/IR/FixedMetadataKinds.def
-include/libLLVM/llvm/IR/FixedPointBuilder.h
-include/libLLVM/llvm/IR/Function.h
-include/libLLVM/llvm/IR/GCStrategy.h
-include/libLLVM/llvm/IR/GVMaterializer.h
-include/libLLVM/llvm/IR/GetElementPtrTypeIterator.h
-include/libLLVM/llvm/IR/GlobalAlias.h
-include/libLLVM/llvm/IR/GlobalIFunc.h
-include/libLLVM/llvm/IR/GlobalIndirectSymbol.h
-include/libLLVM/llvm/IR/GlobalObject.h
-include/libLLVM/llvm/IR/GlobalValue.h
-include/libLLVM/llvm/IR/GlobalVariable.h
-include/libLLVM/llvm/IR/IRBuilder.h
-include/libLLVM/llvm/IR/IRBuilderFolder.h
-include/libLLVM/llvm/IR/IRPrintingPasses.h
-include/libLLVM/llvm/IR/InlineAsm.h
-include/libLLVM/llvm/IR/InstIterator.h
-include/libLLVM/llvm/IR/InstVisitor.h
-include/libLLVM/llvm/IR/InstrTypes.h
-include/libLLVM/llvm/IR/Instruction.def
-include/libLLVM/llvm/IR/Instruction.h
-include/libLLVM/llvm/IR/Instructions.h
-include/libLLVM/llvm/IR/IntrinsicEnums.inc
-include/libLLVM/llvm/IR/IntrinsicImpl.inc
-include/libLLVM/llvm/IR/IntrinsicInst.h
-include/libLLVM/llvm/IR/Intrinsics.h
-include/libLLVM/llvm/IR/Intrinsics.td
-include/libLLVM/llvm/IR/IntrinsicsAArch64.h
-include/libLLVM/llvm/IR/IntrinsicsAArch64.td
-include/libLLVM/llvm/IR/IntrinsicsAMDGPU.h
-include/libLLVM/llvm/IR/IntrinsicsAMDGPU.td
-include/libLLVM/llvm/IR/IntrinsicsARM.h
-include/libLLVM/llvm/IR/IntrinsicsARM.td
-include/libLLVM/llvm/IR/IntrinsicsBPF.h
-include/libLLVM/llvm/IR/IntrinsicsBPF.td
-include/libLLVM/llvm/IR/IntrinsicsHexagon.h
-include/libLLVM/llvm/IR/IntrinsicsHexagon.td
-include/libLLVM/llvm/IR/IntrinsicsHexagonDep.td
-include/libLLVM/llvm/IR/IntrinsicsMips.h
-include/libLLVM/llvm/IR/IntrinsicsMips.td
-include/libLLVM/llvm/IR/IntrinsicsNVPTX.h
-include/libLLVM/llvm/IR/IntrinsicsNVVM.td
-include/libLLVM/llvm/IR/IntrinsicsPowerPC.h
-include/libLLVM/llvm/IR/IntrinsicsPowerPC.td
-include/libLLVM/llvm/IR/IntrinsicsR600.h
-include/libLLVM/llvm/IR/IntrinsicsRISCV.h
-include/libLLVM/llvm/IR/IntrinsicsRISCV.td
-include/libLLVM/llvm/IR/IntrinsicsS390.h
-include/libLLVM/llvm/IR/IntrinsicsSystemZ.td
-include/libLLVM/llvm/IR/IntrinsicsVE.h
-include/libLLVM/llvm/IR/IntrinsicsVE.td
-include/libLLVM/llvm/IR/IntrinsicsVEVL.gen.td
-include/libLLVM/llvm/IR/IntrinsicsWebAssembly.h
-include/libLLVM/llvm/IR/IntrinsicsWebAssembly.td
-include/libLLVM/llvm/IR/IntrinsicsX86.h
-include/libLLVM/llvm/IR/IntrinsicsX86.td
-include/libLLVM/llvm/IR/IntrinsicsXCore.h
-include/libLLVM/llvm/IR/IntrinsicsXCore.td
-include/libLLVM/llvm/IR/LLVMContext.h
-include/libLLVM/llvm/IR/LLVMRemarkStreamer.h
-include/libLLVM/llvm/IR/LegacyPassManager.h
-include/libLLVM/llvm/IR/LegacyPassManagers.h
-include/libLLVM/llvm/IR/LegacyPassNameParser.h
-include/libLLVM/llvm/IR/MDBuilder.h
-include/libLLVM/llvm/IR/Mangler.h
-include/libLLVM/llvm/IR/MatrixBuilder.h
-include/libLLVM/llvm/IR/Metadata.def
-include/libLLVM/llvm/IR/Metadata.h
-include/libLLVM/llvm/IR/Module.h
-include/libLLVM/llvm/IR/ModuleSlotTracker.h
-include/libLLVM/llvm/IR/ModuleSummaryIndex.h
-include/libLLVM/llvm/IR/ModuleSummaryIndexYAML.h
-include/libLLVM/llvm/IR/NoFolder.h
-include/libLLVM/llvm/IR/OperandTraits.h
-include/libLLVM/llvm/IR/Operator.h
-include/libLLVM/llvm/IR/OptBisect.h
-include/libLLVM/llvm/IR/PassInstrumentation.h
-include/libLLVM/llvm/IR/PassManager.h
-include/libLLVM/llvm/IR/PassManagerImpl.h
-include/libLLVM/llvm/IR/PassManagerInternal.h
-include/libLLVM/llvm/IR/PassTimingInfo.h
-include/libLLVM/llvm/IR/PatternMatch.h
-include/libLLVM/llvm/IR/PredIteratorCache.h
-include/libLLVM/llvm/IR/PrintPasses.h
-include/libLLVM/llvm/IR/ProfileSummary.h
-include/libLLVM/llvm/IR/PseudoProbe.h
-include/libLLVM/llvm/IR/ReplaceConstant.h
-include/libLLVM/llvm/IR/RuntimeLibcalls.def
-include/libLLVM/llvm/IR/SafepointIRVerifier.h
-include/libLLVM/llvm/IR/Statepoint.h
-include/libLLVM/llvm/IR/StructuralHash.h
-include/libLLVM/llvm/IR/SymbolTableListTraits.h
-include/libLLVM/llvm/IR/TrackingMDRef.h
-include/libLLVM/llvm/IR/Type.h
-include/libLLVM/llvm/IR/TypeFinder.h
-include/libLLVM/llvm/IR/Use.h
-include/libLLVM/llvm/IR/UseListOrder.h
-include/libLLVM/llvm/IR/User.h
-include/libLLVM/llvm/IR/VPIntrinsics.def
-include/libLLVM/llvm/IR/Value.def
-include/libLLVM/llvm/IR/Value.h
-include/libLLVM/llvm/IR/ValueHandle.h
-include/libLLVM/llvm/IR/ValueMap.h
-include/libLLVM/llvm/IR/ValueSymbolTable.h
-include/libLLVM/llvm/IR/Verifier.h
-include/libLLVM/llvm/IRReader/IRReader.h
-include/libLLVM/llvm/InitializePasses.h
-include/libLLVM/llvm/InterfaceStub/ELFObjHandler.h
-include/libLLVM/llvm/InterfaceStub/IFSHandler.h
-include/libLLVM/llvm/InterfaceStub/IFSStub.h
-include/libLLVM/llvm/LTO/Caching.h
-include/libLLVM/llvm/LTO/Config.h
-include/libLLVM/llvm/LTO/LTO.h
-include/libLLVM/llvm/LTO/LTOBackend.h
-include/libLLVM/llvm/LTO/SummaryBasedOptimizations.h
-include/libLLVM/llvm/LTO/legacy/LTOCodeGenerator.h
-include/libLLVM/llvm/LTO/legacy/LTOModule.h
-include/libLLVM/llvm/LTO/legacy/ThinLTOCodeGenerator.h
-include/libLLVM/llvm/LTO/legacy/UpdateCompilerUsed.h
-include/libLLVM/llvm/LineEditor/LineEditor.h
-include/libLLVM/llvm/LinkAllIR.h
-include/libLLVM/llvm/LinkAllPasses.h
-include/libLLVM/llvm/Linker/IRMover.h
-include/libLLVM/llvm/Linker/Linker.h
-include/libLLVM/llvm/MC/ConstantPools.h
-include/libLLVM/llvm/MC/LaneBitmask.h
-include/libLLVM/llvm/MC/MCAsmBackend.h
-include/libLLVM/llvm/MC/MCAsmInfo.h
-include/libLLVM/llvm/MC/MCAsmInfoCOFF.h
-include/libLLVM/llvm/MC/MCAsmInfoDarwin.h
-include/libLLVM/llvm/MC/MCAsmInfoELF.h
-include/libLLVM/llvm/MC/MCAsmInfoWasm.h
-include/libLLVM/llvm/MC/MCAsmInfoXCOFF.h
-include/libLLVM/llvm/MC/MCAsmLayout.h
-include/libLLVM/llvm/MC/MCAsmMacro.h
-include/libLLVM/llvm/MC/MCAssembler.h
-include/libLLVM/llvm/MC/MCCodeEmitter.h
-include/libLLVM/llvm/MC/MCCodeView.h
-include/libLLVM/llvm/MC/MCContext.h
-include/libLLVM/llvm/MC/MCDirectives.h
-include/libLLVM/llvm/MC/MCDisassembler/MCDisassembler.h
-include/libLLVM/llvm/MC/MCDisassembler/MCExternalSymbolizer.h
-include/libLLVM/llvm/MC/MCDisassembler/MCRelocationInfo.h
-include/libLLVM/llvm/MC/MCDisassembler/MCSymbolizer.h
-include/libLLVM/llvm/MC/MCDwarf.h
-include/libLLVM/llvm/MC/MCELFObjectWriter.h
-include/libLLVM/llvm/MC/MCELFStreamer.h
-include/libLLVM/llvm/MC/MCExpr.h
-include/libLLVM/llvm/MC/MCFixedLenDisassembler.h
-include/libLLVM/llvm/MC/MCFixup.h
-include/libLLVM/llvm/MC/MCFixupKindInfo.h
-include/libLLVM/llvm/MC/MCFragment.h
-include/libLLVM/llvm/MC/MCInst.h
-include/libLLVM/llvm/MC/MCInstBuilder.h
-include/libLLVM/llvm/MC/MCInstPrinter.h
-include/libLLVM/llvm/MC/MCInstrAnalysis.h
-include/libLLVM/llvm/MC/MCInstrDesc.h
-include/libLLVM/llvm/MC/MCInstrInfo.h
-include/libLLVM/llvm/MC/MCInstrItineraries.h
-include/libLLVM/llvm/MC/MCLabel.h
-include/libLLVM/llvm/MC/MCLinkerOptimizationHint.h
-include/libLLVM/llvm/MC/MCMachObjectWriter.h
-include/libLLVM/llvm/MC/MCObjectFileInfo.h
-include/libLLVM/llvm/MC/MCObjectStreamer.h
-include/libLLVM/llvm/MC/MCObjectWriter.h
-include/libLLVM/llvm/MC/MCParser/AsmCond.h
-include/libLLVM/llvm/MC/MCParser/AsmLexer.h
-include/libLLVM/llvm/MC/MCParser/MCAsmLexer.h
-include/libLLVM/llvm/MC/MCParser/MCAsmParser.h
-include/libLLVM/llvm/MC/MCParser/MCAsmParserExtension.h
-include/libLLVM/llvm/MC/MCParser/MCAsmParserUtils.h
-include/libLLVM/llvm/MC/MCParser/MCParsedAsmOperand.h
-include/libLLVM/llvm/MC/MCParser/MCTargetAsmParser.h
-include/libLLVM/llvm/MC/MCPseudoProbe.h
-include/libLLVM/llvm/MC/MCRegister.h
-include/libLLVM/llvm/MC/MCRegisterInfo.h
-include/libLLVM/llvm/MC/MCSchedule.h
-include/libLLVM/llvm/MC/MCSection.h
-include/libLLVM/llvm/MC/MCSectionCOFF.h
-include/libLLVM/llvm/MC/MCSectionELF.h
-include/libLLVM/llvm/MC/MCSectionGOFF.h
-include/libLLVM/llvm/MC/MCSectionMachO.h
-include/libLLVM/llvm/MC/MCSectionWasm.h
-include/libLLVM/llvm/MC/MCSectionXCOFF.h
-include/libLLVM/llvm/MC/MCStreamer.h
-include/libLLVM/llvm/MC/MCSubtargetInfo.h
-include/libLLVM/llvm/MC/MCSymbol.h
-include/libLLVM/llvm/MC/MCSymbolCOFF.h
-include/libLLVM/llvm/MC/MCSymbolELF.h
-include/libLLVM/llvm/MC/MCSymbolGOFF.h
-include/libLLVM/llvm/MC/MCSymbolMachO.h
-include/libLLVM/llvm/MC/MCSymbolWasm.h
-include/libLLVM/llvm/MC/MCSymbolXCOFF.h
-include/libLLVM/llvm/MC/MCTargetOptions.h
-include/libLLVM/llvm/MC/MCTargetOptionsCommandFlags.h
-include/libLLVM/llvm/MC/MCValue.h
-include/libLLVM/llvm/MC/MCWasmObjectWriter.h
-include/libLLVM/llvm/MC/MCWasmStreamer.h
-include/libLLVM/llvm/MC/MCWin64EH.h
-include/libLLVM/llvm/MC/MCWinCOFFObjectWriter.h
-include/libLLVM/llvm/MC/MCWinCOFFStreamer.h
-include/libLLVM/llvm/MC/MCWinEH.h
-include/libLLVM/llvm/MC/MCXCOFFObjectWriter.h
-include/libLLVM/llvm/MC/MCXCOFFStreamer.h
-include/libLLVM/llvm/MC/MachineLocation.h
-include/libLLVM/llvm/MC/SectionKind.h
-include/libLLVM/llvm/MC/StringTableBuilder.h
-include/libLLVM/llvm/MC/SubtargetFeature.h
-include/libLLVM/llvm/MCA/CodeEmitter.h
-include/libLLVM/llvm/MCA/Context.h
-include/libLLVM/llvm/MCA/CustomBehaviour.h
-include/libLLVM/llvm/MCA/HWEventListener.h
-include/libLLVM/llvm/MCA/HardwareUnits/HardwareUnit.h
-include/libLLVM/llvm/MCA/HardwareUnits/LSUnit.h
-include/libLLVM/llvm/MCA/HardwareUnits/RegisterFile.h
-include/libLLVM/llvm/MCA/HardwareUnits/ResourceManager.h
-include/libLLVM/llvm/MCA/HardwareUnits/RetireControlUnit.h
-include/libLLVM/llvm/MCA/HardwareUnits/Scheduler.h
-include/libLLVM/llvm/MCA/InstrBuilder.h
-include/libLLVM/llvm/MCA/Instruction.h
-include/libLLVM/llvm/MCA/Pipeline.h
-include/libLLVM/llvm/MCA/SourceMgr.h
-include/libLLVM/llvm/MCA/Stages/DispatchStage.h
-include/libLLVM/llvm/MCA/Stages/EntryStage.h
-include/libLLVM/llvm/MCA/Stages/ExecuteStage.h
-include/libLLVM/llvm/MCA/Stages/InOrderIssueStage.h
-include/libLLVM/llvm/MCA/Stages/InstructionTables.h
-include/libLLVM/llvm/MCA/Stages/MicroOpQueueStage.h
-include/libLLVM/llvm/MCA/Stages/RetireStage.h
-include/libLLVM/llvm/MCA/Stages/Stage.h
-include/libLLVM/llvm/MCA/Support.h
-include/libLLVM/llvm/Object/Archive.h
-include/libLLVM/llvm/Object/ArchiveWriter.h
-include/libLLVM/llvm/Object/Binary.h
-include/libLLVM/llvm/Object/COFF.h
-include/libLLVM/llvm/Object/COFFImportFile.h
-include/libLLVM/llvm/Object/COFFModuleDefinition.h
-include/libLLVM/llvm/Object/CVDebugRecord.h
-include/libLLVM/llvm/Object/Decompressor.h
-include/libLLVM/llvm/Object/ELF.h
-include/libLLVM/llvm/Object/ELFObjectFile.h
-include/libLLVM/llvm/Object/ELFTypes.h
-include/libLLVM/llvm/Object/Error.h
-include/libLLVM/llvm/Object/FaultMapParser.h
-include/libLLVM/llvm/Object/IRObjectFile.h
-include/libLLVM/llvm/Object/IRSymtab.h
-include/libLLVM/llvm/Object/MachO.h
-include/libLLVM/llvm/Object/MachOUniversal.h
-include/libLLVM/llvm/Object/MachOUniversalWriter.h
-include/libLLVM/llvm/Object/Minidump.h
-include/libLLVM/llvm/Object/ModuleSymbolTable.h
-include/libLLVM/llvm/Object/ObjectFile.h
-include/libLLVM/llvm/Object/RelocationResolver.h
-include/libLLVM/llvm/Object/StackMapParser.h
-include/libLLVM/llvm/Object/SymbolSize.h
-include/libLLVM/llvm/Object/SymbolicFile.h
-include/libLLVM/llvm/Object/TapiFile.h
-include/libLLVM/llvm/Object/TapiUniversal.h
-include/libLLVM/llvm/Object/Wasm.h
-include/libLLVM/llvm/Object/WindowsMachineFlag.h
-include/libLLVM/llvm/Object/WindowsResource.h
-include/libLLVM/llvm/Object/XCOFFObjectFile.h
-include/libLLVM/llvm/ObjectYAML/ArchiveYAML.h
-include/libLLVM/llvm/ObjectYAML/COFFYAML.h
-include/libLLVM/llvm/ObjectYAML/CodeViewYAMLDebugSections.h
-include/libLLVM/llvm/ObjectYAML/CodeViewYAMLSymbols.h
-include/libLLVM/llvm/ObjectYAML/CodeViewYAMLTypeHashing.h
-include/libLLVM/llvm/ObjectYAML/CodeViewYAMLTypes.h
-include/libLLVM/llvm/ObjectYAML/DWARFEmitter.h
-include/libLLVM/llvm/ObjectYAML/DWARFYAML.h
-include/libLLVM/llvm/ObjectYAML/ELFYAML.h
-include/libLLVM/llvm/ObjectYAML/MachOYAML.h
-include/libLLVM/llvm/ObjectYAML/MinidumpYAML.h
-include/libLLVM/llvm/ObjectYAML/ObjectYAML.h
-include/libLLVM/llvm/ObjectYAML/WasmYAML.h
-include/libLLVM/llvm/ObjectYAML/XCOFFYAML.h
-include/libLLVM/llvm/ObjectYAML/YAML.h
-include/libLLVM/llvm/ObjectYAML/yaml2obj.h
-include/libLLVM/llvm/Option/Arg.h
-include/libLLVM/llvm/Option/ArgList.h
-include/libLLVM/llvm/Option/OptParser.td
-include/libLLVM/llvm/Option/OptSpecifier.h
-include/libLLVM/llvm/Option/OptTable.h
-include/libLLVM/llvm/Option/Option.h
-include/libLLVM/llvm/Pass.h
-include/libLLVM/llvm/PassAnalysisSupport.h
-include/libLLVM/llvm/PassInfo.h
-include/libLLVM/llvm/PassRegistry.h
-include/libLLVM/llvm/PassSupport.h
-include/libLLVM/llvm/Passes/PassBuilder.h
-include/libLLVM/llvm/Passes/PassPlugin.h
-include/libLLVM/llvm/Passes/StandardInstrumentations.h
-include/libLLVM/llvm/ProfileData/Coverage/CoverageMapping.h
-include/libLLVM/llvm/ProfileData/Coverage/CoverageMappingReader.h
-include/libLLVM/llvm/ProfileData/Coverage/CoverageMappingWriter.h
-include/libLLVM/llvm/ProfileData/GCOV.h
-include/libLLVM/llvm/ProfileData/InstrProf.h
-include/libLLVM/llvm/ProfileData/InstrProfData.inc
-include/libLLVM/llvm/ProfileData/InstrProfReader.h
-include/libLLVM/llvm/ProfileData/InstrProfWriter.h
-include/libLLVM/llvm/ProfileData/ProfileCommon.h
-include/libLLVM/llvm/ProfileData/SampleProf.h
-include/libLLVM/llvm/ProfileData/SampleProfReader.h
-include/libLLVM/llvm/ProfileData/SampleProfWriter.h
-include/libLLVM/llvm/Remarks/BitstreamRemarkContainer.h
-include/libLLVM/llvm/Remarks/BitstreamRemarkParser.h
-include/libLLVM/llvm/Remarks/BitstreamRemarkSerializer.h
-include/libLLVM/llvm/Remarks/HotnessThresholdParser.h
-include/libLLVM/llvm/Remarks/Remark.h
-include/libLLVM/llvm/Remarks/RemarkFormat.h
-include/libLLVM/llvm/Remarks/RemarkLinker.h
-include/libLLVM/llvm/Remarks/RemarkParser.h
-include/libLLVM/llvm/Remarks/RemarkSerializer.h
-include/libLLVM/llvm/Remarks/RemarkStreamer.h
-include/libLLVM/llvm/Remarks/RemarkStringTable.h
-include/libLLVM/llvm/Remarks/YAMLRemarkSerializer.h
-include/libLLVM/llvm/Support/AArch64TargetParser.def
-include/libLLVM/llvm/Support/AArch64TargetParser.h
-include/libLLVM/llvm/Support/AMDGPUMetadata.h
-include/libLLVM/llvm/Support/AMDHSAKernelDescriptor.h
-include/libLLVM/llvm/Support/ARMAttributeParser.h
-include/libLLVM/llvm/Support/ARMBuildAttributes.h
-include/libLLVM/llvm/Support/ARMEHABI.h
-include/libLLVM/llvm/Support/ARMTargetParser.def
-include/libLLVM/llvm/Support/ARMTargetParser.h
-include/libLLVM/llvm/Support/ARMWinEH.h
-include/libLLVM/llvm/Support/AlignOf.h
-include/libLLVM/llvm/Support/Alignment.h
-include/libLLVM/llvm/Support/Allocator.h
-include/libLLVM/llvm/Support/AllocatorBase.h
-include/libLLVM/llvm/Support/ArrayRecycler.h
-include/libLLVM/llvm/Support/Atomic.h
-include/libLLVM/llvm/Support/AtomicOrdering.h
-include/libLLVM/llvm/Support/AutoConvert.h
-include/libLLVM/llvm/Support/Automaton.h
-include/libLLVM/llvm/Support/BCD.h
-include/libLLVM/llvm/Support/Base64.h
-include/libLLVM/llvm/Support/BinaryByteStream.h
-include/libLLVM/llvm/Support/BinaryItemStream.h
-include/libLLVM/llvm/Support/BinaryStream.h
-include/libLLVM/llvm/Support/BinaryStreamArray.h
-include/libLLVM/llvm/Support/BinaryStreamError.h
-include/libLLVM/llvm/Support/BinaryStreamReader.h
-include/libLLVM/llvm/Support/BinaryStreamRef.h
-include/libLLVM/llvm/Support/BinaryStreamWriter.h
-include/libLLVM/llvm/Support/BlockFrequency.h
-include/libLLVM/llvm/Support/BranchProbability.h
-include/libLLVM/llvm/Support/BuryPointer.h
-include/libLLVM/llvm/Support/CBindingWrapping.h
-include/libLLVM/llvm/Support/CFGDiff.h
-include/libLLVM/llvm/Support/CFGUpdate.h
-include/libLLVM/llvm/Support/COM.h
-include/libLLVM/llvm/Support/CRC.h
-include/libLLVM/llvm/Support/CachePruning.h
-include/libLLVM/llvm/Support/Capacity.h
-include/libLLVM/llvm/Support/Casting.h
-include/libLLVM/llvm/Support/CheckedArithmetic.h
-include/libLLVM/llvm/Support/Chrono.h
-include/libLLVM/llvm/Support/CodeGen.h
-include/libLLVM/llvm/Support/CodeGenCoverage.h
-include/libLLVM/llvm/Support/CommandLine.h
-include/libLLVM/llvm/Support/Compiler.h
-include/libLLVM/llvm/Support/Compression.h
-include/libLLVM/llvm/Support/ConvertUTF.h
-include/libLLVM/llvm/Support/CrashRecoveryContext.h
-include/libLLVM/llvm/Support/DJB.h
-include/libLLVM/llvm/Support/DOTGraphTraits.h
-include/libLLVM/llvm/Support/DataExtractor.h
-include/libLLVM/llvm/Support/DataTypes.h
-include/libLLVM/llvm/Support/Debug.h
-include/libLLVM/llvm/Support/DebugCounter.h
-include/libLLVM/llvm/Support/Discriminator.h
-include/libLLVM/llvm/Support/DynamicLibrary.h
-include/libLLVM/llvm/Support/ELFAttributeParser.h
-include/libLLVM/llvm/Support/ELFAttributes.h
-include/libLLVM/llvm/Support/Endian.h
-include/libLLVM/llvm/Support/EndianStream.h
-include/libLLVM/llvm/Support/Errc.h
-include/libLLVM/llvm/Support/Errno.h
-include/libLLVM/llvm/Support/Error.h
-include/libLLVM/llvm/Support/ErrorHandling.h
-include/libLLVM/llvm/Support/ErrorOr.h
-include/libLLVM/llvm/Support/ExitCodes.h
-include/libLLVM/llvm/Support/ExtensibleRTTI.h
-include/libLLVM/llvm/Support/Extension.def
-include/libLLVM/llvm/Support/FileCollector.h
-include/libLLVM/llvm/Support/FileOutputBuffer.h
-include/libLLVM/llvm/Support/FileSystem.h
-include/libLLVM/llvm/Support/FileSystem/UniqueID.h
-include/libLLVM/llvm/Support/FileUtilities.h
-include/libLLVM/llvm/Support/Format.h
-include/libLLVM/llvm/Support/FormatAdapters.h
-include/libLLVM/llvm/Support/FormatCommon.h
-include/libLLVM/llvm/Support/FormatProviders.h
-include/libLLVM/llvm/Support/FormatVariadic.h
-include/libLLVM/llvm/Support/FormatVariadicDetails.h
-include/libLLVM/llvm/Support/FormattedStream.h
-include/libLLVM/llvm/Support/GenericDomTree.h
-include/libLLVM/llvm/Support/GenericDomTreeConstruction.h
-include/libLLVM/llvm/Support/GenericIteratedDominanceFrontier.h
-include/libLLVM/llvm/Support/GlobPattern.h
-include/libLLVM/llvm/Support/GraphWriter.h
-include/libLLVM/llvm/Support/Host.h
-include/libLLVM/llvm/Support/InitLLVM.h
-include/libLLVM/llvm/Support/InstructionCost.h
-include/libLLVM/llvm/Support/ItaniumManglingCanonicalizer.h
-include/libLLVM/llvm/Support/JSON.h
-include/libLLVM/llvm/Support/KnownBits.h
-include/libLLVM/llvm/Support/LEB128.h
-include/libLLVM/llvm/Support/LICENSE.TXT
-include/libLLVM/llvm/Support/LineIterator.h
-include/libLLVM/llvm/Support/Locale.h
-include/libLLVM/llvm/Support/LockFileManager.h
-include/libLLVM/llvm/Support/LowLevelTypeImpl.h
-include/libLLVM/llvm/Support/MD5.h
-include/libLLVM/llvm/Support/MSVCErrorWorkarounds.h
-include/libLLVM/llvm/Support/MachineValueType.h
-include/libLLVM/llvm/Support/ManagedStatic.h
-include/libLLVM/llvm/Support/MathExtras.h
-include/libLLVM/llvm/Support/MemAlloc.h
-include/libLLVM/llvm/Support/Memory.h
-include/libLLVM/llvm/Support/MemoryBuffer.h
-include/libLLVM/llvm/Support/MemoryBufferRef.h
-include/libLLVM/llvm/Support/MipsABIFlags.h
-include/libLLVM/llvm/Support/Mutex.h
-include/libLLVM/llvm/Support/NativeFormatting.h
-include/libLLVM/llvm/Support/OnDiskHashTable.h
-include/libLLVM/llvm/Support/OptimizedStructLayout.h
-include/libLLVM/llvm/Support/Parallel.h
-include/libLLVM/llvm/Support/Path.h
-include/libLLVM/llvm/Support/PluginLoader.h
-include/libLLVM/llvm/Support/PointerLikeTypeTraits.h
-include/libLLVM/llvm/Support/PrettyStackTrace.h
-include/libLLVM/llvm/Support/Printable.h
-include/libLLVM/llvm/Support/Process.h
-include/libLLVM/llvm/Support/Program.h
-include/libLLVM/llvm/Support/RISCVAttributeParser.h
-include/libLLVM/llvm/Support/RISCVAttributes.h
-include/libLLVM/llvm/Support/RISCVTargetParser.def
-include/libLLVM/llvm/Support/RWMutex.h
-include/libLLVM/llvm/Support/RandomNumberGenerator.h
-include/libLLVM/llvm/Support/Recycler.h
-include/libLLVM/llvm/Support/RecyclingAllocator.h
-include/libLLVM/llvm/Support/Regex.h
-include/libLLVM/llvm/Support/Registry.h
-include/libLLVM/llvm/Support/ReverseIteration.h
-include/libLLVM/llvm/Support/SHA1.h
-include/libLLVM/llvm/Support/SHA256.h
-include/libLLVM/llvm/Support/SMLoc.h
-include/libLLVM/llvm/Support/SMTAPI.h
-include/libLLVM/llvm/Support/SaveAndRestore.h
-include/libLLVM/llvm/Support/ScaledNumber.h
-include/libLLVM/llvm/Support/ScopedPrinter.h
-include/libLLVM/llvm/Support/Signals.h
-include/libLLVM/llvm/Support/Signposts.h
-include/libLLVM/llvm/Support/SmallVectorMemoryBuffer.h
-include/libLLVM/llvm/Support/Solaris/sys/regset.h
-include/libLLVM/llvm/Support/SourceMgr.h
-include/libLLVM/llvm/Support/SpecialCaseList.h
-include/libLLVM/llvm/Support/StringSaver.h
-include/libLLVM/llvm/Support/SuffixTree.h
-include/libLLVM/llvm/Support/SwapByteOrder.h
-include/libLLVM/llvm/Support/SymbolRemappingReader.h
-include/libLLVM/llvm/Support/SystemUtils.h
-include/libLLVM/llvm/Support/TarWriter.h
-include/libLLVM/llvm/Support/TargetOpcodes.def
-include/libLLVM/llvm/Support/TargetParser.h
-include/libLLVM/llvm/Support/TargetRegistry.h
-include/libLLVM/llvm/Support/TargetSelect.h
-include/libLLVM/llvm/Support/TaskQueue.h
-include/libLLVM/llvm/Support/ThreadLocal.h
-include/libLLVM/llvm/Support/ThreadPool.h
-include/libLLVM/llvm/Support/Threading.h
-include/libLLVM/llvm/Support/TimeProfiler.h
-include/libLLVM/llvm/Support/Timer.h
-include/libLLVM/llvm/Support/ToolOutputFile.h
-include/libLLVM/llvm/Support/TrailingObjects.h
-include/libLLVM/llvm/Support/TrigramIndex.h
-include/libLLVM/llvm/Support/TypeName.h
-include/libLLVM/llvm/Support/TypeSize.h
-include/libLLVM/llvm/Support/Unicode.h
-include/libLLVM/llvm/Support/UnicodeCharRanges.h
-include/libLLVM/llvm/Support/VCSRevision.h
-include/libLLVM/llvm/Support/Valgrind.h
-include/libLLVM/llvm/Support/VersionTuple.h
-include/libLLVM/llvm/Support/VirtualFileSystem.h
-include/libLLVM/llvm/Support/Watchdog.h
-include/libLLVM/llvm/Support/Win64EH.h
-include/libLLVM/llvm/Support/Windows/WindowsSupport.h
-include/libLLVM/llvm/Support/WindowsError.h
-include/libLLVM/llvm/Support/WithColor.h
-include/libLLVM/llvm/Support/X86DisassemblerDecoderCommon.h
-include/libLLVM/llvm/Support/X86TargetParser.def
-include/libLLVM/llvm/Support/X86TargetParser.h
-include/libLLVM/llvm/Support/YAMLParser.h
-include/libLLVM/llvm/Support/YAMLTraits.h
-include/libLLVM/llvm/Support/circular_raw_ostream.h
-include/libLLVM/llvm/Support/raw_os_ostream.h
-include/libLLVM/llvm/Support/raw_ostream.h
-include/libLLVM/llvm/Support/raw_sha1_ostream.h
-include/libLLVM/llvm/Support/thread.h
-include/libLLVM/llvm/Support/type_traits.h
-include/libLLVM/llvm/Support/xxhash.h
-include/libLLVM/llvm/TableGen/Automaton.td
-include/libLLVM/llvm/TableGen/DirectiveEmitter.h
-include/libLLVM/llvm/TableGen/Error.h
-include/libLLVM/llvm/TableGen/Main.h
-include/libLLVM/llvm/TableGen/Record.h
-include/libLLVM/llvm/TableGen/SearchableTable.td
-include/libLLVM/llvm/TableGen/SetTheory.h
-include/libLLVM/llvm/TableGen/StringMatcher.h
-include/libLLVM/llvm/TableGen/StringToOffsetTable.h
-include/libLLVM/llvm/TableGen/TableGenBackend.h
-include/libLLVM/llvm/Target/CGPassBuilderOption.h
-include/libLLVM/llvm/Target/CodeGenCWrappers.h
-include/libLLVM/llvm/Target/GenericOpcodes.td
-include/libLLVM/llvm/Target/GlobalISel/Combine.td
-include/libLLVM/llvm/Target/GlobalISel/RegisterBank.td
-include/libLLVM/llvm/Target/GlobalISel/SelectionDAGCompat.td
-include/libLLVM/llvm/Target/GlobalISel/Target.td
-include/libLLVM/llvm/Target/Target.td
-include/libLLVM/llvm/Target/TargetCallingConv.td
-include/libLLVM/llvm/Target/TargetInstrPredicate.td
-include/libLLVM/llvm/Target/TargetIntrinsicInfo.h
-include/libLLVM/llvm/Target/TargetItinerary.td
-include/libLLVM/llvm/Target/TargetLoweringObjectFile.h
-include/libLLVM/llvm/Target/TargetMachine.h
-include/libLLVM/llvm/Target/TargetOptions.h
-include/libLLVM/llvm/Target/TargetPfmCounters.td
-include/libLLVM/llvm/Target/TargetSchedule.td
-include/libLLVM/llvm/Target/TargetSelectionDAG.td
-include/libLLVM/llvm/Testing/Support/Annotations.h
-include/libLLVM/llvm/Testing/Support/Error.h
-include/libLLVM/llvm/Testing/Support/SupportHelpers.h
-include/libLLVM/llvm/TextAPI/Architecture.def
-include/libLLVM/llvm/TextAPI/Architecture.h
-include/libLLVM/llvm/TextAPI/ArchitectureSet.h
-include/libLLVM/llvm/TextAPI/InterfaceFile.h
-include/libLLVM/llvm/TextAPI/PackedVersion.h
-include/libLLVM/llvm/TextAPI/Platform.h
-include/libLLVM/llvm/TextAPI/Symbol.h
-include/libLLVM/llvm/TextAPI/Target.h
-include/libLLVM/llvm/TextAPI/TextAPIReader.h
-include/libLLVM/llvm/TextAPI/TextAPIWriter.h
-include/libLLVM/llvm/ToolDrivers/llvm-dlltool/DlltoolDriver.h
-include/libLLVM/llvm/ToolDrivers/llvm-lib/LibDriver.h
-include/libLLVM/llvm/Transforms/AggressiveInstCombine/AggressiveInstCombine.h
-include/libLLVM/llvm/Transforms/CFGuard.h
-include/libLLVM/llvm/Transforms/Coroutines.h
-include/libLLVM/llvm/Transforms/Coroutines/CoroCleanup.h
-include/libLLVM/llvm/Transforms/Coroutines/CoroEarly.h
-include/libLLVM/llvm/Transforms/Coroutines/CoroElide.h
-include/libLLVM/llvm/Transforms/Coroutines/CoroSplit.h
-include/libLLVM/llvm/Transforms/IPO.h
-include/libLLVM/llvm/Transforms/IPO/AlwaysInliner.h
-include/libLLVM/llvm/Transforms/IPO/Annotation2Metadata.h
-include/libLLVM/llvm/Transforms/IPO/ArgumentPromotion.h
-include/libLLVM/llvm/Transforms/IPO/Attributor.h
-include/libLLVM/llvm/Transforms/IPO/BlockExtractor.h
-include/libLLVM/llvm/Transforms/IPO/CalledValuePropagation.h
-include/libLLVM/llvm/Transforms/IPO/ConstantMerge.h
-include/libLLVM/llvm/Transforms/IPO/CrossDSOCFI.h
-include/libLLVM/llvm/Transforms/IPO/DeadArgumentElimination.h
-include/libLLVM/llvm/Transforms/IPO/ElimAvailExtern.h
-include/libLLVM/llvm/Transforms/IPO/ForceFunctionAttrs.h
-include/libLLVM/llvm/Transforms/IPO/FunctionAttrs.h
-include/libLLVM/llvm/Transforms/IPO/FunctionImport.h
-include/libLLVM/llvm/Transforms/IPO/GlobalDCE.h
-include/libLLVM/llvm/Transforms/IPO/GlobalOpt.h
-include/libLLVM/llvm/Transforms/IPO/GlobalSplit.h
-include/libLLVM/llvm/Transforms/IPO/HotColdSplitting.h
-include/libLLVM/llvm/Transforms/IPO/IROutliner.h
-include/libLLVM/llvm/Transforms/IPO/InferFunctionAttrs.h
-include/libLLVM/llvm/Transforms/IPO/Inliner.h
-include/libLLVM/llvm/Transforms/IPO/Internalize.h
-include/libLLVM/llvm/Transforms/IPO/LoopExtractor.h
-include/libLLVM/llvm/Transforms/IPO/LowerTypeTests.h
-include/libLLVM/llvm/Transforms/IPO/MergeFunctions.h
-include/libLLVM/llvm/Transforms/IPO/OpenMPOpt.h
-include/libLLVM/llvm/Transforms/IPO/PartialInlining.h
-include/libLLVM/llvm/Transforms/IPO/PassManagerBuilder.h
-include/libLLVM/llvm/Transforms/IPO/ProfiledCallGraph.h
-include/libLLVM/llvm/Transforms/IPO/SCCP.h
-include/libLLVM/llvm/Transforms/IPO/SampleContextTracker.h
-include/libLLVM/llvm/Transforms/IPO/SampleProfile.h
-include/libLLVM/llvm/Transforms/IPO/SampleProfileProbe.h
-include/libLLVM/llvm/Transforms/IPO/StripDeadPrototypes.h
-include/libLLVM/llvm/Transforms/IPO/StripSymbols.h
-include/libLLVM/llvm/Transforms/IPO/SyntheticCountsPropagation.h
-include/libLLVM/llvm/Transforms/IPO/ThinLTOBitcodeWriter.h
-include/libLLVM/llvm/Transforms/IPO/WholeProgramDevirt.h
-include/libLLVM/llvm/Transforms/InstCombine/InstCombine.h
-include/libLLVM/llvm/Transforms/InstCombine/InstCombineWorklist.h
-include/libLLVM/llvm/Transforms/InstCombine/InstCombiner.h
-include/libLLVM/llvm/Transforms/Instrumentation.h
-include/libLLVM/llvm/Transforms/Instrumentation/AddressSanitizer.h
-include/libLLVM/llvm/Transforms/Instrumentation/AddressSanitizerCommon.h
-include/libLLVM/llvm/Transforms/Instrumentation/AddressSanitizerOptions.h
-include/libLLVM/llvm/Transforms/Instrumentation/BoundsChecking.h
-include/libLLVM/llvm/Transforms/Instrumentation/CGProfile.h
-include/libLLVM/llvm/Transforms/Instrumentation/ControlHeightReduction.h
-include/libLLVM/llvm/Transforms/Instrumentation/DataFlowSanitizer.h
-include/libLLVM/llvm/Transforms/Instrumentation/GCOVProfiler.h
-include/libLLVM/llvm/Transforms/Instrumentation/HWAddressSanitizer.h
-include/libLLVM/llvm/Transforms/Instrumentation/InstrOrderFile.h
-include/libLLVM/llvm/Transforms/Instrumentation/InstrProfiling.h
-include/libLLVM/llvm/Transforms/Instrumentation/MemProfiler.h
-include/libLLVM/llvm/Transforms/Instrumentation/MemorySanitizer.h
-include/libLLVM/llvm/Transforms/Instrumentation/PGOInstrumentation.h
-include/libLLVM/llvm/Transforms/Instrumentation/PoisonChecking.h
-include/libLLVM/llvm/Transforms/Instrumentation/SanitizerCoverage.h
-include/libLLVM/llvm/Transforms/Instrumentation/ThreadSanitizer.h
-include/libLLVM/llvm/Transforms/ObjCARC.h
-include/libLLVM/llvm/Transforms/Scalar.h
-include/libLLVM/llvm/Transforms/Scalar/ADCE.h
-include/libLLVM/llvm/Transforms/Scalar/AlignmentFromAssumptions.h
-include/libLLVM/llvm/Transforms/Scalar/AnnotationRemarks.h
-include/libLLVM/llvm/Transforms/Scalar/BDCE.h
-include/libLLVM/llvm/Transforms/Scalar/CallSiteSplitting.h
-include/libLLVM/llvm/Transforms/Scalar/ConstantHoisting.h
-include/libLLVM/llvm/Transforms/Scalar/ConstraintElimination.h
-include/libLLVM/llvm/Transforms/Scalar/CorrelatedValuePropagation.h
-include/libLLVM/llvm/Transforms/Scalar/DCE.h
-include/libLLVM/llvm/Transforms/Scalar/DFAJumpThreading.h
-include/libLLVM/llvm/Transforms/Scalar/DeadStoreElimination.h
-include/libLLVM/llvm/Transforms/Scalar/DivRemPairs.h
-include/libLLVM/llvm/Transforms/Scalar/EarlyCSE.h
-include/libLLVM/llvm/Transforms/Scalar/Float2Int.h
-include/libLLVM/llvm/Transforms/Scalar/GVN.h
-include/libLLVM/llvm/Transforms/Scalar/GVNExpression.h
-include/libLLVM/llvm/Transforms/Scalar/GuardWidening.h
-include/libLLVM/llvm/Transforms/Scalar/IVUsersPrinter.h
-include/libLLVM/llvm/Transforms/Scalar/IndVarSimplify.h
-include/libLLVM/llvm/Transforms/Scalar/InductiveRangeCheckElimination.h
-include/libLLVM/llvm/Transforms/Scalar/InferAddressSpaces.h
-include/libLLVM/llvm/Transforms/Scalar/InstSimplifyPass.h
-include/libLLVM/llvm/Transforms/Scalar/JumpThreading.h
-include/libLLVM/llvm/Transforms/Scalar/LICM.h
-include/libLLVM/llvm/Transforms/Scalar/LoopAccessAnalysisPrinter.h
-include/libLLVM/llvm/Transforms/Scalar/LoopBoundSplit.h
-include/libLLVM/llvm/Transforms/Scalar/LoopDataPrefetch.h
-include/libLLVM/llvm/Transforms/Scalar/LoopDeletion.h
-include/libLLVM/llvm/Transforms/Scalar/LoopDistribute.h
-include/libLLVM/llvm/Transforms/Scalar/LoopFlatten.h
-include/libLLVM/llvm/Transforms/Scalar/LoopFuse.h
-include/libLLVM/llvm/Transforms/Scalar/LoopIdiomRecognize.h
-include/libLLVM/llvm/Transforms/Scalar/LoopInstSimplify.h
-include/libLLVM/llvm/Transforms/Scalar/LoopInterchange.h
-include/libLLVM/llvm/Transforms/Scalar/LoopLoadElimination.h
-include/libLLVM/llvm/Transforms/Scalar/LoopPassManager.h
-include/libLLVM/llvm/Transforms/Scalar/LoopPredication.h
-include/libLLVM/llvm/Transforms/Scalar/LoopReroll.h
-include/libLLVM/llvm/Transforms/Scalar/LoopRotation.h
-include/libLLVM/llvm/Transforms/Scalar/LoopSimplifyCFG.h
-include/libLLVM/llvm/Transforms/Scalar/LoopSink.h
-include/libLLVM/llvm/Transforms/Scalar/LoopStrengthReduce.h
-include/libLLVM/llvm/Transforms/Scalar/LoopUnrollAndJamPass.h
-include/libLLVM/llvm/Transforms/Scalar/LoopUnrollPass.h
-include/libLLVM/llvm/Transforms/Scalar/LoopVersioningLICM.h
-include/libLLVM/llvm/Transforms/Scalar/LowerAtomic.h
-include/libLLVM/llvm/Transforms/Scalar/LowerConstantIntrinsics.h
-include/libLLVM/llvm/Transforms/Scalar/LowerExpectIntrinsic.h
-include/libLLVM/llvm/Transforms/Scalar/LowerGuardIntrinsic.h
-include/libLLVM/llvm/Transforms/Scalar/LowerMatrixIntrinsics.h
-include/libLLVM/llvm/Transforms/Scalar/LowerWidenableCondition.h
-include/libLLVM/llvm/Transforms/Scalar/MakeGuardsExplicit.h
-include/libLLVM/llvm/Transforms/Scalar/MemCpyOptimizer.h
-include/libLLVM/llvm/Transforms/Scalar/MergeICmps.h
-include/libLLVM/llvm/Transforms/Scalar/MergedLoadStoreMotion.h
-include/libLLVM/llvm/Transforms/Scalar/NaryReassociate.h
-include/libLLVM/llvm/Transforms/Scalar/NewGVN.h
-include/libLLVM/llvm/Transforms/Scalar/PartiallyInlineLibCalls.h
-include/libLLVM/llvm/Transforms/Scalar/Reassociate.h
-include/libLLVM/llvm/Transforms/Scalar/Reg2Mem.h
-include/libLLVM/llvm/Transforms/Scalar/RewriteStatepointsForGC.h
-include/libLLVM/llvm/Transforms/Scalar/SCCP.h
-include/libLLVM/llvm/Transforms/Scalar/SROA.h
-include/libLLVM/llvm/Transforms/Scalar/ScalarizeMaskedMemIntrin.h
-include/libLLVM/llvm/Transforms/Scalar/Scalarizer.h
-include/libLLVM/llvm/Transforms/Scalar/SeparateConstOffsetFromGEP.h
-include/libLLVM/llvm/Transforms/Scalar/SimpleLoopUnswitch.h
-include/libLLVM/llvm/Transforms/Scalar/SimplifyCFG.h
-include/libLLVM/llvm/Transforms/Scalar/Sink.h
-include/libLLVM/llvm/Transforms/Scalar/SpeculativeExecution.h
-include/libLLVM/llvm/Transforms/Scalar/StraightLineStrengthReduce.h
-include/libLLVM/llvm/Transforms/Scalar/StructurizeCFG.h
-include/libLLVM/llvm/Transforms/Scalar/TailRecursionElimination.h
-include/libLLVM/llvm/Transforms/Scalar/WarnMissedTransforms.h
-include/libLLVM/llvm/Transforms/Utils.h
-include/libLLVM/llvm/Transforms/Utils/AMDGPUEmitPrintf.h
-include/libLLVM/llvm/Transforms/Utils/ASanStackFrameLayout.h
-include/libLLVM/llvm/Transforms/Utils/AddDiscriminators.h
-include/libLLVM/llvm/Transforms/Utils/AssumeBundleBuilder.h
-include/libLLVM/llvm/Transforms/Utils/BasicBlockUtils.h
-include/libLLVM/llvm/Transforms/Utils/BreakCriticalEdges.h
-include/libLLVM/llvm/Transforms/Utils/BuildLibCalls.h
-include/libLLVM/llvm/Transforms/Utils/BypassSlowDivision.h
-include/libLLVM/llvm/Transforms/Utils/CallGraphUpdater.h
-include/libLLVM/llvm/Transforms/Utils/CallPromotionUtils.h
-include/libLLVM/llvm/Transforms/Utils/CanonicalizeAliases.h
-include/libLLVM/llvm/Transforms/Utils/CanonicalizeFreezeInLoops.h
-include/libLLVM/llvm/Transforms/Utils/Cloning.h
-include/libLLVM/llvm/Transforms/Utils/CodeExtractor.h
-include/libLLVM/llvm/Transforms/Utils/CodeMoverUtils.h
-include/libLLVM/llvm/Transforms/Utils/CtorUtils.h
-include/libLLVM/llvm/Transforms/Utils/Debugify.h
-include/libLLVM/llvm/Transforms/Utils/EntryExitInstrumenter.h
-include/libLLVM/llvm/Transforms/Utils/EscapeEnumerator.h
-include/libLLVM/llvm/Transforms/Utils/Evaluator.h
-include/libLLVM/llvm/Transforms/Utils/FixIrreducible.h
-include/libLLVM/llvm/Transforms/Utils/FunctionComparator.h
-include/libLLVM/llvm/Transforms/Utils/FunctionImportUtils.h
-include/libLLVM/llvm/Transforms/Utils/GlobalStatus.h
-include/libLLVM/llvm/Transforms/Utils/GuardUtils.h
-include/libLLVM/llvm/Transforms/Utils/HelloWorld.h
-include/libLLVM/llvm/Transforms/Utils/InjectTLIMappings.h
-include/libLLVM/llvm/Transforms/Utils/InstructionNamer.h
-include/libLLVM/llvm/Transforms/Utils/IntegerDivision.h
-include/libLLVM/llvm/Transforms/Utils/LCSSA.h
-include/libLLVM/llvm/Transforms/Utils/LibCallsShrinkWrap.h
-include/libLLVM/llvm/Transforms/Utils/Local.h
-include/libLLVM/llvm/Transforms/Utils/LoopPeel.h
-include/libLLVM/llvm/Transforms/Utils/LoopRotationUtils.h
-include/libLLVM/llvm/Transforms/Utils/LoopSimplify.h
-include/libLLVM/llvm/Transforms/Utils/LoopUtils.h
-include/libLLVM/llvm/Transforms/Utils/LoopVersioning.h
-include/libLLVM/llvm/Transforms/Utils/LowerInvoke.h
-include/libLLVM/llvm/Transforms/Utils/LowerMemIntrinsics.h
-include/libLLVM/llvm/Transforms/Utils/LowerSwitch.h
-include/libLLVM/llvm/Transforms/Utils/MatrixUtils.h
-include/libLLVM/llvm/Transforms/Utils/Mem2Reg.h
-include/libLLVM/llvm/Transforms/Utils/MemoryOpRemark.h
-include/libLLVM/llvm/Transforms/Utils/MetaRenamer.h
-include/libLLVM/llvm/Transforms/Utils/ModuleUtils.h
-include/libLLVM/llvm/Transforms/Utils/NameAnonGlobals.h
-include/libLLVM/llvm/Transforms/Utils/PredicateInfo.h
-include/libLLVM/llvm/Transforms/Utils/PromoteMemToReg.h
-include/libLLVM/llvm/Transforms/Utils/RelLookupTableConverter.h
-include/libLLVM/llvm/Transforms/Utils/SCCPSolver.h
-include/libLLVM/llvm/Transforms/Utils/SSAUpdater.h
-include/libLLVM/llvm/Transforms/Utils/SSAUpdaterBulk.h
-include/libLLVM/llvm/Transforms/Utils/SSAUpdaterImpl.h
-include/libLLVM/llvm/Transforms/Utils/SampleProfileLoaderBaseImpl.h
-include/libLLVM/llvm/Transforms/Utils/SampleProfileLoaderBaseUtil.h
-include/libLLVM/llvm/Transforms/Utils/SanitizerStats.h
-include/libLLVM/llvm/Transforms/Utils/ScalarEvolutionExpander.h
-include/libLLVM/llvm/Transforms/Utils/SimplifyCFGOptions.h
-include/libLLVM/llvm/Transforms/Utils/SimplifyIndVar.h
-include/libLLVM/llvm/Transforms/Utils/SimplifyLibCalls.h
-include/libLLVM/llvm/Transforms/Utils/SizeOpts.h
-include/libLLVM/llvm/Transforms/Utils/SplitModule.h
-include/libLLVM/llvm/Transforms/Utils/StripGCRelocates.h
-include/libLLVM/llvm/Transforms/Utils/StripNonLineTableDebugInfo.h
-include/libLLVM/llvm/Transforms/Utils/SymbolRewriter.h
-include/libLLVM/llvm/Transforms/Utils/UnifyFunctionExitNodes.h
-include/libLLVM/llvm/Transforms/Utils/UnifyLoopExits.h
-include/libLLVM/llvm/Transforms/Utils/UnrollLoop.h
-include/libLLVM/llvm/Transforms/Utils/VNCoercion.h
-include/libLLVM/llvm/Transforms/Utils/ValueMapper.h
-include/libLLVM/llvm/Transforms/Vectorize.h
-include/libLLVM/llvm/Transforms/Vectorize/LoadStoreVectorizer.h
-include/libLLVM/llvm/Transforms/Vectorize/LoopVectorizationLegality.h
-include/libLLVM/llvm/Transforms/Vectorize/LoopVectorize.h
-include/libLLVM/llvm/Transforms/Vectorize/SLPVectorizer.h
-include/libLLVM/llvm/Transforms/Vectorize/VectorCombine.h
-include/libLLVM/llvm/WindowsManifest/WindowsManifestMerger.h
-include/libLLVM/llvm/WindowsResource/ResourceProcessor.h
-include/libLLVM/llvm/WindowsResource/ResourceScriptToken.h
-include/libLLVM/llvm/WindowsResource/ResourceScriptTokenList.h
-include/libLLVM/llvm/XRay/BlockIndexer.h
-include/libLLVM/llvm/XRay/BlockPrinter.h
-include/libLLVM/llvm/XRay/BlockVerifier.h
-include/libLLVM/llvm/XRay/FDRLogBuilder.h
-include/libLLVM/llvm/XRay/FDRRecordConsumer.h
-include/libLLVM/llvm/XRay/FDRRecordProducer.h
-include/libLLVM/llvm/XRay/FDRRecords.h
-include/libLLVM/llvm/XRay/FDRTraceExpander.h
-include/libLLVM/llvm/XRay/FDRTraceWriter.h
-include/libLLVM/llvm/XRay/FileHeaderReader.h
-include/libLLVM/llvm/XRay/Graph.h
-include/libLLVM/llvm/XRay/InstrumentationMap.h
-include/libLLVM/llvm/XRay/Profile.h
-include/libLLVM/llvm/XRay/RecordPrinter.h
-include/libLLVM/llvm/XRay/Trace.h
-include/libLLVM/llvm/XRay/XRayRecord.h
-include/libLLVM/llvm/XRay/YAMLXRayRecord.h
-lib/libLLVM/cmake/llvm/LLVMConfigExtensions.cmake
-${PLIST.notdylib}lib/libLLVM/libLLVM-${LLVM_MAJOR_MINOR}.${SOEXT}
-${PLIST.notdylib}lib/libLLVM/libLLVM-${PKGVERSION}.${SOEXT}
-lib/libLLVM/libLLVM.${SOEXT}
-libexec/libLLVM/llvm-config
-share/libLLVM/cmake/AddLLVM.cmake
-share/libLLVM/cmake/AddLLVMDefinitions.cmake
-share/libLLVM/cmake/AddOCaml.cmake
-share/libLLVM/cmake/AddSphinxTarget.cmake
-share/libLLVM/cmake/CheckAtomic.cmake
-share/libLLVM/cmake/CheckCompilerVersion.cmake
-share/libLLVM/cmake/ChooseMSVCCRT.cmake
-share/libLLVM/cmake/CrossCompile.cmake
-share/libLLVM/cmake/DetermineGCCCompatible.cmake
-share/libLLVM/cmake/FindGRPC.cmake
-share/libLLVM/cmake/FindLibpfm.cmake
-share/libLLVM/cmake/FindOCaml.cmake
-share/libLLVM/cmake/FindSphinx.cmake
-share/libLLVM/cmake/FindZ3.cmake
-share/libLLVM/cmake/GenerateVersionFromVCS.cmake
-share/libLLVM/cmake/GetErrcMessages.cmake
-share/libLLVM/cmake/GetLibraryName.cmake
-share/libLLVM/cmake/HandleLLVMOptions.cmake
-share/libLLVM/cmake/HandleLLVMStdlib.cmake
-share/libLLVM/cmake/LLVM-Build.cmake
-share/libLLVM/cmake/LLVM-Config.cmake
-share/libLLVM/cmake/LLVMCheckLinkerFlag.cmake
-share/libLLVM/cmake/LLVMConfig.cmake
-share/libLLVM/cmake/LLVMConfigVersion.cmake
-share/libLLVM/cmake/LLVMDistributionSupport.cmake
-share/libLLVM/cmake/LLVMExports-release.cmake
-share/libLLVM/cmake/LLVMExports.cmake
-share/libLLVM/cmake/LLVMExternalProjectUtils.cmake
-share/libLLVM/cmake/LLVMInstallSymlink.cmake
-share/libLLVM/cmake/LLVMProcessSources.cmake
-share/libLLVM/cmake/TableGen.cmake
-share/libLLVM/cmake/TensorFlowCompile.cmake
-share/libLLVM/cmake/UseLibtool.cmake
-share/libLLVM/cmake/VersionFromVCS.cmake
diff --git a/libLLVM/buildlink3.mk b/libLLVM/buildlink3.mk
deleted file mode 100644
index 09388a6a49..0000000000
--- a/libLLVM/buildlink3.mk
+++ /dev/null
@@ -1,18 +0,0 @@
-# $NetBSD: buildlink3.mk,v 1.6 2020/03/06 22:44:18 tnn Exp $
-
-BUILDLINK_TREE+=	libLLVM
-
-.if !defined(LIBLLVM_BUILDLINK3_MK)
-LIBLLVM_BUILDLINK3_MK:=
-
-BUILDLINK_API_DEPENDS.libLLVM+=	libLLVM>=13
-BUILDLINK_PKGSRCDIR.libLLVM?=	../../wip/libLLVM
-BUILDLINK_INCDIRS.libLLVM?=	include/libLLVM
-BUILDLINK_LIBDIRS.libLLVM?=	lib/libLLVM
-
-LLVM_CONFIG_PATH?=		${BUILDLINK_PREFIX.libLLVM}/libexec/libLLVM/llvm-config
-
-.include "../../devel/zlib/buildlink3.mk"
-.endif	# LIBLLVM_BUILDLINK3_MK
-
-BUILDLINK_TREE+=	-libLLVM
diff --git a/libLLVM/distinfo b/libLLVM/distinfo
deleted file mode 100644
index 3444fd103e..0000000000
--- a/libLLVM/distinfo
+++ /dev/null
@@ -1,14 +0,0 @@
-$NetBSD: distinfo,v 1.16 2020/03/06 22:44:18 tnn Exp $
-
-BLAKE2s (llvm-13.0.1.src.tar.xz) = 5fff4c8506340cc14b2160478be6403c80f526841209a4b1b3a9f16cf61dcc05
-SHA512 (llvm-13.0.1.src.tar.xz) = 05fbe8708ac3d0dfef3a9135ee88185a95ed492095429a97d33b8aadb0187e59ad42d1a7184f02b5c84fdd31f3d7227c65bd292ed0aa039b29522e59cf90a965
-Size (llvm-13.0.1.src.tar.xz) = 45479112 bytes
-SHA1 (patch-CMakeLists.txt) = c60afc86b44ae6c37840b3fea3533136aae2616d
-SHA1 (patch-cmake_config-ix.cmake) = 3b8b5295872ac1a5d90a8b4c78540d8ce1224bf0
-SHA1 (patch-cmake_modules_AddLLVM.cmake) = 41000d0660af1bfe6ccd15d0e0611b7cbbd456a4
-SHA1 (patch-cmake_modules_CMakeLists.txt) = 57462a55dfd2af82df51f62fc222a081cdb3e0db
-SHA1 (patch-cmake_modules_CheckAtomic.cmake) = cb2eda89ca2413728fc594ff01fa7a287b2a22b9
-SHA1 (patch-include_llvm-c_DataTypes.h) = 790c9458d6590a0d6985fdcbd8785da340b9779b
-SHA1 (patch-include_llvm_Analysis_ConstantFolding.h) = 56b9374da236c346565897977040255b9766cab8
-SHA1 (patch-tools_llvm-config_llvm-config.cpp) = 12b0f7dd0d8caf635ca139abdde3ba49dc753cbe
-SHA1 (patch-tools_llvm-shlib_CMakeLists.txt) = 97b9c7c3487989c2909dd0294a67a5328d9ef309
diff --git a/libLLVM/options.mk b/libLLVM/options.mk
deleted file mode 100644
index 9520ccf87d..0000000000
--- a/libLLVM/options.mk
+++ /dev/null
@@ -1,58 +0,0 @@
-# $NetBSD: options.mk,v 1.9 2021/07/12 18:41:02 adam Exp $
-
-PKG_OPTIONS_VAR=	PKG_OPTIONS.libLLVM
-
-LLVM_TARGETS=	AArch64 AMDGPU ARM AVR BPF Hexagon Lanai Mips MSP430 NVPTX PowerPC RISCV Sparc SystemZ WebAssembly X86 XCore
-
-.for tgt in ${LLVM_TARGETS}
-PLIST_VARS+=			${tgt}
-PKG_SUPPORTED_OPTIONS+=		llvm-target-${tgt:tl}
-.endfor
-PKG_SUPPORTED_OPTIONS+=		terminfo
-
-# Terminfo is used for colour output, only enable it by default if terminfo
-# is builtin to avoid unnecessary dependencies which could cause bootstrap
-# issues.
-CHECK_BUILTIN.terminfo:=	yes
-.include "../../mk/terminfo.builtin.mk"
-CHECK_BUILTIN.terminfo:=	no
-.if !empty(USE_BUILTIN.terminfo:M[yY][eE][sS])
-PKG_SUGGESTED_OPTIONS+=		terminfo
-.endif
-
-# Probably safe to assume that only x86 users are interested in
-# cross-compilation for now. This saves some build time for everyone else.
-.if !empty(MACHINE_ARCH:Msparc*)
-PKG_SUGGESTED_OPTIONS+=	llvm-target-sparc
-.elif !empty(MACHINE_ARCH:Mpowerpc*)
-PKG_SUGGESTED_OPTIONS+=	llvm-target-powerpc
-.elif !empty(MACHINE_ARCH:Maarch64)
-PKG_SUGGESTED_OPTIONS+=	llvm-target-aarch64
-.elif !empty(MACHINE_ARCH:Mearm*)
-PKG_SUGGESTED_OPTIONS+=	llvm-target-arm
-.elif !empty(MACHINE_ARCH:M*mips*)
-PKG_SUGGESTED_OPTIONS+=	llvm-target-mips
-.else
-# X86 and everyone else get all targets by default.
-.  for tgt in ${LLVM_TARGETS}
-PKG_SUGGESTED_OPTIONS+=	llvm-target-${tgt:tl}
-.  endfor
-.endif
-PKG_SUGGESTED_OPTIONS+=	llvm-target-amdgpu	# for mesa/radeon
-
-.include "../../mk/bsd.options.mk"
-
-.for tgt in ${LLVM_TARGETS}
-.  if !empty(PKG_OPTIONS:Mllvm-target-${tgt:tl})
-PLIST.${tgt}=		yes
-LLVM_TARGETS_TO_BUILD+=	${tgt}
-.  endif
-.endfor
-
-.if !empty(PKG_OPTIONS:Mterminfo)
-.include "../../mk/terminfo.buildlink3.mk"
-.else
-CMAKE_ARGS+=	-DLLVM_ENABLE_TERMINFO=OFF
-.endif
-
-CMAKE_ARGS+=	-DLLVM_TARGETS_TO_BUILD="${LLVM_TARGETS_TO_BUILD:ts;}"
diff --git a/libLLVM/patches/patch-CMakeLists.txt b/libLLVM/patches/patch-CMakeLists.txt
deleted file mode 100644
index b10d486442..0000000000
--- a/libLLVM/patches/patch-CMakeLists.txt
+++ /dev/null
@@ -1,42 +0,0 @@
-$NetBSD: patch-CMakeLists.txt,v 1.2 2019/01/26 21:17:20 tnn Exp $
-
-Put headers in subdirectory to avoid conflict with clang.
-Don't implement sys/regset.h workaround, fix source instead.
-Don't build locstats.
-
---- CMakeLists.txt.orig	2021-06-28 16:23:38.000000000 +0000
-+++ CMakeLists.txt
-@@ -902,7 +902,7 @@ endif()
- 
- if( ${CMAKE_SYSTEM_NAME} MATCHES SunOS )
-    # special hack for Solaris to handle crazy system sys/regset.h
--   include_directories("${LLVM_MAIN_INCLUDE_DIR}/llvm/Support/Solaris")
-+   #include_directories("${LLVM_MAIN_INCLUDE_DIR}/llvm/Support/Solaris")
- endif( ${CMAKE_SYSTEM_NAME} MATCHES SunOS )
- 
- # Make sure we don't get -rdynamic in every binary. For those that need it,
-@@ -1027,7 +1027,7 @@ endif()
- 
- if (NOT LLVM_INSTALL_TOOLCHAIN_ONLY)
-   install(DIRECTORY include/llvm include/llvm-c
--    DESTINATION include
-+    DESTINATION include/libLLVM
-     COMPONENT llvm-headers
-     FILES_MATCHING
-     PATTERN "*.def"
-@@ -1038,7 +1038,7 @@ if (NOT LLVM_INSTALL_TOOLCHAIN_ONLY)
-     )
- 
-   install(DIRECTORY ${LLVM_INCLUDE_DIR}/llvm ${LLVM_INCLUDE_DIR}/llvm-c
--    DESTINATION include
-+    DESTINATION include/libLLVM
-     COMPONENT llvm-headers
-     FILES_MATCHING
-     PATTERN "*.def"
-@@ -1125,5 +1125,5 @@ if (LLVM_INCLUDE_BENCHMARKS)
- endif()
- 
- if (LLVM_INCLUDE_UTILS AND LLVM_INCLUDE_TOOLS)
--  add_subdirectory(utils/llvm-locstats)
-+#  add_subdirectory(utils/llvm-locstats)
- endif()
diff --git a/libLLVM/patches/patch-cmake_config-ix.cmake b/libLLVM/patches/patch-cmake_config-ix.cmake
deleted file mode 100644
index d6cd78973a..0000000000
--- a/libLLVM/patches/patch-cmake_config-ix.cmake
+++ /dev/null
@@ -1,15 +0,0 @@
-$NetBSD: patch-cmake_config-ix.cmake,v 1.2 2020/03/06 22:44:18 tnn Exp $
-
-Do not generate invalid llvm-config in pkgsrc.
-
---- cmake/config-ix.cmake.orig	2021-06-28 16:23:38.000000000 +0000
-+++ cmake/config-ix.cmake
-@@ -175,7 +175,7 @@ if(NOT LLVM_USE_SANITIZER MATCHES "Memor
-       set(MAYBE_REQUIRED)
-     endif()
-     if(LLVM_ENABLE_TERMINFO)
--      find_library(TERMINFO_LIB NAMES terminfo tinfo curses ncurses ncursesw ${MAYBE_REQUIRED})
-+      find_library(TERMINFO_LIB NAMES terminfo curses ncurses ncursesw tinfo ${MAYBE_REQUIRED})
-     endif()
-     if(TERMINFO_LIB)
-       set(LLVM_ENABLE_TERMINFO 1)
diff --git a/libLLVM/patches/patch-cmake_modules_AddLLVM.cmake b/libLLVM/patches/patch-cmake_modules_AddLLVM.cmake
deleted file mode 100644
index c1a24da34e..0000000000
--- a/libLLVM/patches/patch-cmake_modules_AddLLVM.cmake
+++ /dev/null
@@ -1,59 +0,0 @@
-$NetBSD$
-
-Disable library install rules. Handled manually.
-Make sure llvm-config goes in libexec/libLLVM to avoid conflict.
-Don't use non-portable -z discard-unused on SunOS.
-Don't use relative @rpath in llvm-config on Darwin.
-
---- cmake/modules/AddLLVM.cmake.orig	2021-09-24 16:18:10.000000000 +0000
-+++ cmake/modules/AddLLVM.cmake
-@@ -616,10 +616,6 @@ function(llvm_add_library name)
-       set(api_name ${output_name}-${LLVM_VERSION_MAJOR}.${LLVM_VERSION_MINOR}.${LLVM_VERSION_PATCH}${LLVM_VERSION_SUFFIX})
-       set_target_properties(${name} PROPERTIES OUTPUT_NAME ${library_name})
-       if(UNIX)
--        llvm_install_library_symlink(${api_name} ${library_name} SHARED
--          COMPONENT ${name})
--        llvm_install_library_symlink(${output_name} ${library_name} SHARED
--          COMPONENT ${name})
-       endif()
-     endif()
-   endif()
-@@ -820,11 +816,6 @@ macro(add_llvm_library name)
-       endif()
- 
-       get_target_export_arg(${name} LLVM export_to_llvmexports ${umbrella})
--      install(TARGETS ${name}
--              ${export_to_llvmexports}
--              LIBRARY DESTINATION lib${LLVM_LIBDIR_SUFFIX} COMPONENT ${name}
--              ARCHIVE DESTINATION lib${LLVM_LIBDIR_SUFFIX} COMPONENT ${name}
--              RUNTIME DESTINATION bin COMPONENT ${name})
- 
-       if (NOT LLVM_ENABLE_IDE)
-         add_llvm_install_targets(install-${name}
-@@ -1033,7 +1024,7 @@ function(process_llvm_pass_plugins)
- 
-       ## Part 1: Extension header to be included whenever we need extension
-       #  processing.
--      set(LLVM_INSTALL_PACKAGE_DIR lib${LLVM_LIBDIR_SUFFIX}/cmake/llvm)
-+      set(LLVM_INSTALL_PACKAGE_DIR lib/libLLVM/cmake/llvm)
-       set(llvm_cmake_builddir "${LLVM_BINARY_DIR}/${LLVM_INSTALL_PACKAGE_DIR}")
-       file(WRITE
-           "${llvm_cmake_builddir}/LLVMConfigExtensions.cmake"
-@@ -1234,7 +1225,7 @@ macro(add_llvm_tool name)
-       get_target_export_arg(${name} LLVM export_to_llvmexports)
-       install(TARGETS ${name}
-               ${export_to_llvmexports}
--              RUNTIME DESTINATION ${LLVM_TOOLS_INSTALL_DIR}
-+              RUNTIME DESTINATION libexec/libLLVM
-               COMPONENT ${name})
- 
-       if (NOT LLVM_ENABLE_IDE)
-@@ -2118,7 +2109,7 @@ function(llvm_setup_rpath name)
-   endif()
- 
-   if (APPLE)
--    set(_install_name_dir INSTALL_NAME_DIR "@rpath")
-+    set(_install_name_dir INSTALL_NAME_DIR "${CMAKE_INSTALL_PREFIX}/lib/libLLVM")
-     set(_install_rpath "@loader_path/../lib${LLVM_LIBDIR_SUFFIX}" ${extra_libdir})
-   elseif(${CMAKE_SYSTEM_NAME} MATCHES "AIX" AND BUILD_SHARED_LIBS)
-     # $ORIGIN is not interpreted at link time by aix ld.
diff --git a/libLLVM/patches/patch-cmake_modules_CMakeLists.txt b/libLLVM/patches/patch-cmake_modules_CMakeLists.txt
deleted file mode 100644
index a434eaf46d..0000000000
--- a/libLLVM/patches/patch-cmake_modules_CMakeLists.txt
+++ /dev/null
@@ -1,14 +0,0 @@
-$NetBSD: patch-cmake_modules_CMakeLists.txt,v 1.3 2017/03/17 22:38:18 adam Exp $
-
-Make sure cmake rules go in own directory to avoid conflicts.
-
---- cmake/modules/CMakeLists.txt.orig	2021-09-24 16:18:10.000000000 +0000
-+++ cmake/modules/CMakeLists.txt
-@@ -1,6 +1,6 @@
- include(LLVMDistributionSupport)
- 
--set(LLVM_INSTALL_PACKAGE_DIR lib${LLVM_LIBDIR_SUFFIX}/cmake/llvm)
-+set(LLVM_INSTALL_PACKAGE_DIR share/libLLVM/cmake)
- set(llvm_cmake_builddir "${LLVM_BINARY_DIR}/${LLVM_INSTALL_PACKAGE_DIR}")
- 
- # First for users who use an installed LLVM, create the LLVMExports.cmake file.
diff --git a/libLLVM/patches/patch-cmake_modules_CheckAtomic.cmake b/libLLVM/patches/patch-cmake_modules_CheckAtomic.cmake
deleted file mode 100644
index 9529853351..0000000000
--- a/libLLVM/patches/patch-cmake_modules_CheckAtomic.cmake
+++ /dev/null
@@ -1,43 +0,0 @@
-$NetBSD: patch-cmake_modules_CheckAtomic.cmake,v 1.1 2019/01/26 21:17:20 tnn Exp $
-
-Omit check for native 8-byte atomics, platform may not have them,
-and they are actually not required here.  Makes powerpc build llvm.
-
---- cmake/modules/CheckAtomic.cmake.orig	2021-06-28 16:23:38.000000000 +0000
-+++ cmake/modules/CheckAtomic.cmake
-@@ -66,20 +66,21 @@ if(MSVC)
-   set(HAVE_CXX_ATOMICS64_WITHOUT_LIB True)
- elseif(LLVM_COMPILER_IS_GCC_COMPATIBLE)
-   # First check if atomics work without the library.
--  check_working_cxx_atomics64(HAVE_CXX_ATOMICS64_WITHOUT_LIB)
--  # If not, check if the library exists, and atomics work with it.
--  if(NOT HAVE_CXX_ATOMICS64_WITHOUT_LIB)
--    check_library_exists(atomic __atomic_load_8 "" HAVE_CXX_LIBATOMICS64)
--    if(HAVE_CXX_LIBATOMICS64)
--      list(APPEND CMAKE_REQUIRED_LIBRARIES "atomic")
--      check_working_cxx_atomics64(HAVE_CXX_ATOMICS64_WITH_LIB)
--      if (NOT HAVE_CXX_ATOMICS64_WITH_LIB)
--        message(FATAL_ERROR "Host compiler must support 64-bit std::atomic!")
--      endif()
--    else()
--      message(FATAL_ERROR "Host compiler appears to require libatomic for 64-bit operations, but cannot find it.")
--    endif()
--  endif()
-+  set(HAVE_CXX_ATOMICS64_WITHOUT_LIB True)
-+#  check_working_cxx_atomics64(HAVE_CXX_ATOMICS64_WITHOUT_LIB)
-+#  # If not, check if the library exists, and atomics work with it.
-+#  if(NOT HAVE_CXX_ATOMICS64_WITHOUT_LIB)
-+#    check_library_exists(atomic __atomic_load_8 "" HAVE_CXX_LIBATOMICS64)
-+#    if(HAVE_CXX_LIBATOMICS64)
-+#      list(APPEND CMAKE_REQUIRED_LIBRARIES "atomic")
-+#      check_working_cxx_atomics64(HAVE_CXX_ATOMICS64_WITH_LIB)
-+#      if (NOT HAVE_CXX_ATOMICS64_WITH_LIB)
-+#        message(FATAL_ERROR "Host compiler must support 64-bit std::atomic!")
-+#      endif()
-+#    else()
-+#      message(FATAL_ERROR "Host compiler appears to require libatomic for 64-bit operations, but cannot find it.")
-+#    endif()
-+#  endif()
- endif()
- 
- ## TODO: This define is only used for the legacy atomic operations in
diff --git a/libLLVM/patches/patch-include_llvm-c_DataTypes.h b/libLLVM/patches/patch-include_llvm-c_DataTypes.h
deleted file mode 100644
index 9711ecd2cb..0000000000
--- a/libLLVM/patches/patch-include_llvm-c_DataTypes.h
+++ /dev/null
@@ -1,34 +0,0 @@
-$NetBSD: patch-include_llvm-c_DataTypes.h,v 1.2 2021/07/12 18:41:02 adam Exp $
-
-Don't implement sys/regset.h workaround, fix source instead.
-
---- include/llvm-c/DataTypes.h.orig	2021-04-06 16:38:18.000000000 +0000
-+++ include/llvm-c/DataTypes.h
-@@ -77,4 +77,27 @@ typedef signed int ssize_t;
- # define UINT64_MAX 0xffffffffffffffffULL
- #endif
- 
-+#if defined(__sun)
-+#include <sys/regset.h>
-+#undef CS
-+#undef DS
-+#undef ES
-+#undef FS
-+#undef GS
-+#undef SS
-+#undef EAX
-+#undef ECX
-+#undef EDX
-+#undef EBX
-+#undef ESP
-+#undef EBP
-+#undef ESI
-+#undef EDI
-+#undef EIP
-+#undef UESP
-+#undef EFL
-+#undef ERR
-+#undef TRAPNO
-+#endif
-+
- #endif /* LLVM_C_DATATYPES_H */
diff --git a/libLLVM/patches/patch-include_llvm_Analysis_ConstantFolding.h b/libLLVM/patches/patch-include_llvm_Analysis_ConstantFolding.h
deleted file mode 100644
index 6bdfcc5e56..0000000000
--- a/libLLVM/patches/patch-include_llvm_Analysis_ConstantFolding.h
+++ /dev/null
@@ -1,17 +0,0 @@
-$NetBSD: patch-include_llvm_Analysis_ConstantFolding.h,v 1.1 2019/01/26 21:17:20 tnn Exp $
-
-Fix SunOS CS conflict not handled by include/llvm-c/DataTypes.h
-
---- include/llvm/Analysis/ConstantFolding.h.orig	2018-05-01 15:54:18.000000000 +0000
-+++ include/llvm/Analysis/ConstantFolding.h
-@@ -20,6 +20,10 @@
- #ifndef LLVM_ANALYSIS_CONSTANTFOLDING_H
- #define LLVM_ANALYSIS_CONSTANTFOLDING_H
- 
-+#ifdef __sun
-+#undef CS
-+#endif
-+
- namespace llvm {
- class APInt;
- template <typename T> class ArrayRef;
diff --git a/libLLVM/patches/patch-tools_llvm-config_llvm-config.cpp b/libLLVM/patches/patch-tools_llvm-config_llvm-config.cpp
deleted file mode 100644
index 4561832fac..0000000000
--- a/libLLVM/patches/patch-tools_llvm-config_llvm-config.cpp
+++ /dev/null
@@ -1,57 +0,0 @@
-$NetBSD: patch-tools_llvm-config_llvm-config.cpp,v 1.6 2019/01/26 21:17:20 tnn Exp $
-
-Avoid conflict with lang/clang.
-Use -lLLVM-3.8 instead of -lLLVM-3.8.0 so we don't break unnecessarily
-on patch updates.
-
---- tools/llvm-config/llvm-config.cpp.orig	2021-06-28 16:23:38.000000000 +0000
-+++ tools/llvm-config/llvm-config.cpp
-@@ -357,11 +357,11 @@ int main(int argc, char **argv) {
-         ("-I" + ActiveIncludeDir + " " + "-I" + ActiveObjRoot + "/include");
-   } else {
-     ActivePrefix = CurrentExecPrefix;
--    ActiveIncludeDir = ActivePrefix + "/include";
-+    ActiveIncludeDir = "@PREFIX@/include/libLLVM";
-     SmallString<256> path(StringRef(LLVM_TOOLS_INSTALL_DIR));
-     sys::fs::make_absolute(ActivePrefix, path);
-     ActiveBinDir = std::string(path.str());
--    ActiveLibDir = ActivePrefix + "/lib" + LLVM_LIBDIR_SUFFIX;
-+    ActiveLibDir = "@PREFIX@/lib/libLLVM";
-     ActiveCMakeDir = ActiveLibDir + "/cmake/llvm";
-     ActiveIncludeOption = "-I" + ActiveIncludeDir;
-   }
-@@ -399,14 +399,14 @@ int main(int argc, char **argv) {
-     StaticDir = ActiveLibDir;
-   } else if (HostTriple.isOSDarwin()) {
-     SharedExt = "dylib";
--    SharedVersionedExt = LLVM_DYLIB_VERSION ".dylib";
-+    SharedVersionedExt = ".dylib";
-     StaticExt = "a";
-     StaticDir = SharedDir = ActiveLibDir;
-     StaticPrefix = SharedPrefix = "lib";
-   } else {
-     // default to the unix values:
-     SharedExt = "so";
--    SharedVersionedExt = LLVM_DYLIB_VERSION ".so";
-+    SharedVersionedExt = "-@LLVM_MAJOR_MINOR@.so";
-     StaticExt = "a";
-     StaticDir = SharedDir = ActiveLibDir;
-     StaticPrefix = SharedPrefix = "lib";
-@@ -419,7 +419,7 @@ int main(int argc, char **argv) {
- 
-   bool DyLibExists = false;
-   const std::string DyLibName =
--      (SharedPrefix + "LLVM-" + SharedVersionedExt).str();
-+      (SharedPrefix + "LLVM" + SharedVersionedExt).str();
- 
-   // If LLVM_LINK_DYLIB is ON, the single shared library will be returned
-   // for "--libs", etc, if they exist. This behaviour can be overridden with
-@@ -520,7 +520,7 @@ int main(int argc, char **argv) {
-         OS << ActiveIncludeOption << ' ' << LLVM_CXXFLAGS << '\n';
-       } else if (Arg == "--ldflags") {
-         OS << ((HostTriple.isWindowsMSVCEnvironment()) ? "-LIBPATH:" : "-L")
--           << ActiveLibDir << ' ' << LLVM_LDFLAGS << '\n';
-+           << ActiveLibDir << " @COMPILER_RPATH_FLAG@" << ActiveLibDir << ' ' << LLVM_LDFLAGS << '\n';
-       } else if (Arg == "--system-libs") {
-         PrintSystemLibs = true;
-       } else if (Arg == "--libs") {
diff --git a/libLLVM/patches/patch-tools_llvm-shlib_CMakeLists.txt b/libLLVM/patches/patch-tools_llvm-shlib_CMakeLists.txt
deleted file mode 100644
index d881ebd51a..0000000000
--- a/libLLVM/patches/patch-tools_llvm-shlib_CMakeLists.txt
+++ /dev/null
@@ -1,34 +0,0 @@
-$NetBSD: patch-tools_llvm-shlib_CMakeLists.txt,v 1.7 2021/11/23 20:55:44 wiz Exp $
-
-Use the Linux style linking everywhere except Darwin and SunOS.
-
---- tools/llvm-shlib/CMakeLists.txt.orig	2021-09-24 16:18:10.000000000 +0000
-+++ tools/llvm-shlib/CMakeLists.txt
-@@ -33,13 +33,11 @@ if(LLVM_BUILD_LLVM_DYLIB)
-   add_llvm_library(LLVM SHARED DISABLE_LLVM_LINK_LLVM_DYLIB SONAME ${INSTALL_WITH_TOOLCHAIN} ${SOURCES})
- 
-   list(REMOVE_DUPLICATES LIB_NAMES)
--  if(("${CMAKE_SYSTEM_NAME}" STREQUAL "Linux") OR (MINGW) OR (HAIKU)
--     OR ("${CMAKE_SYSTEM_NAME}" STREQUAL "FreeBSD")
--     OR ("${CMAKE_SYSTEM_NAME}" STREQUAL "GNU")
--     OR ("${CMAKE_SYSTEM_NAME}" STREQUAL "OpenBSD")
--     OR ("${CMAKE_SYSTEM_NAME}" STREQUAL "Fuchsia")
--     OR ("${CMAKE_SYSTEM_NAME}" STREQUAL "DragonFly")
--     OR ("${CMAKE_SYSTEM_NAME}" STREQUAL "SunOS")) # FIXME: It should be "GNU ld for elf"
-+  if("${CMAKE_SYSTEM_NAME}" STREQUAL "SunOS")
-+    set(LIB_NAMES -Wl,-Bsymbolic -Wl,-z -Wl,allextract ${LIB_NAMES} -Wl,-z -Wl,defaultextract)
-+  elseif("${CMAKE_SYSTEM_NAME}" STREQUAL "Darwin")
-+    set(LIB_NAMES -Wl,-all_load ${LIB_NAMES})
-+  else()
-     configure_file(
-     ${CMAKE_CURRENT_SOURCE_DIR}/simple_version_script.map.in
-     ${LLVM_LIBRARY_DIR}/tools/llvm-shlib/simple_version_script.map)
-@@ -57,8 +55,6 @@ if(LLVM_BUILD_LLVM_DYLIB)
-       # inside and outside libLLVM.so.
-       target_link_options(LLVM PRIVATE LINKER:-Bsymbolic-functions)
-     endif()
--  elseif("${CMAKE_SYSTEM_NAME}" STREQUAL "Darwin")
--    set(LIB_NAMES -Wl,-all_load ${LIB_NAMES})
-   endif()
- 
-   target_link_libraries(LLVM PRIVATE ${LIB_NAMES})
diff --git a/libdrm/DESCR b/libdrm/DESCR
deleted file mode 100644
index c8be56c6b4..0000000000
--- a/libdrm/DESCR
+++ /dev/null
@@ -1,3 +0,0 @@
-This package provides a library which offers a userspace interface
-to kernel DRM (Direct Rendering Manager) services for access to
-graphics hardware.
diff --git a/libdrm/Makefile b/libdrm/Makefile
deleted file mode 100644
index d879e19922..0000000000
--- a/libdrm/Makefile
+++ /dev/null
@@ -1,96 +0,0 @@
-# $NetBSD: Makefile,v 1.96 2021/07/20 09:43:22 tnn Exp $
-
-DISTNAME=		libdrm-2.4.110
-CATEGORIES=		x11 graphics
-MASTER_SITES=		https://dri.freedesktop.org/libdrm/
-EXTRACT_SUFX=		.tar.xz
-
-MAINTAINER=		joerg%NetBSD.org@localhost
-HOMEPAGE=		https://dri.freedesktop.org/wiki/DRM
-COMMENT=		Userspace interface to kernel DRM services
-LICENSE=		mit
-
-# Platforms with kernel support for DRM
-ONLY_FOR_PLATFORM=	NetBSD-*-* DragonFly-*-* FreeBSD-*-* OpenBSD-*-* \
-			Linux-*-* SunOS-*-*
-
-USE_TOOLS+=		pkg-config
-
-PKGCONFIG_OVERRIDE+=	amdgpu/libdrm_amdgpu.pc.in
-PKGCONFIG_OVERRIDE+=	etnaviv/libdrm_etnaviv.pc.in
-PKGCONFIG_OVERRIDE+=	exynos/libdrm_exynos.pc.in
-PKGCONFIG_OVERRIDE+=	freedreno/libdrm_freedreno.pc.in
-PKGCONFIG_OVERRIDE+=	intel/libdrm_intel.pc.in
-PKGCONFIG_OVERRIDE+=	libkms/libkms.pc.in
-PKGCONFIG_OVERRIDE+=	nouveau/libdrm_nouveau.pc.in
-PKGCONFIG_OVERRIDE+=	omap/libdrm_omap.pc.in
-PKGCONFIG_OVERRIDE+=	radeon/libdrm_radeon.pc.in
-PKGCONFIG_OVERRIDE+=	tegra/libdrm_tegra.pc.in
-PKGCONFIG_OVERRIDE+=	vc4/libdrm_vc4.pc.in
-PKGCONFIG_OVERRIDE+=	libdrm.pc.in
-
-.include "../../mk/bsd.prefs.mk"
-
-SUBST_CLASSES+=		atomic
-SUBST_FILES.atomic=	xf86drm.h
-SUBST_MESSAGE.atomic=	Configuring atomic operations in xf86drm.h
-SUBST_STAGE.atomic=	pre-configure
-SUBST_VARS.atomic=	ATOMIC_OPS_CHECK
-
-ATOMIC_OPS_CHECK=	0
-.if exists(${CROSS_DESTDIR}/usr/include/sys/atomic.h)
-ATOMIC_OPS_CHECK=	1
-.else
-.  include "../../devel/libatomic_ops/buildlink3.mk"
-.endif
-
-PLIST_VARS+=	intel arm kms
-
-.if ${OPSYS} == "Linux" || ${OPSYS} == "FreeBSD" || ${OPSYS} == "DragonFly" || ${OPSYS} == "NetBSD"
-MESON_ARGS+=	-Dlibkms=true
-PLIST.kms=	yes
-.else
-MESON_ARGS+=	-Dlibkms=false
-.endif
-
-PLIST_VARS+=	intel arm kms
-.if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64"
-MESON_ARGS+=	-Dintel=true
-MESON_ARGS+=	-Dvmwgfx=true
-.include "../../sysutils/libpciaccess/buildlink3.mk"
-PLIST.intel=	yes
-.else
-MESON_ARGS+=	-Dintel=false
-MESON_ARGS+=	-Dvmwgfx=false
-.endif
-
-MESON_ARGS+=	-Dradeon=true
-MESON_ARGS+=	-Damdgpu=true
-MESON_ARGS+=	-Dnouveau=true
-
-.if !empty(MACHINE_ARCH:Marm*) || \
-      !empty(MACHINE_ARCH:Mearm*) || \
-      ${MACHINE_ARCH} == "aarch64"
-MESON_ARGS+=	-Detnaviv=true
-MESON_ARGS+=	-Dexynos=true
-MESON_ARGS+=	-Dfreedreno=true
-MESON_ARGS+=	-Dvc4=true
-MESON_ARGS+=	-Domap=true
-MESON_ARGS+=	-Dtegra=true
-PLIST.arm=	yes
-.else
-MESON_ARGS+=	-Detnaviv=false
-MESON_ARGS+=	-Dexynos=false
-MESON_ARGS+=	-Dfreedreno=false
-MESON_ARGS+=	-Domap=false
-MESON_ARGS+=	-Dtegra=false
-MESON_ARGS+=	-Dvc4=false
-.endif
-
-MESON_ARGS+=	-Dman-pages=false
-MESON_ARGS+=	-Dvalgrind=false
-
-LDFLAGS.NetBSD+=	-lpci
-
-.include "../../devel/meson/build.mk"
-.include "../../mk/bsd.pkg.mk"
diff --git a/libdrm/PLIST b/libdrm/PLIST
deleted file mode 100644
index d0cc5abec7..0000000000
--- a/libdrm/PLIST
+++ /dev/null
@@ -1,102 +0,0 @@
-@comment $NetBSD$
-${PLIST.arm}include/exynos/exynos_drm.h
-${PLIST.arm}include/exynos/exynos_fimg2d.h
-${PLIST.arm}include/freedreno/freedreno_drmif.h
-${PLIST.arm}include/freedreno/freedreno_ringbuffer.h
-include/libdrm/amdgpu.h
-include/libdrm/amdgpu_drm.h
-include/libdrm/drm.h
-include/libdrm/drm_fourcc.h
-include/libdrm/drm_mode.h
-include/libdrm/drm_sarea.h
-${PLIST.arm}include/libdrm/etnaviv_drmif.h
-${PLIST.arm}include/libdrm/exynos_drmif.h
-include/libdrm/i915_drm.h
-${PLIST.intel}include/libdrm/intel_aub.h
-${PLIST.intel}include/libdrm/intel_bufmgr.h
-${PLIST.intel}include/libdrm/intel_debug.h
-include/libdrm/mach64_drm.h
-include/libdrm/mga_drm.h
-include/libdrm/msm_drm.h
-include/libdrm/nouveau/nouveau.h
-include/libdrm/nouveau/nvif/cl0080.h
-include/libdrm/nouveau/nvif/cl9097.h
-include/libdrm/nouveau/nvif/class.h
-include/libdrm/nouveau/nvif/if0002.h
-include/libdrm/nouveau/nvif/if0003.h
-include/libdrm/nouveau/nvif/ioctl.h
-include/libdrm/nouveau/nvif/unpack.h
-include/libdrm/nouveau_drm.h
-${PLIST.arm}include/libdrm/omap_drmif.h
-include/libdrm/qxl_drm.h
-include/libdrm/r128_drm.h
-include/libdrm/r600_pci_ids.h
-include/libdrm/radeon_bo.h
-include/libdrm/radeon_bo_gem.h
-include/libdrm/radeon_bo_int.h
-include/libdrm/radeon_cs.h
-include/libdrm/radeon_cs_gem.h
-include/libdrm/radeon_cs_int.h
-include/libdrm/radeon_drm.h
-include/libdrm/radeon_surface.h
-include/libdrm/savage_drm.h
-include/libdrm/sis_drm.h
-${PLIST.arm}include/libdrm/tegra.h
-include/libdrm/tegra_drm.h
-include/libdrm/vc4_drm.h
-${PLIST.arm}include/libdrm/vc4_packet.h
-${PLIST.arm}include/libdrm/vc4_qpu_defines.h
-include/libdrm/via_drm.h
-include/libdrm/virtgpu_drm.h
-${PLIST.intel}include/libdrm/vmwgfx_drm.h
-${PLIST.kms}include/libkms/libkms.h
-include/libsync.h
-${PLIST.arm}include/omap/omap_drm.h
-include/xf86drm.h
-include/xf86drmMode.h
-lib/libdrm.so
-lib/libdrm.so.2
-lib/libdrm.so.2.4.0
-lib/libdrm_amdgpu.so
-lib/libdrm_amdgpu.so.1
-lib/libdrm_amdgpu.so.1.0.0
-${PLIST.arm}lib/libdrm_etnaviv.so
-${PLIST.arm}lib/libdrm_etnaviv.so.1
-${PLIST.arm}lib/libdrm_etnaviv.so.1.0.0
-${PLIST.arm}lib/libdrm_exynos.so
-${PLIST.arm}lib/libdrm_exynos.so.1
-${PLIST.arm}lib/libdrm_exynos.so.1.0.0
-${PLIST.arm}lib/libdrm_freedreno.so
-${PLIST.arm}lib/libdrm_freedreno.so.1
-${PLIST.arm}lib/libdrm_freedreno.so.1.0.0
-${PLIST.intel}lib/libdrm_intel.so
-${PLIST.intel}lib/libdrm_intel.so.1
-${PLIST.intel}lib/libdrm_intel.so.1.0.0
-lib/libdrm_nouveau.so
-lib/libdrm_nouveau.so.2
-lib/libdrm_nouveau.so.2.0.0
-${PLIST.arm}lib/libdrm_omap.so
-${PLIST.arm}lib/libdrm_omap.so.1
-${PLIST.arm}lib/libdrm_omap.so.1.0.0
-lib/libdrm_radeon.so
-lib/libdrm_radeon.so.1
-lib/libdrm_radeon.so.1.0.1
-${PLIST.arm}lib/libdrm_tegra.so
-${PLIST.arm}lib/libdrm_tegra.so.0
-${PLIST.arm}lib/libdrm_tegra.so.0.0.0
-${PLIST.kms}lib/libkms.so
-${PLIST.kms}lib/libkms.so.1
-${PLIST.kms}lib/libkms.so.1.0.0
-lib/pkgconfig/libdrm.pc
-lib/pkgconfig/libdrm_amdgpu.pc
-${PLIST.arm}lib/pkgconfig/libdrm_etnaviv.pc
-${PLIST.arm}lib/pkgconfig/libdrm_exynos.pc
-${PLIST.arm}lib/pkgconfig/libdrm_freedreno.pc
-${PLIST.intel}lib/pkgconfig/libdrm_intel.pc
-lib/pkgconfig/libdrm_nouveau.pc
-${PLIST.arm}lib/pkgconfig/libdrm_omap.pc
-lib/pkgconfig/libdrm_radeon.pc
-${PLIST.arm}lib/pkgconfig/libdrm_tegra.pc
-${PLIST.arm}lib/pkgconfig/libdrm_vc4.pc
-${PLIST.kms}lib/pkgconfig/libkms.pc
-share/libdrm/amdgpu.ids
diff --git a/libdrm/buildlink3.mk b/libdrm/buildlink3.mk
deleted file mode 100644
index 39269d9391..0000000000
--- a/libdrm/buildlink3.mk
+++ /dev/null
@@ -1,13 +0,0 @@
-# $NetBSD: buildlink3.mk,v 1.7 2013/05/16 05:43:14 richard Exp $
-
-BUILDLINK_TREE+=	libdrm
-
-.if !defined(LIBDRM_BUILDLINK3_MK)
-LIBDRM_BUILDLINK3_MK:=
-
-BUILDLINK_API_DEPENDS.libdrm+=	libdrm>=2.4.15
-BUILDLINK_PKGSRCDIR.libdrm?=	../../wip/libdrm
-BUILDLINK_INCDIRS.libdrm?=	include/libdrm
-.endif # LIBDRM_BUILDLINK3_MK
-
-BUILDLINK_TREE+=	-libdrm
diff --git a/libdrm/builtin.mk b/libdrm/builtin.mk
deleted file mode 100644
index 797e72a549..0000000000
--- a/libdrm/builtin.mk
+++ /dev/null
@@ -1,11 +0,0 @@
-# $NetBSD: builtin.mk,v 1.5 2019/10/18 09:04:16 nia Exp $
-
-BUILTIN_PKG:=	libdrm
-
-.for pcfile in libdrm libdrm_amdgpu libdrm_intel libdrm_nouveau libdrm_radeon
-PKGCONFIG_FILE.libdrm+=	${X11BASE}/lib/pkgconfig/${pcfile}.pc
-PKGCONFIG_FILE.libdrm+=	${X11BASE}/lib${LIBABISUFFIX}/pkgconfig/${pcfile}.pc
-.endfor
-
-.include "../../mk/buildlink3/pkgconfig-builtin.mk"
-.include "../../mk/x11.builtin.mk"
diff --git a/libdrm/distinfo b/libdrm/distinfo
deleted file mode 100644
index f19fb1ddbd..0000000000
--- a/libdrm/distinfo
+++ /dev/null
@@ -1,20 +0,0 @@
-$NetBSD: distinfo,v 1.97 2020/04/12 19:41:21 joerg Exp $
-
-BLAKE2s (libdrm-2.4.110.tar.xz) = 3f45410c126cfb5ad5d8166270faa108751c1476c5f3926cc9b471b341147d0b
-SHA512 (libdrm-2.4.110.tar.xz) = 52f92ef1fe4c218a1d7dba53ef43334dbfca80e3209afe59f3a32c4bf67473126534e990df07a931a12d46a3b997c21ef17c1c4d8a0c88d44d5c6c040e3b6be3
-Size (libdrm-2.4.110.tar.xz) = 436372 bytes
-SHA1 (patch-ac) = 67c998df7dfc0dabc86320ea6d015cede3e464ea
-SHA1 (patch-amdgpu_amdgpu__cs.c) = 125eca62cd3e00a6e039066152780174dcde0705
-SHA1 (patch-etnaviv_etnaviv__device.c) = 236b2df05a918c35c4decfee416ff5bfe9c073d4
-SHA1 (patch-exynos_exynos__drm.c) = 3fa4c8a592a5f4e0c4001eb6fa1bc7811e398605
-SHA1 (patch-exynos_exynos__fimg2d.c) = 298438b128bdb4ff57a8c0d7d6a081485e64e49a
-SHA1 (patch-include_drm_drm.h) = 48a912f40bf2b2a1c23edbe4446fa7869212f17b
-SHA1 (patch-libkms_vmwgfx.c) = d2204c0b79098c6c36b7f282b486c58c6354bd1d
-SHA1 (patch-libsync.h) = 1e0603e72a54a069fc9d2ab2c9559d22381a69d3
-SHA1 (patch-meson.build) = b9ebb763a807da931f83f4d5c02925ab5498ef69
-SHA1 (patch-omap_omap__drm.c) = a23eefa9a57315d3ae77e528fd29de70ff9b2648
-SHA1 (patch-tests_exynos_exynos__fimg2d__test.c) = 9fc874ecc9a42db75327f736d04038f7cf8f00ff
-SHA1 (patch-tests_nouveau_threaded.c) = 82b566666e77898c209d66ce804c913b53e53a50
-SHA1 (patch-xf86drm.c) = 6e4b3ee406666b37cc0b923ad49b945055919c83
-SHA1 (patch-xf86drmMode.c) = 078b1ecaa4fedd74992d682433701245ee51785b
-SHA1 (patch-xf86drmMode.h) = a28b02887389be8670193c119f711901af61a6b2
diff --git a/libdrm/patches/patch-ac b/libdrm/patches/patch-ac
deleted file mode 100644
index 2b11b37832..0000000000
--- a/libdrm/patches/patch-ac
+++ /dev/null
@@ -1,40 +0,0 @@
-$NetBSD: patch-ac,v 1.4 2012/02/16 20:30:56 hans Exp $
-
---- xf86drm.h.orig	2010-03-05 23:21:13.000000000 +0000
-+++ xf86drm.h
-@@ -35,7 +35,11 @@
- #define _XF86DRM_H_
- 
- #include <stdarg.h>
-+#if @ATOMIC_OPS_CHECK@
-+#include <sys/atomic.h>
-+#else
- #include <sys/types.h>
-+#endif
- #include <stdint.h>
- #include <drm.h>
- 
-@@ -55,6 +59,9 @@
- #else /* One of the *BSDs */
- 
- #include <sys/ioccom.h>
-+#ifdef __sun
-+#define _IOC(d, x, y, t)	((int)((uint32_t)(d | (((sizeof (t)) & IOCPARM_MASK)<<16) | (x<<8) | y)))
-+#endif
- #define DRM_IOCTL_NR(n)         ((n) & 0xff)
- #define DRM_IOC_VOID            IOC_VOID
- #define DRM_IOC_READ            IOC_OUT
-@@ -333,7 +340,12 @@ typedef struct _drmSetVersion {
- #define DRM_LOCK_HELD  0x80000000U /**< Hardware lock is held */
- #define DRM_LOCK_CONT  0x40000000U /**< Hardware lock is contended */
- 
--#if defined(__GNUC__) && (__GNUC__ >= 2)
-+#if @ATOMIC_OPS_CHECK@ /* configured by pkgsrc */
-+
-+#define DRM_CAS(lock, old, new, __ret)	\
-+ (__ret = atomic_cas_uint(&__drm_dummy_lock(lock), (old), (new)) != (old));
-+
-+#elif defined(__GNUC__) && (__GNUC__ >= 2)
- # if defined(__i386) || defined(__AMD64__) || defined(__x86_64__) || defined(__amd64__)
- 				/* Reflect changes here to drmP.h */
- #define DRM_CAS(lock,old,new,__ret)                                    \
diff --git a/libdrm/patches/patch-amdgpu_amdgpu__cs.c b/libdrm/patches/patch-amdgpu_amdgpu__cs.c
deleted file mode 100644
index d274f04873..0000000000
--- a/libdrm/patches/patch-amdgpu_amdgpu__cs.c
+++ /dev/null
@@ -1,17 +0,0 @@
-$NetBSD$
-
-libc-supplied compat alloca(3) should not be used
-
---- amdgpu/amdgpu_cs.c.orig	2022-02-16 10:00:13.000000000 +0000
-+++ amdgpu/amdgpu_cs.c
-@@ -28,9 +28,7 @@
- #include <pthread.h>
- #include <sched.h>
- #include <sys/ioctl.h>
--#if HAVE_ALLOCA_H
--# include <alloca.h>
--#endif
-+#define alloca(size) __builtin_alloca(size)
- 
- #include "xf86drm.h"
- #include "amdgpu_drm.h"
diff --git a/libdrm/patches/patch-etnaviv_etnaviv__device.c b/libdrm/patches/patch-etnaviv_etnaviv__device.c
deleted file mode 100644
index 18f96e8834..0000000000
--- a/libdrm/patches/patch-etnaviv_etnaviv__device.c
+++ /dev/null
@@ -1,17 +0,0 @@
-$NetBSD$
-
-Fix Linuxisms.
-
---- etnaviv/etnaviv_device.c.orig	2021-07-02 12:49:05.425771700 +0000
-+++ etnaviv/etnaviv_device.c
-@@ -25,8 +25,10 @@
-  */
- 
- #include <stdlib.h>
-+#ifdef __linux__
- #include <linux/stddef.h>
- #include <linux/types.h>
-+#endif
- #include <errno.h>
- #include <sys/mman.h>
- #include <fcntl.h>
diff --git a/libdrm/patches/patch-exynos_exynos__drm.c b/libdrm/patches/patch-exynos_exynos__drm.c
deleted file mode 100644
index 1e5d2463e1..0000000000
--- a/libdrm/patches/patch-exynos_exynos__drm.c
+++ /dev/null
@@ -1,16 +0,0 @@
-$NetBSD$
-
-Fix Linuxisms.
-
---- exynos/exynos_drm.c.orig	2022-02-16 10:00:13.000000000 +0000
-+++ exynos/exynos_drm.c
-@@ -31,7 +31,9 @@
- #include <unistd.h>
- 
- #include <sys/mman.h>
-+#ifdef __linux__
- #include <linux/stddef.h>
-+#endif
- 
- #include <xf86drm.h>
- 
diff --git a/libdrm/patches/patch-exynos_exynos__fimg2d.c b/libdrm/patches/patch-exynos_exynos__fimg2d.c
deleted file mode 100644
index 23608ee416..0000000000
--- a/libdrm/patches/patch-exynos_exynos__fimg2d.c
+++ /dev/null
@@ -1,16 +0,0 @@
-$NetBSD$
-
-Fix Linuxisms.
-
---- exynos/exynos_fimg2d.c.orig	2022-02-16 10:00:13.000000000 +0000
-+++ exynos/exynos_fimg2d.c
-@@ -30,7 +30,9 @@
- #include <assert.h>
- 
- #include <sys/mman.h>
-+#ifdef __linux__
- #include <linux/stddef.h>
-+#endif
- 
- #include <xf86drm.h>
- 
diff --git a/libdrm/patches/patch-include_drm_drm.h b/libdrm/patches/patch-include_drm_drm.h
deleted file mode 100644
index adff81aaef..0000000000
--- a/libdrm/patches/patch-include_drm_drm.h
+++ /dev/null
@@ -1,18 +0,0 @@
-$NetBSD: patch-include_drm_drm.h,v 1.4 2016/04/29 11:17:34 wiz Exp $
-
-Fix compilation on systems that don't provide O_CLOEXEC.
-
---- include/drm/drm.h.orig	2016-04-28 00:44:16.000000000 +0000
-+++ include/drm/drm.h
-@@ -674,7 +674,11 @@ struct drm_set_client_cap {
- };
- 
- #define DRM_RDWR O_RDWR
-+#ifdef O_CLOEXEC
- #define DRM_CLOEXEC O_CLOEXEC
-+#else
-+#define DRM_CLOEXEC 0
-+#endif
- struct drm_prime_handle {
- 	__u32 handle;
- 
diff --git a/libdrm/patches/patch-libkms_vmwgfx.c b/libdrm/patches/patch-libkms_vmwgfx.c
deleted file mode 100644
index bedfefa615..0000000000
--- a/libdrm/patches/patch-libkms_vmwgfx.c
+++ /dev/null
@@ -1,17 +0,0 @@
-$NetBSD: patch-libkms_vmwgfx.c,v 1.3 2015/05/07 06:31:06 wiz Exp $
-
-Provide compatibility errno number for non-Linux.
-
---- libkms/vmwgfx.c.orig	2015-05-06 23:04:31.000000000 +0000
-+++ libkms/vmwgfx.c
-@@ -39,6 +39,10 @@
- #include "libdrm_macros.h"
- #include "vmwgfx_drm.h"
- 
-+#ifndef ERESTART
-+#define ERESTART 85
-+#endif
-+
- struct vmwgfx_bo
- {
- 	struct kms_bo base;
diff --git a/libdrm/patches/patch-libsync.h b/libdrm/patches/patch-libsync.h
deleted file mode 100644
index 41909f92a1..0000000000
--- a/libdrm/patches/patch-libsync.h
+++ /dev/null
@@ -1,24 +0,0 @@
-$NetBSD: patch-libsync.h,v 1.3 2019/01/22 21:50:47 wiz Exp $
-
-Fix public header on SunOS.
-If ETIME is not defined, use ETIMEDOUT.
-
---- libsync.h.orig	2019-01-22 16:32:41.000000000 +0000
-+++ libsync.h
-@@ -33,9 +33,16 @@
- #include <stdint.h>
- #include <string.h>
- #include <sys/ioctl.h>
-+#ifdef __sun
-+#include <sys/filio.h>
-+#endif
- #include <sys/poll.h>
- #include <unistd.h>
- 
-+#ifndef ETIME
-+#define ETIME ETIMEDOUT
-+#endif
-+
- #if defined(__cplusplus)
- extern "C" {
- #endif
diff --git a/libdrm/patches/patch-meson.build b/libdrm/patches/patch-meson.build
deleted file mode 100644
index 56034eec91..0000000000
--- a/libdrm/patches/patch-meson.build
+++ /dev/null
@@ -1,15 +0,0 @@
-$NetBSD$
-
-xxx how to deal with this properly?
-
---- meson.build.orig	2021-07-02 12:49:05.442438400 +0000
-+++ meson.build
-@@ -35,7 +35,7 @@ config.set10('UDEV', get_option('udev'))
- with_freedreno_kgsl = get_option('freedreno-kgsl')
- with_install_tests = get_option('install-test-programs')
- 
--if ['freebsd', 'dragonfly', 'netbsd'].contains(host_machine.system())
-+if ['freebsd', 'dragonfly'].contains(host_machine.system())
-   dep_pthread_stubs = dependency('pthread-stubs', version : '>= 0.4')
- else
-   dep_pthread_stubs = []
diff --git a/libdrm/patches/patch-omap_omap__drm.c b/libdrm/patches/patch-omap_omap__drm.c
deleted file mode 100644
index bbda4b4a86..0000000000
--- a/libdrm/patches/patch-omap_omap__drm.c
+++ /dev/null
@@ -1,17 +0,0 @@
-$NetBSD$
-
-Fix Linuxisms.
-
---- omap/omap_drm.c.orig	2022-02-16 10:00:13.000000000 +0000
-+++ omap/omap_drm.c
-@@ -27,8 +27,10 @@
-  */
- 
- #include <stdlib.h>
-+#ifdef __linux__
- #include <linux/stddef.h>
- #include <linux/types.h>
-+#endif
- #include <errno.h>
- #include <sys/mman.h>
- #include <fcntl.h>
diff --git a/libdrm/patches/patch-tests_exynos_exynos__fimg2d__test.c b/libdrm/patches/patch-tests_exynos_exynos__fimg2d__test.c
deleted file mode 100644
index 84cfafca70..0000000000
--- a/libdrm/patches/patch-tests_exynos_exynos__fimg2d__test.c
+++ /dev/null
@@ -1,16 +0,0 @@
-$NetBSD$
-
-Fix Linuxisms.
-
---- tests/exynos/exynos_fimg2d_test.c.orig	2022-02-16 10:00:13.000000000 +0000
-+++ tests/exynos/exynos_fimg2d_test.c
-@@ -31,7 +31,9 @@
- #include <unistd.h>
- 
- #include <sys/mman.h>
-+#ifdef __linux__
- #include <linux/stddef.h>
-+#endif
- 
- #include <xf86drm.h>
- #include <xf86drmMode.h>
diff --git a/libdrm/patches/patch-tests_nouveau_threaded.c b/libdrm/patches/patch-tests_nouveau_threaded.c
deleted file mode 100644
index e83bddc60e..0000000000
--- a/libdrm/patches/patch-tests_nouveau_threaded.c
+++ /dev/null
@@ -1,13 +0,0 @@
-$NetBSD$
-
---- tests/nouveau/threaded.c.orig	2021-07-02 12:49:05.455772000 +0000
-+++ tests/nouveau/threaded.c
-@@ -36,7 +36,7 @@ static int failed;
- 
- static int import_fd;
- 
--#if defined(__GLIBC__) || defined(__FreeBSD__)
-+#if defined(__GLIBC__) || defined(__FreeBSD__) || defined(__NetBSD__)
- int ioctl(int fd, unsigned long request, ...)
- #else
- int ioctl(int fd, int request, ...)
diff --git a/libdrm/patches/patch-xf86drm.c b/libdrm/patches/patch-xf86drm.c
deleted file mode 100644
index 3af2a32925..0000000000
--- a/libdrm/patches/patch-xf86drm.c
+++ /dev/null
@@ -1,207 +0,0 @@
-$NetBSD$
-
-Implement drmParseSubsystemType, drmParsePciBusInfo for NetBSD
-
---- xf86drm.c.orig	2021-07-02 12:49:05.459105300 +0000
-+++ xf86drm.c
-@@ -86,7 +86,10 @@
- #endif
- 
- #ifdef __NetBSD__
--#define DRM_MAJOR 34
-+#define DRM_MAJOR 180
-+#include <sys/param.h>
-+#include <dev/pci/pcireg.h>
-+#include <pci.h>
- #endif
- 
- #ifdef __OpenBSD__
-@@ -3499,6 +3502,65 @@ static int drmParseSubsystemType(int maj
-             return DRM_BUS_VIRTIO;
-      }
-     return subsystem_type;
-+#elif defined(__NetBSD__)
-+    int type, fd;
-+    drmSetVersion sv;
-+    char *buf;
-+    unsigned domain, bus, dev;
-+    int func;
-+    int ret;
-+
-+    /* Get the type of device we're looking for to pick the right pathname.  */
-+    type = drmGetMinorType(maj, min);
-+    if (type == -1)
-+	return -ENODEV;
-+
-+    /* Open the device.  Don't try to create it if it's not there.  */
-+    fd = drmOpenMinor(min, 0, type);
-+    if (fd < 0)
-+	return -errno;
-+
-+    /*
-+     * Set the interface version to 1.4 or 1.1, which has the effect of
-+     * populating the bus id for us.
-+     */
-+    sv.drm_di_major = 1;
-+    sv.drm_di_minor = 4;
-+    sv.drm_dd_major = -1;
-+    sv.drm_dd_minor = -1;
-+    if (drmSetInterfaceVersion(fd, &sv)) {
-+	sv.drm_di_major = 1;
-+	sv.drm_di_minor = 1;
-+	sv.drm_dd_major = -1;
-+	sv.drm_dd_minor = -1;
-+	if (drmSetInterfaceVersion(fd, &sv)) {
-+	    /*
-+	     * We're probably not the master.  Hope the master already
-+	     * set the version to >=1.1 so that we can get the busid.
-+	     */
-+	}
-+    }
-+
-+    /* Get the bus id.  */
-+    buf = drmGetBusid(fd);
-+
-+    /* We're done with the device now.  */
-+    (void)close(fd);
-+
-+    /* If there is no bus id, fail.  */
-+    if (buf == NULL)
-+	return -ENODEV;
-+
-+    /* Find a string we know about; otherwise -EINVAL.  */
-+    ret = -EINVAL;
-+    if (strncmp(buf, "pci:", 4) == 0)
-+	ret = DRM_BUS_PCI;
-+
-+    /* We're done with the bus id.  */
-+    free(buf);
-+
-+    /* Success or not, we're done.  */
-+    return ret;
- #elif defined(__OpenBSD__) || defined(__DragonFly__) || defined(__FreeBSD__)
-     return DRM_BUS_PCI;
- #else
-@@ -3610,6 +3672,73 @@ static int drmParsePciBusInfo(int maj, i
-     info->func = func;
- 
-     return 0;
-+#elif defined(__NetBSD__)
-+    int type, fd;
-+    drmSetVersion sv;
-+    char *buf;
-+    unsigned domain, bus, dev;
-+    int func;
-+    int ret;
-+
-+    /* Get the type of device we're looking for to pick the right pathname.  */
-+    type = drmGetMinorType(maj, min);
-+    if (type == -1)
-+	return -ENODEV;
-+
-+    /* Open the device.  Don't try to create it if it's not there.  */
-+    fd = drmOpenMinor(min, 0, type);
-+    if (fd < 0)
-+	return -errno;
-+
-+    /*
-+     * Set the interface version to 1.4 or 1.1, which has the effect of
-+     * populating the bus id for us.
-+     */
-+    sv.drm_di_major = 1;
-+    sv.drm_di_minor = 4;
-+    sv.drm_dd_major = -1;
-+    sv.drm_dd_minor = -1;
-+    if (drmSetInterfaceVersion(fd, &sv)) {
-+	sv.drm_di_major = 1;
-+	sv.drm_di_minor = 1;
-+	sv.drm_dd_major = -1;
-+	sv.drm_dd_minor = -1;
-+	if (drmSetInterfaceVersion(fd, &sv)) {
-+            /*
-+	     * We're probably not the master.  Hope the master already
-+	     * set the version to >=1.1 so that we can get the busid.
-+	     */
-+	}
-+    }
-+
-+    /* Get the bus id.  */
-+    buf = drmGetBusid(fd);
-+
-+    /* We're done with the device now.  */
-+    (void)close(fd);
-+
-+    /* If there is no bus id, fail.  */
-+    if (buf == NULL)
-+	return -ENODEV;
-+
-+    /* Parse the bus id.  */
-+    ret = sscanf(buf, "pci:%04x:%02x:%02x.%d", &domain, &bus, &dev, &func);
-+
-+    /* We're done with the bus id.  */
-+    free(buf);
-+
-+    /* If scanf didn't return 4 -- domain, bus, dev, func -- then fail.  */
-+    if (ret != 4)
-+	return -ENODEV;
-+
-+    /* Populate the results.  */
-+    info->domain = domain;
-+    info->bus = bus;
-+    info->dev = dev;
-+    info->func = func;
-+
-+    /* Success!  */
-+    return 0;
- #elif defined(__OpenBSD__) || defined(__DragonFly__)
-     struct drm_pciinfo pinfo;
-     int fd, type;
-@@ -3778,6 +3907,48 @@ static int drmParsePciDeviceInfo(int maj
-         return parse_config_sysfs_file(maj, min, device);
- 
-     return 0;
-+#elif defined(__NetBSD__)
-+    drmPciBusInfo businfo;
-+    char fname[PATH_MAX];
-+    int pcifd;
-+    pcireg_t id, class, subsys;
-+    int ret;
-+
-+    /* Find where on the bus the device lives.  */
-+    ret = drmParsePciBusInfo(maj, min, &businfo);
-+    if (ret)
-+	return ret;
-+
-+    /* Open the pciN device node to get at its config registers.  */
-+    if (snprintf(fname, sizeof fname, "/dev/pci%u", businfo.domain)
-+	>= sizeof fname)
-+	return -ENODEV;
-+    if ((pcifd = open(fname, O_RDONLY)) == -1)
-+	return -errno;
-+
-+    ret = -1;
-+    /* Read the id and class pci config registers.  */
-+    if (pcibus_conf_read(pcifd, businfo.bus, businfo.dev, businfo.func,
-+	    PCI_ID_REG, &id) == -1)
-+	goto out;
-+    if (pcibus_conf_read(pcifd, businfo.bus, businfo.dev, businfo.func,
-+	    PCI_CLASS_REG, &class) == -1)
-+	goto out;
-+    if (pcibus_conf_read(pcifd, businfo.bus, businfo.dev, businfo.func,
-+	    PCI_SUBSYS_ID_REG, &subsys) == -1)
-+	goto out;
-+
-+    ret = 0;
-+    device->vendor_id = PCI_VENDOR(id);
-+    device->device_id = PCI_PRODUCT(id);
-+    device->subvendor_id = PCI_SUBSYS_VENDOR(subsys);
-+    device->subdevice_id = PCI_SUBSYS_ID(subsys);
-+    device->revision_id = PCI_REVISION(class);
-+out:
-+    if (ret == -1)
-+	ret = -errno;
-+    close(pcifd);
-+    return ret;
- #elif defined(__OpenBSD__) || defined(__DragonFly__)
-     struct drm_pciinfo pinfo;
-     int fd, type;
diff --git a/libdrm/patches/patch-xf86drmMode.c b/libdrm/patches/patch-xf86drmMode.c
deleted file mode 100644
index 9ebafd3601..0000000000
--- a/libdrm/patches/patch-xf86drmMode.c
+++ /dev/null
@@ -1,110 +0,0 @@
-$NetBSD$
-
-FreeBSD/DragonFly/NetBSD support. From FreeBSD ports and NetBSD xsrc
-
---- xf86drmMode.c.orig	2021-07-02 12:49:05.459105300 +0000
-+++ xf86drmMode.c
-@@ -38,9 +38,7 @@
- #include <stdlib.h>
- #include <sys/ioctl.h>
- #if HAVE_SYS_SYSCTL_H
--#ifdef __FreeBSD__
- #include <sys/types.h>
--#endif
- #include <sys/sysctl.h>
- #endif
- #include <stdio.h>
-@@ -808,34 +806,59 @@ drm_public int drmCheckModesettingSuppor
- 	closedir(sysdir);
- 	if (found)
- 		return 0;
--#elif defined (__FreeBSD__) || defined (__FreeBSD_kernel__)
--	char sbusid[1024];
--	char oid[128];
--	int i, modesetting, ret;
--	size_t len;
--
--	/* How many GPUs do we expect in the machine ? */
--	for (i = 0; i < 10; i++) {
--		snprintf(oid, sizeof(oid), "hw.dri.%d.busid", i);
--		len = sizeof(sbusid);
--		ret = sysctlbyname(oid, sbusid, &len, NULL, 0);
--		if (ret == -1) {
--			if (errno == ENOENT)
-+#elif defined (__FreeBSD__) || defined (__FreeBSD_kernel__) || defined(__DragonFly__)
-+	#define bus_fmt "pci:%04x:%02x:%02x.%u"
-+	#define name_fmt "%*s %*s " bus_fmt
-+	unsigned int d1 = 0, b1 = 0, s1 = 0, f1 = 0;
-+	if (sscanf(busid, bus_fmt, &d1, &b1, &s1, &f1) != 4)
-+                return -EINVAL;
-+	/*
-+	 * hw.dri.%i.bus is not always present and hw.dri.%i.name does not
-+	 * always contain the busid, so try both for best chance of success
-+	 */
-+	for (int i = 0; i < DRM_MAX_MINOR; ++i) {
-+		char name[22], value[256];
-+		size_t length = sizeof(value);
-+		snprintf(name, sizeof(name), "hw.dri.%i.name", i);
-+		if (sysctlbyname(name, value, &length, NULL, 0))
-+			continue;
-+
-+		value[length] = '\0';
-+		unsigned int d2 = 0, b2 = 0, s2 = 0, f2 = 0;
-+		switch (sscanf(value, name_fmt, &d2, &b2, &s2, &f2)) {
-+		case 0: /* busid not in the name, try busid */
-+			length = sizeof(value);
-+			snprintf(name, sizeof(name), "hw.dri.%i.busid", i);
-+			if (sysctlbyname(name, value, &length, NULL, 0))
-+				continue;
-+			value[length] = '\0';
-+			if (sscanf(value, bus_fmt, &d2, &b2, &s2, &f2) != 4)
- 				continue;
--			return -EINVAL;
-+			/* fall through after parsing busid */
-+
-+		case 4: /* if we jumped here then busid was in the name */ 
-+			if (d1 == d2 && b1 == b2 && s1 == s2 && f1 == f2) {
-+			/*
-+			 * Confirm the drm driver for this device supports KMS,
-+			 * except on DragonFly where all the drm drivers do so
-+			 * but only hw.dri.0.modesetting is present
-+			 */ 
-+			#ifndef __DragonFly__
-+				int modesetting = 0;
-+				length = sizeof(modesetting);
-+				snprintf(name, sizeof(name), "hw.dri.%i.modesetting", i);
-+				if (sysctlbyname(name, &modesetting, &length, NULL, 0)
-+				 || length != sizeof(modesetting) || !modesetting)
-+					return -ENOSYS;
-+				else
-+			#endif
-+					return 0;
-+			}
-+		default:
-+			break;
- 		}
--		if (strcmp(sbusid, busid) != 0)
--			continue;
--		snprintf(oid, sizeof(oid), "hw.dri.%d.modesetting", i);
--		len = sizeof(modesetting);
--		ret = sysctlbyname(oid, &modesetting, &len, NULL, 0);
--		if (ret == -1 || len != sizeof(modesetting))
--			return -EINVAL;
--		return (modesetting ? 0 : -ENOSYS);
- 	}
--#elif defined(__DragonFly__)
--	return 0;
--#elif defined(__OpenBSD__)
-+#elif defined(__OpenBSD__) || defined(__NetBSD__)
- 	int	fd;
- 	struct drm_mode_card_res res;
- 	drmModeResPtr r = 0;
-@@ -988,7 +1011,7 @@ drm_public int drmModePageFlipTarget(int
- 
- drm_public int drmModeSetPlane(int fd, uint32_t plane_id, uint32_t crtc_id,
- 		    uint32_t fb_id, uint32_t flags,
--		    int32_t crtc_x, int32_t crtc_y,
-+		    uint32_t crtc_x, uint32_t crtc_y,
- 		    uint32_t crtc_w, uint32_t crtc_h,
- 		    uint32_t src_x, uint32_t src_y,
- 		    uint32_t src_w, uint32_t src_h)
diff --git a/libdrm/patches/patch-xf86drmMode.h b/libdrm/patches/patch-xf86drmMode.h
deleted file mode 100644
index 8a20d90dc2..0000000000
--- a/libdrm/patches/patch-xf86drmMode.h
+++ /dev/null
@@ -1,13 +0,0 @@
-$NetBSD: patch-xf86drmMode.h,v 1.1 2014/10/26 10:20:10 wiz Exp $
-
---- xf86drmMode.h.orig	2014-06-14 12:33:26.000000000 +0000
-+++ xf86drmMode.h
-@@ -449,7 +449,7 @@ extern drmModePlaneResPtr drmModeGetPlan
- extern drmModePlanePtr drmModeGetPlane(int fd, uint32_t plane_id);
- extern int drmModeSetPlane(int fd, uint32_t plane_id, uint32_t crtc_id,
- 			   uint32_t fb_id, uint32_t flags,
--			   int32_t crtc_x, int32_t crtc_y,
-+			   uint32_t crtc_x, uint32_t crtc_y,
- 			   uint32_t crtc_w, uint32_t crtc_h,
- 			   uint32_t src_x, uint32_t src_y,
- 			   uint32_t src_w, uint32_t src_h);


Home | Main Index | Thread Index | Old Index