diff options
author | Anuj Mittal <anuj.mittal@intel.com> | 2022-12-07 15:12:33 +0800 |
---|---|---|
committer | Anuj Mittal <anuj.mittal@intel.com> | 2022-12-07 15:12:33 +0800 |
commit | de59d48ad2ce88ebe331a8355e742fce7c3b428c (patch) | |
tree | 75c8369a3bc9eaca6a8f1ac58695b973525596ef /dynamic-layers/clang-layer/recipes-opencl/igc/files/fix-build-with-llvm12.patch | |
parent | d01bcf8747bb311111b85d6d0bb872308a6e6a02 (diff) | |
download | meta-intel-de59d48ad2ce88ebe331a8355e742fce7c3b428c.tar.gz |
intel-graphics-compiler: fix build issues with LLVM12
Fixes:
/git/IGC/VectorCompiler/lib/GenXCodeGen/GenXSimdCFRegion.cpp:412:31: error: ‘experimental_vector_reduce_or’ is not a member of ‘llvm::Intrinsic’; did you mean ‘experimental_vector_insert’?
[2022-12-06T21:01:52.813Z] | 412 | Intrinsic::experimental_vector_reduce_or;
[2022-12-06T21:01:52.813Z] | | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[2022-12-06T21:01:52.813Z] | | experimental_vector_insert
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Diffstat (limited to 'dynamic-layers/clang-layer/recipes-opencl/igc/files/fix-build-with-llvm12.patch')
-rw-r--r-- | dynamic-layers/clang-layer/recipes-opencl/igc/files/fix-build-with-llvm12.patch | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/dynamic-layers/clang-layer/recipes-opencl/igc/files/fix-build-with-llvm12.patch b/dynamic-layers/clang-layer/recipes-opencl/igc/files/fix-build-with-llvm12.patch new file mode 100644 index 00000000..fb29c940 --- /dev/null +++ b/dynamic-layers/clang-layer/recipes-opencl/igc/files/fix-build-with-llvm12.patch | |||
@@ -0,0 +1,29 @@ | |||
1 | The condition should be checking for <= 11 since the change is available | ||
2 | in LLVM12: | ||
3 | https://github.com/llvm/llvm-project/commit/322d0afd875df66b36e4810a2b95c20a8f22ab9b | ||
4 | |||
5 | Upstream-Status: Submitted | ||
6 | Signed-off-by: Anuj Mittal <anuj.mittal@intel.com> | ||
7 | |||
8 | diff --git a/IGC/VectorCompiler/lib/GenXCodeGen/GenXSimdCFRegion.cpp b/IGC/VectorCompiler/lib/GenXCodeGen/GenXSimdCFRegion.cpp | ||
9 | index 363d622c2..bbb04be30 100644 | ||
10 | --- a/IGC/VectorCompiler/lib/GenXCodeGen/GenXSimdCFRegion.cpp | ||
11 | +++ b/IGC/VectorCompiler/lib/GenXCodeGen/GenXSimdCFRegion.cpp | ||
12 | @@ -395,7 +395,7 @@ public: | ||
13 | return GenXIntrinsic::getGenXIntrinsicID(V) == | ||
14 | GenXIntrinsic::genx_all || | ||
15 | CI->getIntrinsicID() == | ||
16 | -#if LLVM_VERSION_MAJOR <= 12 | ||
17 | +#if LLVM_VERSION_MAJOR <= 11 | ||
18 | Intrinsic::experimental_vector_reduce_and; | ||
19 | #else | ||
20 | Intrinsic::vector_reduce_and; | ||
21 | @@ -408,7 +408,7 @@ public: | ||
22 | if (const CallInst *CI = dyn_cast<CallInst>(V)) | ||
23 | return GenXIntrinsic::getGenXIntrinsicID(V) == | ||
24 | GenXIntrinsic::genx_any || CI->getIntrinsicID() == | ||
25 | -#if LLVM_VERSION_MAJOR <= 12 | ||
26 | +#if LLVM_VERSION_MAJOR <= 11 | ||
27 | Intrinsic::experimental_vector_reduce_or; | ||
28 | #else | ||
29 | Intrinsic::vector_reduce_or; | ||