diff options
| author | Naveen Saini <naveen.kumar.saini@intel.com> | 2023-03-01 13:06:53 +0800 |
|---|---|---|
| committer | Anuj Mittal <anuj.mittal@intel.com> | 2023-03-01 15:33:50 +0800 |
| commit | 5f2a109a15d2831bfd293ecd834dc42c4a499ad8 (patch) | |
| tree | 153f46bed8e247450273f8cb2e5d09b897b55462 /dynamic-layers/clang-layer | |
| parent | 3289c1c659539bfdfc453f51959c1b5e12a37b93 (diff) | |
| download | meta-intel-5f2a109a15d2831bfd293ecd834dc42c4a499ad8.tar.gz | |
ispc: upgrade 1.18.0 -> 1.19.0
Dropped patches which are already available.
Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Diffstat (limited to 'dynamic-layers/clang-layer')
| -rw-r--r-- | dynamic-layers/clang-layer/recipes-core/ispc/ispc/0001-CMakeLists.txt-link-with-libclang-cpp-library-instea.patch | 16 | ||||
| -rw-r--r-- | dynamic-layers/clang-layer/recipes-core/ispc/ispc/6a1b2ffae0cc12467838bc671e3b089924de90a6.patch | 33 | ||||
| -rw-r--r-- | dynamic-layers/clang-layer/recipes-core/ispc/ispc/ec35a6f8e60ba77e59a6f2bfec27011e0ab34dda.patch | 63 | ||||
| -rw-r--r-- | dynamic-layers/clang-layer/recipes-core/ispc/ispc_1.19.0.bb (renamed from dynamic-layers/clang-layer/recipes-core/ispc/ispc_1.18.0.bb) | 4 |
4 files changed, 9 insertions, 107 deletions
diff --git a/dynamic-layers/clang-layer/recipes-core/ispc/ispc/0001-CMakeLists.txt-link-with-libclang-cpp-library-instea.patch b/dynamic-layers/clang-layer/recipes-core/ispc/ispc/0001-CMakeLists.txt-link-with-libclang-cpp-library-instea.patch index 4e25420c..cacbbbc1 100644 --- a/dynamic-layers/clang-layer/recipes-core/ispc/ispc/0001-CMakeLists.txt-link-with-libclang-cpp-library-instea.patch +++ b/dynamic-layers/clang-layer/recipes-core/ispc/ispc/0001-CMakeLists.txt-link-with-libclang-cpp-library-instea.patch | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | From b9bc0df996d1e65fd70d5eb2d40866693f23bb67 Mon Sep 17 00:00:00 2001 | 1 | From 0445d97c8ad66c9cbb2c6f88c52aadc0b01a1f15 Mon Sep 17 00:00:00 2001 |
| 2 | From: Naveen Saini <naveen.kumar.saini@intel.com> | 2 | From: Naveen Saini <naveen.kumar.saini@intel.com> |
| 3 | Date: Thu, 24 Jun 2021 17:53:27 +0800 | 3 | Date: Tue, 11 Oct 2022 16:43:22 +0800 |
| 4 | Subject: [PATCH] CMakeLists.txt: link with libclang-cpp library instead | 4 | Subject: [PATCH] CMakeLists.txt: link with libclang-cpp library instead |
| 5 | 5 | ||
| 6 | Upstream-Status: Inappropriate | 6 | Upstream-Status: Inappropriate |
| @@ -11,18 +11,18 @@ Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com> | |||
| 11 | 1 file changed, 1 insertion(+), 1 deletion(-) | 11 | 1 file changed, 1 insertion(+), 1 deletion(-) |
| 12 | 12 | ||
| 13 | diff --git a/CMakeLists.txt b/CMakeLists.txt | 13 | diff --git a/CMakeLists.txt b/CMakeLists.txt |
| 14 | index ef88317e..7507d6a5 100644 | 14 | index f6199704..f979f1c1 100644 |
| 15 | --- a/CMakeLists.txt | 15 | --- a/CMakeLists.txt |
| 16 | +++ b/CMakeLists.txt | 16 | +++ b/CMakeLists.txt |
| 17 | @@ -281,7 +281,7 @@ if (WASM_ENABLED) | 17 | @@ -288,7 +288,7 @@ if (WASM_ENABLED) |
| 18 | list(APPEND ISPC_TARGETS wasm-i32x4) | 18 | list(APPEND ISPC_TARGETS wasm-i32x4) |
| 19 | endif() | 19 | endif() |
| 20 | 20 | ||
| 21 | -set(CLANG_LIBRARY_LIST clangFrontend clangDriver clangSerialization clangParse clangSema clangAnalysis clangAST clangBasic clangEdit clangLex) | 21 | -set(CLANG_LIBRARY_LIST clangFrontend clangDriver clangSerialization clangParse clangSema clangAnalysis clangAST clangBasic clangEdit clangLex) |
| 22 | +set(CLANG_LIBRARY_LIST clang-cpp) | 22 | +set(CLANG_LIBRARY_LIST clang-cpp) |
| 23 | set(LLVM_COMPONENTS engine ipo bitreader bitwriter instrumentation linker option frontendopenmp) | 23 | if (${LLVM_VERSION_NUMBER} VERSION_GREATER_EQUAL "15.0.0") |
| 24 | 24 | list(APPEND CLANG_LIBRARY_LIST clangSupport) | |
| 25 | if (X86_ENABLED) | 25 | endif() |
| 26 | -- | 26 | -- |
| 27 | 2.17.1 | 27 | 2.37.3 |
| 28 | 28 | ||
diff --git a/dynamic-layers/clang-layer/recipes-core/ispc/ispc/6a1b2ffae0cc12467838bc671e3b089924de90a6.patch b/dynamic-layers/clang-layer/recipes-core/ispc/ispc/6a1b2ffae0cc12467838bc671e3b089924de90a6.patch deleted file mode 100644 index 6aac0c79..00000000 --- a/dynamic-layers/clang-layer/recipes-core/ispc/ispc/6a1b2ffae0cc12467838bc671e3b089924de90a6.patch +++ /dev/null | |||
| @@ -1,33 +0,0 @@ | |||
| 1 | From 6a1b2ffae0cc12467838bc671e3b089924de90a6 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Dmitry Babokin <dmitry.y.babokin@intel.com> | ||
| 3 | Date: Thu, 5 May 2022 16:34:34 -0700 | ||
| 4 | Subject: [PATCH] Bump ISPC version v1.19.0dev | ||
| 5 | |||
| 6 | Upstream-Status: Backport | ||
| 7 | |||
| 8 | Include only the LLVM specific bits and not the ispc version bump. | ||
| 9 | |||
| 10 | Signed-off-by: Anuj Mittal <anuj.mittal@intel.com> | ||
| 11 | --- | ||
| 12 | diff --git a/src/ispc_version.h b/src/ispc_version.h | ||
| 13 | index 0e28dfcfa..2b9d9b0cc 100644 | ||
| 14 | --- a/src/ispc_version.h | ||
| 15 | +++ b/src/ispc_version.h | ||
| 16 | @@ -51,7 +51,7 @@ | ||
| 17 | #define ISPC_LLVM_15_0 150000 | ||
| 18 | |||
| 19 | #define OLDEST_SUPPORTED_LLVM ISPC_LLVM_10_0 | ||
| 20 | -#define LATEST_SUPPORTED_LLVM ISPC_LLVM_14_0 | ||
| 21 | +#define LATEST_SUPPORTED_LLVM ISPC_LLVM_15_0 | ||
| 22 | |||
| 23 | #ifdef __ispc__xstr | ||
| 24 | #undef __ispc__xstr | ||
| 25 | @@ -63,7 +63,7 @@ | ||
| 26 | __ispc__xstr(LLVM_VERSION_MAJOR) "." __ispc__xstr(LLVM_VERSION_MINOR) "." __ispc__xstr(LLVM_VERSION_PATCH) | ||
| 27 | |||
| 28 | #if ISPC_LLVM_VERSION < OLDEST_SUPPORTED_LLVM || ISPC_LLVM_VERSION > LATEST_SUPPORTED_LLVM | ||
| 29 | -#error "Only LLVM 11.0 - 14.0 are supported" | ||
| 30 | +#error "Only LLVM 11.0 - 14.0 and 15.0 development branch are supported" | ||
| 31 | #endif | ||
| 32 | |||
| 33 | #define ISPC_VERSION_STRING \ | ||
diff --git a/dynamic-layers/clang-layer/recipes-core/ispc/ispc/ec35a6f8e60ba77e59a6f2bfec27011e0ab34dda.patch b/dynamic-layers/clang-layer/recipes-core/ispc/ispc/ec35a6f8e60ba77e59a6f2bfec27011e0ab34dda.patch deleted file mode 100644 index a5ab8c19..00000000 --- a/dynamic-layers/clang-layer/recipes-core/ispc/ispc/ec35a6f8e60ba77e59a6f2bfec27011e0ab34dda.patch +++ /dev/null | |||
| @@ -1,63 +0,0 @@ | |||
| 1 | From ec35a6f8e60ba77e59a6f2bfec27011e0ab34dda Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Arina Neshlyaeva <arina.neshlyaeva@intel.com> | ||
| 3 | Date: Tue, 23 Aug 2022 15:21:50 -0700 | ||
| 4 | Subject: [PATCH] Adjust opt passes for LLVM 15 | ||
| 5 | |||
| 6 | Upstream-Status: Backport | ||
| 7 | Signed-off-by: Anuj Mittal <anuj.mittal@intel.com> | ||
| 8 | --- | ||
| 9 | src/opt.cpp | 17 +++++++++++++++++ | ||
| 10 | 1 file changed, 17 insertions(+) | ||
| 11 | |||
| 12 | diff --git a/src/opt.cpp b/src/opt.cpp | ||
| 13 | index 910821e26..86219f384 100644 | ||
| 14 | --- a/src/opt.cpp | ||
| 15 | +++ b/src/opt.cpp | ||
| 16 | @@ -84,6 +84,9 @@ | ||
| 17 | #include <llvm/Transforms/Scalar.h> | ||
| 18 | #include <llvm/Transforms/Scalar/GVN.h> | ||
| 19 | #include <llvm/Transforms/Scalar/InstSimplifyPass.h> | ||
| 20 | +#if ISPC_LLVM_VERSION >= ISPC_LLVM_15_0 | ||
| 21 | +#include <llvm/Transforms/Scalar/SimpleLoopUnswitch.h> | ||
| 22 | +#endif | ||
| 23 | #include <llvm/Transforms/Utils.h> | ||
| 24 | #include <llvm/Transforms/Utils/BasicBlockUtils.h> | ||
| 25 | |||
| 26 | @@ -647,7 +650,11 @@ void ispc::Optimize(llvm::Module *module, int optLevel) { | ||
| 27 | optPM.add(llvm::createCFGSimplificationPass()); | ||
| 28 | #endif | ||
| 29 | |||
| 30 | +#if ISPC_LLVM_VERSION < ISPC_LLVM_15_0 | ||
| 31 | + // Starting LLVM 15.0 this pass is supported with new pass manager only (217e857) | ||
| 32 | + // TODO: switch ISPC to new pass manager: https://github.com/ispc/ispc/issues/2359 | ||
| 33 | optPM.add(llvm::createArgumentPromotionPass()); | ||
| 34 | +#endif | ||
| 35 | |||
| 36 | optPM.add(llvm::createAggressiveDCEPass()); | ||
| 37 | optPM.add(llvm::createInstructionCombiningPass(), 241); | ||
| 38 | @@ -722,7 +729,11 @@ void ispc::Optimize(llvm::Module *module, int optLevel) { | ||
| 39 | optPM.add(CreateInstructionSimplifyPass()); | ||
| 40 | |||
| 41 | optPM.add(llvm::createFunctionInliningPass()); | ||
| 42 | +#if ISPC_LLVM_VERSION < ISPC_LLVM_15_0 | ||
| 43 | + // Starting LLVM 15.0 this pass is supported with new pass manager only (217e857) | ||
| 44 | + // TODO: switch ISPC to new pass manager: https://github.com/ispc/ispc/issues/2359 | ||
| 45 | optPM.add(llvm::createArgumentPromotionPass()); | ||
| 46 | +#endif | ||
| 47 | |||
| 48 | optPM.add(llvm::createSROAPass()); | ||
| 49 | |||
| 50 | @@ -736,7 +747,13 @@ void ispc::Optimize(llvm::Module *module, int optLevel) { | ||
| 51 | optPM.add(llvm::createReassociatePass()); | ||
| 52 | optPM.add(llvm::createLoopRotatePass()); | ||
| 53 | optPM.add(llvm::createLICMPass()); | ||
| 54 | + // Loop unswitch pass was removed in LLVM 15.0 (fb4113). | ||
| 55 | + // Recommended replacement: createSimpleLoopUnswitchLegacyPass | ||
| 56 | +#if ISPC_LLVM_VERSION < ISPC_LLVM_15_0 | ||
| 57 | optPM.add(llvm::createLoopUnswitchPass(false)); | ||
| 58 | +#else | ||
| 59 | + optPM.add(llvm::createSimpleLoopUnswitchLegacyPass(false)); | ||
| 60 | +#endif | ||
| 61 | optPM.add(llvm::createInstructionCombiningPass()); | ||
| 62 | optPM.add(CreateInstructionSimplifyPass()); | ||
| 63 | optPM.add(llvm::createIndVarSimplifyPass()); | ||
diff --git a/dynamic-layers/clang-layer/recipes-core/ispc/ispc_1.18.0.bb b/dynamic-layers/clang-layer/recipes-core/ispc/ispc_1.19.0.bb index b7083f82..db4f31b4 100644 --- a/dynamic-layers/clang-layer/recipes-core/ispc/ispc_1.18.0.bb +++ b/dynamic-layers/clang-layer/recipes-core/ispc/ispc_1.19.0.bb | |||
| @@ -15,13 +15,11 @@ SRC_URI = "git://github.com/ispc/ispc.git;protocol=https;branch=main \ | |||
| 15 | file://0001-CMakeLists.txt-link-with-libclang-cpp-library-instea.patch \ | 15 | file://0001-CMakeLists.txt-link-with-libclang-cpp-library-instea.patch \ |
| 16 | file://0002-cmake-don-t-build-for-32-bit-targets.patch \ | 16 | file://0002-cmake-don-t-build-for-32-bit-targets.patch \ |
| 17 | file://0001-Fix-QA-Issues.patch \ | 17 | file://0001-Fix-QA-Issues.patch \ |
| 18 | file://6a1b2ffae0cc12467838bc671e3b089924de90a6.patch \ | ||
| 19 | file://ec35a6f8e60ba77e59a6f2bfec27011e0ab34dda.patch \ | ||
| 20 | file://0001-Add-print-function-to-print-test-run-status-in-ptest.patch \ | 18 | file://0001-Add-print-function-to-print-test-run-status-in-ptest.patch \ |
| 21 | file://run-ptest \ | 19 | file://run-ptest \ |
| 22 | " | 20 | " |
| 23 | 21 | ||
| 24 | SRCREV = "f7ec3aa173c816377c215d83196b5c7c3a88db1c" | 22 | SRCREV = "ee43967286215a0511c2bc090e604848b4a32bed" |
| 25 | 23 | ||
| 26 | COMPATIBLE_HOST = '(x86_64).*-linux' | 24 | COMPATIBLE_HOST = '(x86_64).*-linux' |
| 27 | 25 | ||
