[arch-commits] Commit in faust/trunk (PKGBUILD faust-2.15.11-llvm9.diff)
David Runge
dvzrv at archlinux.org
Sat Oct 5 21:01:08 UTC 2019
Date: Saturday, October 5, 2019 @ 21:01:08
Author: dvzrv
Revision: 513006
upgpkg: faust 2.15.11-2
Rebuilding against llvm9 (by adding a fix applicable to version 2.15.11 - the next release will be buildable against llvm9 by default).
Added:
faust/trunk/faust-2.15.11-llvm9.diff
Modified:
faust/trunk/PKGBUILD
--------------------------+
PKGBUILD | 9 +-
faust-2.15.11-llvm9.diff | 165 +++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 171 insertions(+), 3 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2019-10-05 21:00:50 UTC (rev 513005)
+++ PKGBUILD 2019-10-05 21:01:08 UTC (rev 513006)
@@ -5,7 +5,7 @@
pkgname=faust
pkgver=2.15.11
-pkgrel=1
+pkgrel=2
pkgdesc="A functional programming language for realtime audio signal processing."
arch=('x86_64')
url="https://faust.grame.fr/"
@@ -32,11 +32,14 @@
'supercollider: for faust2supercollider'
'texlive-core: for faust2pdf')
options=('staticlibs')
-source=("https://github.com/grame-cncm/${pkgname}/releases/download/${pkgver}/${pkgname}-${pkgver}.tar.gz")
-sha512sums=('24590a2f726e5aff577a8be57293940a2cb80bcacff7e33986c66c0aa1e4d27bbba6b1335b2855efc35e83b3a8206a12f4f3bb83aa813a817a648e174a3c15fc')
+source=("https://github.com/grame-cncm/${pkgname}/releases/download/${pkgver}/${pkgname}-${pkgver}.tar.gz"
+ "${pkgname}-2.15.11-llvm9.diff")
+sha512sums=('24590a2f726e5aff577a8be57293940a2cb80bcacff7e33986c66c0aa1e4d27bbba6b1335b2855efc35e83b3a8206a12f4f3bb83aa813a817a648e174a3c15fc'
+ '3e3edee491bf2c2ab9c6eb7a04f792448ef00bf364bea04babdf9c8b7bcf002b4ef142e413b0d8ba5f40cce413176a9ff021a1bab371500468cec5ee11cd1c12')
prepare() {
cd "${pkgname}-${pkgver}"
+ patch -Np1 -i "../${pkgname}-2.15.11-llvm9.diff"
# fix scripts requiring python2:
# https://github.com/grame-cncm/faust/issues/301
sed -e '1s/python/&2/' \
Added: faust-2.15.11-llvm9.diff
===================================================================
--- faust-2.15.11-llvm9.diff (rev 0)
+++ faust-2.15.11-llvm9.diff 2019-10-05 21:01:08 UTC (rev 513006)
@@ -0,0 +1,165 @@
+diff -ruN a/compiler/generator/llvm/llvm_code_container.cpp b/compiler/generator/llvm/llvm_code_container.cpp
+--- a/compiler/generator/llvm/llvm_code_container.cpp 2019-03-14 10:42:49.000000000 +0100
++++ b/compiler/generator/llvm/llvm_code_container.cpp 2019-10-05 22:44:42.735096142 +0200
+@@ -76,7 +76,7 @@
+
+ // Set "-fast-math"
+ FastMathFlags FMF;
+-#if defined(LLVM_60) || defined(LLVM_70) || defined(LLVM_80)
++#if defined(LLVM_60) || defined(LLVM_70) || defined(LLVM_80) || defined(LLVM_90)
+ FMF.setFast(); // has replaced the below function
+ #else
+ FMF.setUnsafeAlgebra();
+@@ -106,7 +106,7 @@
+
+ // Set "-fast-math"
+ FastMathFlags FMF;
+-#if defined(LLVM_60) || defined(LLVM_70) || defined(LLVM_80)
++#if defined(LLVM_60) || defined(LLVM_70) || defined(LLVM_80) || defined(LLVM_90)
+ FMF.setFast(); // has replaced the below function
+ #else
+ FMF.setUnsafeAlgebra();
+@@ -228,7 +228,7 @@
+ Function::Create(llvm_compute_type, GlobalValue::ExternalLinkage, "compute" + fKlassName, fModule);
+ llvm_compute->setCallingConv(CallingConv::C);
+
+-#if !defined(LLVM_50) && !defined(LLVM_60) && !defined(LLVM_70) && !defined(LLVM_80)
++#if !defined(LLVM_50) && !defined(LLVM_60) && !defined(LLVM_70) && !defined(LLVM_80) && !defined(LLVM_90)
+ llvm_compute->setDoesNotAlias(3U);
+ llvm_compute->setDoesNotAlias(4U);
+ #endif
+diff -ruN a/compiler/generator/llvm/llvm_dsp_aux.cpp b/compiler/generator/llvm/llvm_dsp_aux.cpp
+--- a/compiler/generator/llvm/llvm_dsp_aux.cpp 2019-03-14 10:42:49.000000000 +0100
++++ b/compiler/generator/llvm/llvm_dsp_aux.cpp 2019-10-05 22:47:39.383479149 +0200
+@@ -43,7 +43,7 @@
+ #include <llvm/Support/FileSystem.h>
+ #include <llvm/Support/TargetSelect.h>
+
+-#if defined(LLVM_40) || defined(LLVM_50) || defined(LLVM_60) || defined(LLVM_70) || defined(LLVM_80)
++#if defined(LLVM_40) || defined(LLVM_50) || defined(LLVM_60) || defined(LLVM_70) || defined(LLVM_80) || defined(LLVM_90)
+ #include <llvm/Bitcode/BitcodeReader.h>
+ #include <llvm/Bitcode/BitcodeWriter.h>
+ #else
+diff -ruN a/compiler/generator/llvm/llvm_dynamic_dsp_aux.cpp b/compiler/generator/llvm/llvm_dynamic_dsp_aux.cpp
+--- a/compiler/generator/llvm/llvm_dynamic_dsp_aux.cpp 2019-03-14 10:42:49.000000000 +0100
++++ b/compiler/generator/llvm/llvm_dynamic_dsp_aux.cpp 2019-10-05 22:47:06.543779403 +0200
+@@ -76,7 +76,7 @@
+ #include <llvm/Target/TargetLibraryInfo.h>
+ #endif
+
+-#if defined(LLVM_40) || defined(LLVM_50) || defined(LLVM_60) || defined(LLVM_70) || defined(LLVM_80)
++#if defined(LLVM_40) || defined(LLVM_50) || defined(LLVM_60) || defined(LLVM_70) || defined(LLVM_80) || defined(LLVM_90)
+ #include <llvm/Bitcode/BitcodeReader.h>
+ #include <llvm/Bitcode/BitcodeWriter.h>
+ #include <llvm/Transforms/IPO/AlwaysInliner.h>
+@@ -113,7 +113,7 @@
+ return def;
+ }
+
+-#if defined(LLVM_40) || defined(LLVM_50) || defined(LLVM_60) || defined(LLVM_70) || defined(LLVM_80)
++#if defined(LLVM_40) || defined(LLVM_50) || defined(LLVM_60) || defined(LLVM_70) || defined(LLVM_80) || defined(LLVM_90)
+ static Module* ParseBitcodeFile(MEMORY_BUFFER Buffer, LLVMContext& Context, string* ErrMsg)
+ {
+ using namespace llvm;
+@@ -157,7 +157,7 @@
+ string res;
+ raw_string_ostream out_str(res);
+ if (binary) {
+-#if defined(LLVM_70) || defined(LLVM_80)
++#if defined(LLVM_70) || defined(LLVM_80) || defined(LLVM_90)
+ WriteBitcodeToFile(*fModule, out_str);
+ #else
+ WriteBitcodeToFile(fModule, out_str);
+@@ -173,7 +173,7 @@
+ {
+ string res;
+ raw_string_ostream out(res);
+-#if defined(LLVM_70) || defined(LLVM_80)
++#if defined(LLVM_70) || defined(LLVM_80) || defined(LLVM_90)
+ WriteBitcodeToFile(*fModule, out);
+ #else
+ WriteBitcodeToFile(fModule, out);
+@@ -190,7 +190,7 @@
+ std::cerr << "ERROR : writeDSPFactoryToBitcodeFile could not open file : " << err.message();
+ return false;
+ }
+-#if defined(LLVM_70) || defined(LLVM_80)
++#if defined(LLVM_70) || defined(LLVM_80) || defined(LLVM_90)
+ WriteBitcodeToFile(*fModule, out);
+ #else
+ WriteBitcodeToFile(fModule, out);
+@@ -251,7 +251,7 @@
+ }
+ Builder.Inliner = createFunctionInliningPass(Threshold);
+ } else {
+-#if defined(LLVM_40) || defined(LLVM_50) || defined(LLVM_60) || defined(LLVM_70) || defined(LLVM_80)
++#if defined(LLVM_40) || defined(LLVM_50) || defined(LLVM_60) || defined(LLVM_70) || defined(LLVM_80) || defined(LLVM_90)
+ Builder.Inliner = createAlwaysInlinerLegacyPass();
+ #else
+ Builder.Inliner = createAlwaysInlinerPass();
+@@ -317,7 +317,7 @@
+
+ builder.setOptLevel(CodeGenOpt::Aggressive);
+ builder.setEngineKind(EngineKind::JIT);
+-#if !defined(LLVM_60) && !defined(LLVM_70) && !defined(LLVM_80)
++#if !defined(LLVM_60) && !defined(LLVM_70) && !defined(LLVM_80) && !defined(LLVM_90)
+ builder.setCodeModel(CodeModel::JITDefault);
+ #endif
+
+@@ -347,7 +347,7 @@
+
+ // -fastmath is activated at IR level, and has to be setup at JIT level also
+
+-#if !defined(LLVM_50) && !defined(LLVM_60) && !defined(LLVM_70) && !defined(LLVM_80)
++#if !defined(LLVM_50) && !defined(LLVM_60) && !defined(LLVM_70) && !defined(LLVM_80) && !defined(LLVM_90)
+ targetOptions.LessPreciseFPMADOption = true;
+ #endif
+ targetOptions.AllowFPOpFusion = FPOpFusion::Fast;
+@@ -356,7 +356,7 @@
+ targetOptions.NoNaNsFPMath = true;
+ targetOptions.GuaranteedTailCallOpt = true;
+
+-#if defined(LLVM_40) || defined(LLVM_50) || defined(LLVM_60) || defined(LLVM_70) || defined(LLVM_80)
++#if defined(LLVM_40) || defined(LLVM_50) || defined(LLVM_60) || defined(LLVM_70) || defined(LLVM_80) || defined(LLVM_90)
+ targetOptions.NoTrappingFPMath = true;
+ targetOptions.FPDenormalMode = FPDenormal::IEEE;
+ #endif
+@@ -409,7 +409,7 @@
+ }
+
+ if ((debug_var != "") && (debug_var.find("FAUST_LLVM1") != string::npos)) {
+-#if defined(LLVM_60) || defined(LLVM_70) || defined(LLVM_80)
++#if defined(LLVM_60) || defined(LLVM_70) || defined(LLVM_80) || defined(LLVM_90)
+ // TargetRegistry::printRegisteredTargetsForVersion(cout);
+ #else
+ TargetRegistry::printRegisteredTargetsForVersion();
+@@ -426,7 +426,7 @@
+ pm.add(createVerifierPass());
+
+ if ((debug_var != "") && (debug_var.find("FAUST_LLVM4") != string::npos)) {
+-#if defined(LLVM_38) || defined(LLVM_39) || defined(LLVM_40) || defined(LLVM_50) || defined(LLVM_60) || defined(LLVM_70) || defined(LLVM_80)
++#if defined(LLVM_38) || defined(LLVM_39) || defined(LLVM_40) || defined(LLVM_50) || defined(LLVM_60) || defined(LLVM_70) || defined(LLVM_80) || defined(LLVM_90)
+ // TODO
+ #else
+ tm->addPassesToEmitFile(pm, fouts(), TargetMachine::CGFT_AssemblyFile, true);
+@@ -608,7 +608,7 @@
+ legacy::PassManager pass;
+ auto FileType = TargetMachine::CGFT_ObjectFile;
+
+-#if defined(LLVM_70) || defined(LLVM_80)
++#if defined(LLVM_70) || defined(LLVM_80) || defined(LLVM_90)
+ if (TheTargetMachine->addPassesToEmitFile(pass, dest, nullptr, FileType)) {
+ #else
+ if (TheTargetMachine->addPassesToEmitFile(pass, dest, FileType, true)) {
+diff -ruN a/compiler/generator/llvm/llvm_instructions.hh b/compiler/generator/llvm/llvm_instructions.hh
+--- a/compiler/generator/llvm/llvm_instructions.hh 2019-03-14 10:42:49.000000000 +0100
++++ b/compiler/generator/llvm/llvm_instructions.hh 2019-10-05 22:48:00.693284389 +0200
+@@ -58,7 +58,7 @@
+ #include <llvm/Support/raw_ostream.h>
+ #include <llvm/Transforms/Scalar.h>
+
+-#if defined(LLVM_40) || defined(LLVM_50) || defined(LLVM_60) || defined(LLVM_70) || defined(LLVM_80)
++#if defined(LLVM_40) || defined(LLVM_50) || defined(LLVM_60) || defined(LLVM_70) || defined(LLVM_80) || defined(LLVM_90)
+ #include <llvm/Bitcode/BitcodeReader.h>
+ #include <llvm/Bitcode/BitcodeWriter.h>
+ #else
More information about the arch-commits
mailing list