[arch-commits] Commit in ispc/repos (3 files)

Bruno Pagani archange at archlinux.org
Thu Sep 20 08:18:48 UTC 2018


    Date: Thursday, September 20, 2018 @ 08:18:48
  Author: archange
Revision: 383486

archrelease: copy trunk to community-staging-x86_64

Added:
  ispc/repos/community-staging-x86_64/
  ispc/repos/community-staging-x86_64/0001-Remove-uses-of-LLVM-dump-functions.patch
    (from rev 383485, ispc/trunk/0001-Remove-uses-of-LLVM-dump-functions.patch)
  ispc/repos/community-staging-x86_64/PKGBUILD
    (from rev 383485, ispc/trunk/PKGBUILD)

-----------------------------------------------+
 0001-Remove-uses-of-LLVM-dump-functions.patch |   84 ++++++++++++++++++++++++
 PKGBUILD                                      |   51 ++++++++++++++
 2 files changed, 135 insertions(+)

Copied: ispc/repos/community-staging-x86_64/0001-Remove-uses-of-LLVM-dump-functions.patch (from rev 383485, ispc/trunk/0001-Remove-uses-of-LLVM-dump-functions.patch)
===================================================================
--- community-staging-x86_64/0001-Remove-uses-of-LLVM-dump-functions.patch	                        (rev 0)
+++ community-staging-x86_64/0001-Remove-uses-of-LLVM-dump-functions.patch	2018-09-20 08:18:48 UTC (rev 383486)
@@ -0,0 +1,84 @@
+From 758e152a4832311818ea5b2bff0ac2e438b7a88a Mon Sep 17 00:00:00 2001
+From: Tom Stellard <tstellar at redhat.com>
+Date: Tue, 24 Oct 2017 09:45:53 -0700
+Subject: [PATCH] Remove uses of LLVM dump() functions
+
+These aren't exposed in release builds.
+---
+ llvmutil.cpp |  3 ++-
+ opt.cpp      | 10 +++++-----
+ 2 files changed, 7 insertions(+), 6 deletions(-)
+
+diff --git a/llvmutil.cpp b/llvmutil.cpp
+index 02bd729..b98b5f1 100644
+--- a/llvmutil.cpp
++++ b/llvmutil.cpp
+@@ -45,6 +45,7 @@
+   #include <llvm/IR/Instructions.h>
+   #include <llvm/IR/BasicBlock.h>
+ #endif
++#include <llvm/Support/raw_os_ostream.h>
+ #include <set>
+ #include <map>
+ 
+@@ -1516,7 +1517,7 @@ lDumpValue(llvm::Value *v, std::set<llvm::Value *> &done) {
+         return;
+ 
+     fprintf(stderr, "  ");
+-    v->dump();
++    v->print(llvm::errs());
+     done.insert(v);
+ 
+     if (inst == NULL)
+diff --git a/opt.cpp b/opt.cpp
+index ef9e4c5..48106f4 100644
+--- a/opt.cpp
++++ b/opt.cpp
+@@ -169,7 +169,7 @@ static llvm::Pass *CreatePromoteLocalToPrivatePass();
+                   strlen(getenv("FUNC"))))) {                           \
+         fprintf(stderr, "Start of " NAME "\n");                \
+         fprintf(stderr, "---------------\n");                  \
+-        bb.dump();                                             \
++        bb.print(llvm::errs());                                \
+         fprintf(stderr, "---------------\n\n");                \
+     } else /* eat semicolon */
+ 
+@@ -180,7 +180,7 @@ static llvm::Pass *CreatePromoteLocalToPrivatePass();
+                   strlen(getenv("FUNC"))))) {                           \
+         fprintf(stderr, "End of " NAME " %s\n", modifiedAny ? "** CHANGES **" : ""); \
+         fprintf(stderr, "---------------\n");                  \
+-        bb.dump();                                             \
++        bb.print(llvm::errs());                                \
+         fprintf(stderr, "---------------\n\n");                \
+     } else /* eat semicolon */
+ 
+@@ -533,7 +533,7 @@ void
+ Optimize(llvm::Module *module, int optLevel) {
+     if (g->debugPrint) {
+         printf("*** Code going into optimization ***\n");
+-        module->dump();
++        module->print(llvm::errs(), nullptr);
+     }
+     DebugPassManager optPM;
+     optPM.add(llvm::createVerifierPass(),0);
+@@ -928,7 +928,7 @@ Optimize(llvm::Module *module, int optLevel) {
+ 
+     if (g->debugPrint) {
+         printf("\n*****\nFINAL OUTPUT\n*****\n");
+-        module->dump();
++        module->print(llvm::errs(), nullptr);
+     }
+ 
+ }
+@@ -4859,7 +4859,7 @@ bool
+ DebugPass::runOnModule(llvm::Module &module) {
+     fprintf(stderr, "%s", str_output);
+     fflush(stderr);
+-    module.dump();
++    module.print(llvm::errs(), nullptr);
+     return true;
+ }
+ 
+-- 
+1.8.3.1
+

Copied: ispc/repos/community-staging-x86_64/PKGBUILD (from rev 383485, ispc/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2018-09-20 08:18:48 UTC (rev 383486)
@@ -0,0 +1,51 @@
+# Maintainer: Lukas Jirkovsky <l.jirkovsky at gmail.com>
+# Maintainer: Bruno Pagani <archange at archlinux.org>
+
+pkgname=ispc
+pkgver=1.9.2
+pkgrel=4
+pkgdesc="A compiler for high-performance SIMD programming on the CPU"
+arch=('x86_64')
+url="https://ispc.github.io/"
+license=('BSD')
+depends=('ncurses' 'zlib' 'llvm-libs' 'clang')
+makedepends=('llvm' 'python' 'lib32-glibc')
+source=(${pkgname}-${pkgver}.tar.gz::"https://github.com/ispc/ispc/archive/v${pkgver}.tar.gz"
+        '0001-Remove-uses-of-LLVM-dump-functions.patch' # Borrowed from Fedora
+        LLVM6-1.patch::"https://patch-diff.githubusercontent.com/raw/ispc/ispc/pull/1307.patch"
+        LLVM6-2.patch::"https://patch-diff.githubusercontent.com/raw/ispc/ispc/pull/1315.patch"
+        LLVM7-1.patch::"https://patch-diff.githubusercontent.com/raw/ispc/ispc/pull/1312.patch"
+        LLVM7-2.patch::"https://patch-diff.githubusercontent.com/raw/ispc/ispc/pull/1316.patch"
+        LLVM7-3.patch::"https://patch-diff.githubusercontent.com/raw/ispc/ispc/pull/1325.patch"
+        LLVM7-4.patch::"https://patch-diff.githubusercontent.com/raw/ispc/ispc/pull/1330.patch")
+sha256sums=('76a14e22f05a52fb0b30142686a6cb144b0415b39be6c9fcd3f17ac23447f0b2'
+            'aed52cba60197bd20b2aef12e93e2e640d3ef2596bf154fe4a6e0980cfe78cca'
+            'e0846b0b7793bec1522a87696330bfdbd5c6b976d2f77389f5fe93c9de92386d'
+            '205468666cf985dd0634103c00a727e942ab330bddd2520f0d89e98e662cc495'
+            'ac02472507690def70643b96d01bf70a6dfab7e465351c6f4588696679f5fb61'
+            '3cb8a31ea5228972e2ecc3bd9c51d934fbd31f96babb93c2ef5d16e7f4e8aabd'
+            '0a8b878aa6e07c2cc561e9f60e9ecea274d1f77bf46a6413f151cdc0489a7ce2'
+            '39d2b606b4bfdd0c59ad384facc0d51894e6856439fe6fe4c2a09edaf4145f8b')
+
+prepare() {
+  cd ${pkgname}-${pkgver}
+  patch -p1 -i ../0001-Remove-uses-of-LLVM-dump-functions.patch
+  patch -p1 -i ../LLVM6-1.patch
+  patch -p1 -i ../LLVM6-2.patch
+  patch -p1 -i ../LLVM7-1.patch
+  patch -p1 -i ../LLVM7-2.patch
+  patch -p1 -i ../LLVM7-3.patch
+  patch -p1 -i ../LLVM7-4.patch
+}
+
+build() {
+  cd ${pkgname}-${pkgver}
+  make
+}
+
+package() {
+  cd ${pkgname}-${pkgver}
+  install -Dm755 ispc -t "${pkgdir}"/usr/bin/
+  install -Dm644 LICENSE.txt -t "${pkgdir}"/usr/share/licenses/${pkgname}
+}
+



More information about the arch-commits mailing list