head 1.7; access; symbols pkgsrc-2026Q1:1.7.0.34 pkgsrc-2026Q1-base:1.7 pkgsrc-2025Q4:1.7.0.32 pkgsrc-2025Q4-base:1.7 pkgsrc-2025Q3:1.7.0.30 pkgsrc-2025Q3-base:1.7 pkgsrc-2025Q2:1.7.0.28 pkgsrc-2025Q2-base:1.7 pkgsrc-2025Q1:1.7.0.26 pkgsrc-2025Q1-base:1.7 pkgsrc-2024Q4:1.7.0.24 pkgsrc-2024Q4-base:1.7 pkgsrc-2024Q3:1.7.0.22 pkgsrc-2024Q3-base:1.7 pkgsrc-2024Q2:1.7.0.20 pkgsrc-2024Q2-base:1.7 pkgsrc-2024Q1:1.7.0.18 pkgsrc-2024Q1-base:1.7 pkgsrc-2023Q4:1.7.0.16 pkgsrc-2023Q4-base:1.7 pkgsrc-2023Q3:1.7.0.14 pkgsrc-2023Q3-base:1.7 pkgsrc-2023Q2:1.7.0.12 pkgsrc-2023Q2-base:1.7 pkgsrc-2023Q1:1.7.0.10 pkgsrc-2023Q1-base:1.7 pkgsrc-2022Q4:1.7.0.8 pkgsrc-2022Q4-base:1.7 pkgsrc-2022Q3:1.7.0.6 pkgsrc-2022Q3-base:1.7 pkgsrc-2022Q2:1.7.0.4 pkgsrc-2022Q2-base:1.7 pkgsrc-2022Q1:1.7.0.2 pkgsrc-2022Q1-base:1.7 pkgsrc-2021Q4:1.6.0.24 pkgsrc-2021Q4-base:1.6 pkgsrc-2021Q3:1.6.0.22 pkgsrc-2021Q3-base:1.6 pkgsrc-2021Q2:1.6.0.20 pkgsrc-2021Q2-base:1.6 pkgsrc-2021Q1:1.6.0.18 pkgsrc-2021Q1-base:1.6 pkgsrc-2020Q4:1.6.0.16 pkgsrc-2020Q4-base:1.6 pkgsrc-2020Q3:1.6.0.14 pkgsrc-2020Q3-base:1.6 pkgsrc-2020Q2:1.6.0.12 pkgsrc-2020Q2-base:1.6 pkgsrc-2020Q1:1.6.0.8 pkgsrc-2020Q1-base:1.6 pkgsrc-2019Q4:1.6.0.10 pkgsrc-2019Q4-base:1.6 pkgsrc-2019Q3:1.6.0.6 pkgsrc-2019Q3-base:1.6 pkgsrc-2019Q2:1.6.0.4 pkgsrc-2019Q2-base:1.6 pkgsrc-2019Q1:1.6.0.2 pkgsrc-2019Q1-base:1.6 pkgsrc-2018Q4:1.5.0.10 pkgsrc-2018Q4-base:1.5 pkgsrc-2018Q3:1.5.0.8 pkgsrc-2018Q3-base:1.5 pkgsrc-2018Q2:1.5.0.6 pkgsrc-2018Q2-base:1.5 pkgsrc-2018Q1:1.5.0.4 pkgsrc-2018Q1-base:1.5 pkgsrc-2017Q4:1.5.0.2 pkgsrc-2017Q4-base:1.5 pkgsrc-2017Q3:1.3.0.8 pkgsrc-2017Q3-base:1.3 pkgsrc-2017Q2:1.3.0.4 pkgsrc-2017Q2-base:1.3 pkgsrc-2017Q1:1.3.0.2 pkgsrc-2017Q1-base:1.3 pkgsrc-2016Q4:1.2.0.2 pkgsrc-2016Q4-base:1.2 pkgsrc-2016Q3:1.1.0.6 pkgsrc-2016Q3-base:1.1 pkgsrc-2016Q2:1.1.0.4 pkgsrc-2016Q2-base:1.1 pkgsrc-2016Q1:1.1.0.2 pkgsrc-2016Q1-base:1.1; locks; strict; comment @// @; 1.7 date 2022.03.13.15.22.32; author tnn; state Exp; branches; next 1.6; commitid yHuWCSewa5lNj4wD; 1.6 date 2019.01.26.21.17.20; author tnn; state Exp; branches; next 1.5; commitid oeXOFwTTZs7cZk9B; 1.5 date 2017.12.08.02.14.44; author gdt; state Exp; branches; next 1.4; commitid 6dNkQg0RidtvX1iA; 1.4 date 2017.12.01.19.22.13; author adam; state Exp; branches; next 1.3; commitid RNNRTudpzr1HSdhA; 1.3 date 2017.03.17.22.38.18; author adam; state Exp; branches; next 1.2; commitid RtC8EMbuGmoliXJz; 1.2 date 2016.11.14.20.15.33; author ryoon; state Exp; branches; next 1.1; commitid QLKL3BrgVJGvs8uz; 1.1 date 2016.03.17.02.53.59; author tnn; state Exp; branches; next ; commitid isLP1ajmhzDotWYy; desc @@ 1.7 log @libLLVM: update to 13.0.1, for mesa update @ text @$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") { @ 1.6 log @libLLVM: update to 7.0.1, adapted from lang/llvm @ text @d1 1 a1 1 $NetBSD$ d7 1 a7 1 --- tools/llvm-config/llvm-config.cpp.orig 2018-06-23 16:50:09.000000000 +0000 d9 1 a9 1 @@@@ -333,11 +333,11 @@@@ int main(int argc, char **argv) { d17 1 a17 1 ActiveBinDir = path.str(); d23 1 a23 1 @@@@ -373,14 +373,14 @@@@ int main(int argc, char **argv) { d40 1 a40 1 @@@@ -393,7 +393,7 @@@@ int main(int argc, char **argv) { d49 1 a49 1 @@@@ -494,7 +494,7 @@@@ int main(int argc, char **argv) { @ 1.5 log @libLLVM: Revert update to 5.0.0 The update broke MesaLib, which blocks a vast number of packages. In the interest of stability heading towards 2017Q4, revert it, leaving the issue of how to handle updates to this package (how much testing is required, keeping multiple versions, etc.) to after the branch. @ text @d1 1 a1 1 $NetBSD: patch-tools_llvm-config_llvm-config.cpp,v 1.3 2017/03/17 22:38:18 adam Exp $ d7 1 a7 1 --- tools/llvm-config/llvm-config.cpp.orig 2017-01-12 19:47:38.000000000 +0000 d9 1 a9 1 @@@@ -332,9 +332,9 @@@@ int main(int argc, char **argv) { d15 3 a17 1 ActiveBinDir = ActivePrefix + "/bin"; d23 1 a23 1 @@@@ -370,14 +370,14 @@@@ int main(int argc, char **argv) { d40 1 a40 1 @@@@ -390,7 +390,7 @@@@ int main(int argc, char **argv) { d49 1 a49 1 @@@@ -491,7 +491,7 @@@@ int main(int argc, char **argv) { @ 1.4 log @llvm: updated to 5.0.0 5.0.0: Non-comprehensive list of changes in this release * LLVM’s WeakVH has been renamed to WeakTrackingVH and a new WeakVH has been introduced. The new WeakVH nulls itself out on deletion, but does not track values across RAUW. * A new library named BinaryFormat has been created which holds a collection of code which previously lived in Support. This includes the file_magic structure and identify_magic functions, as well as all the structure and type definitions for DWARF, ELF, COFF, WASM, and MachO file formats. * The tool llvm-pdbdump has been renamed llvm-pdbutil to better reflect its nature as a general purpose PDB manipulation / diagnostics tool that does more than just dumping contents. * The BBVectorize pass has been removed. It was fully replaced and no longer used back in 2014 but we didn’t get around to removing it. Now it is gone. The SLP vectorizer is the suggested non-loop vectorization pass. * A new tool opt-viewer.py has been added to visualize optimization remarks in HTML. The tool processes the YAML files produced by clang with the -fsave-optimization-record option. * A new CMake macro LLVM_REVERSE_ITERATION has been added. If enabled, all supported unordered LLVM containers would be iterated in reverse order. This is useful for uncovering non-determinism caused by iteration of unordered containers. Currently, it supports reverse iteration of SmallPtrSet and DenseMap. * A new tool llvm-dlltool has been added to create short import libraries from GNU style definition files. The tool utilizes the PE COFF SPEC Import Library Format and PE COFF Auxiliary Weak Externals Format to achieve compatibility with LLD and MSVC LINK. @ text @d7 1 a7 1 --- tools/llvm-config/llvm-config.cpp.orig 2017-06-01 20:51:55.000000000 +0000 d9 1 a9 1 @@@@ -332,11 +332,11 @@@@ int main(int argc, char **argv) { d15 1 a15 3 SmallString<256> path(StringRef(LLVM_TOOLS_INSTALL_DIR)); sys::fs::make_absolute(ActivePrefix, path); ActiveBinDir = path.str(); d21 1 a21 1 @@@@ -372,14 +372,14 @@@@ int main(int argc, char **argv) { d38 1 a38 1 @@@@ -392,7 +392,7 @@@@ int main(int argc, char **argv) { d47 1 a47 1 @@@@ -493,7 +493,7 @@@@ int main(int argc, char **argv) { @ 1.3 log @LLVM 4.0.0: The minimum compiler version required for building LLVM has been raised to 4.8 for GCC and 2015 for Visual Studio. The C API functions LLVMAddFunctionAttr, LLVMGetFunctionAttr, LLVMRemoveFunctionAttr, LLVMAddAttribute, LLVMRemoveAttribute, LLVMGetAttribute, LLVMAddInstrAttribute and LLVMRemoveInstrAttribute have been removed. The C API enum LLVMAttribute has been deleted. The definition and uses of LLVM_ATRIBUTE_UNUSED_RESULT in the LLVM source were replaced with LLVM_NODISCARD, which matches the C++17 [[nodiscard]] semantics rather than gcc’s __attribute__((warn_unused_result)). The Timer related APIs now expect a Name and Description. When upgrading code the previously used names should become descriptions and a short name in the style of a programming language identifier should be added. LLVM now handles invariant.group across different basic blocks, which makes it possible to devirtualize virtual calls inside loops. The aggressive dead code elimination phase (“adce”) now removes branches which do not effect program behavior. Loops are retained by default since they may be infinite but these can also be removed with LLVM option -adce-remove-loops when the loop body otherwise has no live operations. The llvm-cov tool can now export coverage data as json. Its html output mode has also improved. @ text @d1 1 a1 1 $NetBSD: patch-tools_llvm-config_llvm-config.cpp,v 1.2 2016/11/14 20:15:33 ryoon Exp $ d7 1 a7 1 --- tools/llvm-config/llvm-config.cpp.orig 2017-01-12 19:47:38.000000000 +0000 d9 1 a9 1 @@@@ -332,9 +332,9 @@@@ int main(int argc, char **argv) { d15 3 a17 1 ActiveBinDir = ActivePrefix + "/bin"; d23 1 a23 1 @@@@ -370,14 +370,14 @@@@ int main(int argc, char **argv) { d40 1 a40 1 @@@@ -390,7 +390,7 @@@@ int main(int argc, char **argv) { d49 1 a49 1 @@@@ -491,7 +491,7 @@@@ int main(int argc, char **argv) { @ 1.2 log @Update llvm packages to 3.9.0 * Drop CppBackend. It is removed. Changelog: * GCC ABI Tag * LLVM IR: new intrinsics etc. * Change LLVM IPO model * Support ThinLTO * Improve the ARM targets, ARMv8.2-A support etc. * Improve the MIPS targets * Improve the PowerPC target, default optim O3 to O2 * Improve the X86 target, SKylake AVX-512 etc. * Improve the AMDGPU, better support for Mesa 12 @ text @d1 1 a1 1 $NetBSD: patch-tools_llvm-config_llvm-config.cpp,v 1.1 2016/03/17 02:53:59 tnn Exp $ d3 1 a3 1 avoid conflict with lang/clang. d7 1 a7 1 --- tools/llvm-config/llvm-config.cpp.orig 2016-03-14 21:39:58.000000000 +0000 d9 1 a9 1 @@@@ -327,9 +327,9 @@@@ int main(int argc, char **argv) { d18 1 d21 1 a21 2 @@@@ -363,14 +363,14 @@@@ int main(int argc, char **argv) { d38 1 a38 1 @@@@ -383,7 +383,7 @@@@ int main(int argc, char **argv) { d47 1 a47 1 @@@@ -474,7 +474,7 @@@@ int main(int argc, char **argv) { @ 1.1 log @fix wrong llvm-config --libs output. Should return -lLLVM-3.8. Bump. @ text @d1 1 a1 1 $NetBSD$ d7 1 a7 1 --- tools/llvm-config/llvm-config.cpp.orig 2016-01-12 07:23:58.000000000 +0000 d9 2 a10 2 @@@@ -309,9 +309,9 @@@@ int main(int argc, char **argv) { "-I" + ActiveObjRoot + "/include"); d21 2 a22 2 @@@@ -334,14 +334,14 @@@@ int main(int argc, char **argv) { StaticPrefix = SharedPrefix = "lib"; d25 1 a25 1 - SharedVersionedExt = PACKAGE_VERSION ".dylib"; d33 1 a33 1 - SharedVersionedExt = PACKAGE_VERSION ".so"; d38 1 a38 1 @@@@ -362,7 +362,7 @@@@ int main(int argc, char **argv) { d42 2 a43 2 - (SharedPrefix + "LLVM-" + SharedVersionedExt).str(); + (SharedPrefix + "LLVM" + SharedVersionedExt).str(); d45 3 a47 4 if (BuiltDyLib) { DyLibExists = sys::fs::exists(SharedDir + "/" + DyLibName); @@@@ -440,7 +440,7 @@@@ int main(int argc, char **argv) { } else if (Arg == "--cxxflags") { d50 3 a52 2 - OS << "-L" << ActiveLibDir << ' ' << LLVM_LDFLAGS << '\n'; + OS << "-L" << ActiveLibDir << " @@COMPILER_RPATH_FLAG@@" << ActiveLibDir << ' ' << LLVM_LDFLAGS << '\n'; @