[arch-commits] Commit in intel-graphics-compiler/repos/community-staging-x86_64 (3 files)

Bruno Pagani archange at archlinux.org
Mon Nov 2 18:58:25 UTC 2020


    Date: Monday, November 2, 2020 @ 18:58:25
  Author: archange
Revision: 740078

archrelease: copy trunk to community-staging-x86_64

Added:
  intel-graphics-compiler/repos/community-staging-x86_64/PKGBUILD
    (from rev 740077, intel-graphics-compiler/trunk/PKGBUILD)
  intel-graphics-compiler/repos/community-staging-x86_64/intel-graphics-compiler-llvm11.patch
    (from rev 740077, intel-graphics-compiler/trunk/intel-graphics-compiler-llvm11.patch)
Deleted:
  intel-graphics-compiler/repos/community-staging-x86_64/PKGBUILD

--------------------------------------+
 PKGBUILD                             |   92 ++++++++++++++++-----------------
 intel-graphics-compiler-llvm11.patch |   21 +++++++
 2 files changed, 68 insertions(+), 45 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2020-11-02 18:57:56 UTC (rev 740077)
+++ PKGBUILD	2020-11-02 18:58:25 UTC (rev 740078)
@@ -1,45 +0,0 @@
-# Maintainer: Daniel Bermond <dbermond at archlinux.org>
-# Maintainer: Bruno Pagani <archange at archlinux.org>
-
-pkgname=intel-graphics-compiler
-epoch=1
-pkgver=1.0.5353
-pkgrel=1
-pkgdesc="Intel Graphics Compiler for OpenCL"
-arch=(x86_64)
-url="https://github.com/intel/intel-graphics-compiler"
-license=(MIT)
-depends=(llvm-libs intel-opencl-clang ncurses zlib)
-makedepends=(git cmake clang llvm python)
-options=(!emptydirs)
-source=(${url}/archive/igc-${pkgver}.tar.gz
-        git+https://github.com/intel/vc-intrinsics.git#commit=eabcd2022cf868a658b257b8ea6ad62acbbe7dc5
-        git+https://github.com/KhronosGroup/SPIRV-LLVM-Translator.git#commit=d6dc999eee381158a26f048a333467c9ce7e77f2)
-sha256sums=('8a7ebe4498b4777c55837ffbea75d2cff367fb31e1eeb44fbbe307fdb7cf26d6'
-            'SKIP'
-            'SKIP')
-
-prepare() {
-    cd ${pkgname}-igc-${pkgver}
-    sed -i 's|-Werror||g' IGC/CMakeLists.txt
-}
-
-build() {
-    cmake -B build -S ${pkgname}-igc-${pkgver} \
-        -DCMAKE_BUILD_TYPE=Release \
-        -DCMAKE_INSTALL_PREFIX=/usr \
-        -DCMAKE_INSTALL_LIBDIR=lib \
-        -DIGC_OPTION__ARCHITECTURE_TARGET='Linux64' \
-        -DIGC_PREFERRED_LLVM_VERSION='11.0.0' \
-        -DVC_INTRINSICS_SRC="${srcdir}/vc-intrinsics" \
-        -DSPIRV_SRC="${srcdir}/SPIRV-LLVM-Translator" \
-        -DINSTALL_GENX_IR=ON \
-        -Wno-dev
-    make -C build
-}
-
-package() {
-    make -C build DESTDIR="${pkgdir}" install
-    install -D -m644 ${pkgname}-igc-${pkgver}/LICENSE.md -t "${pkgdir}"/usr/share/licenses/${pkgname}
-    mv "${pkgdir}"/usr/lib/igc/NOTICES.txt "${pkgdir}"/usr/share/licenses/${pkgname}
-}

Copied: intel-graphics-compiler/repos/community-staging-x86_64/PKGBUILD (from rev 740077, intel-graphics-compiler/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2020-11-02 18:58:25 UTC (rev 740078)
@@ -0,0 +1,47 @@
+# Maintainer: Daniel Bermond <dbermond at archlinux.org>
+# Maintainer: Bruno Pagani <archange at archlinux.org>
+
+pkgname=intel-graphics-compiler
+epoch=1
+pkgver=1.0.5353
+pkgrel=2
+pkgdesc="Intel Graphics Compiler for OpenCL"
+arch=(x86_64)
+url="https://github.com/intel/intel-graphics-compiler"
+license=(MIT)
+depends=(llvm-libs intel-opencl-clang ncurses zlib)
+makedepends=(git cmake clang llvm python)
+options=(!emptydirs)
+source=(${url}/archive/igc-${pkgver}.tar.gz
+        ${pkgname}-llvm11.patch
+        git+https://github.com/intel/vc-intrinsics.git#commit=eabcd2022cf868a658b257b8ea6ad62acbbe7dc5
+        git+https://github.com/KhronosGroup/SPIRV-LLVM-Translator.git#commit=d6dc999eee381158a26f048a333467c9ce7e77f2)
+sha256sums=('8a7ebe4498b4777c55837ffbea75d2cff367fb31e1eeb44fbbe307fdb7cf26d6'
+            '5bdfb2a71b388e1b24387e07aa7e1906e9dbdcb52e5e4d8a1a417f7360b6a0bb'
+            'SKIP'
+            'SKIP')
+
+prepare() {
+    cd ${pkgname}-igc-${pkgver}
+    patch -Np1 -i ../${pkgname}-llvm11.patch
+}
+
+build() {
+    cmake -B build -S ${pkgname}-igc-${pkgver} \
+        -DCMAKE_BUILD_TYPE=Release \
+        -DCMAKE_INSTALL_PREFIX=/usr \
+        -DCMAKE_INSTALL_LIBDIR=lib \
+        -DIGC_OPTION__ARCHITECTURE_TARGET='Linux64' \
+        -DIGC_PREFERRED_LLVM_VERSION='11.0.0' \
+        -DVC_INTRINSICS_SRC="${srcdir}/vc-intrinsics" \
+        -DSPIRV_SRC="${srcdir}/SPIRV-LLVM-Translator" \
+        -DINSTALL_GENX_IR=ON \
+        -Wno-dev
+    make -C build
+}
+
+package() {
+    make -C build DESTDIR="${pkgdir}" install
+    install -D -m644 ${pkgname}-igc-${pkgver}/LICENSE.md -t "${pkgdir}"/usr/share/licenses/${pkgname}
+    mv "${pkgdir}"/usr/lib/igc/NOTICES.txt "${pkgdir}"/usr/share/licenses/${pkgname}
+}

Copied: intel-graphics-compiler/repos/community-staging-x86_64/intel-graphics-compiler-llvm11.patch (from rev 740077, intel-graphics-compiler/trunk/intel-graphics-compiler-llvm11.patch)
===================================================================
--- intel-graphics-compiler-llvm11.patch	                        (rev 0)
+++ intel-graphics-compiler-llvm11.patch	2020-11-02 18:58:25 UTC (rev 740078)
@@ -0,0 +1,21 @@
+diff --git a/IGC/Compiler/CustomSafeOptPass.cpp b/IGC/Compiler/CustomSafeOptPass.cpp
+--- a/IGC/Compiler/CustomSafeOptPass.cpp
++++ b/IGC/Compiler/CustomSafeOptPass.cpp
+@@ -2320,7 +2320,7 @@ void GenSpecificPattern::visitBinaryOperator(BinaryOperator& I)
+                 }
+ 
+                 llvm::IRBuilder<> builder(&I);
+-                VectorType* vec4 = VectorType::get(builder.getInt8Ty(), 4);
++                VectorType* vec4 = IGCLLVM::FixedVectorType::get(builder.getInt8Ty(), 4);
+                 Value* BC = builder.CreateBitCast(AndSrc, vec4);
+                 Value* EE = builder.CreateExtractElement(BC, builder.getInt32(newIndex));
+                 Value* Zext = builder.CreateZExt(EE, builder.getInt32Ty());
+@@ -2372,7 +2372,7 @@ void GenSpecificPattern::visitBinaryOperator(BinaryOperator& I)
+             }
+ 
+             llvm::IRBuilder<> builder(&I);
+-            VectorType* vec2 = VectorType::get(builder.getInt16Ty(), 2);
++            VectorType* vec2 = IGCLLVM::FixedVectorType::get(builder.getInt16Ty(), 2);
+             Value* BC = builder.CreateBitCast(AShrSrc, vec2);
+             Value* EE = builder.CreateExtractElement(BC, builder.getInt32(newIndex));
+             Value* Sext = builder.CreateSExt(EE, builder.getInt32Ty());



More information about the arch-commits mailing list