diff options
author | Naveen Saini <naveen.kumar.saini@intel.com> | 2021-04-08 11:02:31 +0800 |
---|---|---|
committer | Anuj Mittal <anuj.mittal@intel.com> | 2021-04-08 10:56:20 +0800 |
commit | bdae07eceb51a038115f45a3aee2dd27323dd7b4 (patch) | |
tree | e4571fc8fee50d3eb59c1a00d7259d9798e059d3 /dynamic-layers/clang-layer/recipes-devtools/clang/files/llvm11-Remove-repo-name-in-LLVM-IR.patch | |
parent | 01cfc99a8f960917433a8a46b41bb4febb5b1993 (diff) | |
download | meta-intel-bdae07eceb51a038115f45a3aee2dd27323dd7b4.tar.gz |
llvm-project-source: backport OpenCL recommended patches
Updating SPIRV-LLVM-Translator srcrev to latest commits for
* llvm_releae_100
* llvm_release_110
Backport opencl-clang recommended llvm/clang patches.
llvm-10:
https://github.com/intel/opencl-clang/tree/ocl-open-100/patches
llvm-11:
https://github.com/intel/opencl-clang/tree/ocl-open-110/patches
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/recipes-devtools/clang/files/llvm11-Remove-repo-name-in-LLVM-IR.patch')
-rw-r--r-- | dynamic-layers/clang-layer/recipes-devtools/clang/files/llvm11-Remove-repo-name-in-LLVM-IR.patch | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/dynamic-layers/clang-layer/recipes-devtools/clang/files/llvm11-Remove-repo-name-in-LLVM-IR.patch b/dynamic-layers/clang-layer/recipes-devtools/clang/files/llvm11-Remove-repo-name-in-LLVM-IR.patch new file mode 100644 index 00000000..09089432 --- /dev/null +++ b/dynamic-layers/clang-layer/recipes-devtools/clang/files/llvm11-Remove-repo-name-in-LLVM-IR.patch | |||
@@ -0,0 +1,50 @@ | |||
1 | From ff0a6da84b94c16c4519c649f1f7bed3cdf89bbb Mon Sep 17 00:00:00 2001 | ||
2 | From: Feng Zou <feng.zou@intel.com> | ||
3 | Date: Tue, 20 Oct 2020 11:29:04 +0800 | ||
4 | Subject: [PATCH] Remove repo name in LLVM IR | ||
5 | |||
6 | Upstream-Status: Backport [Taken from opencl-clang patches, https://github.com/intel/opencl-clang/blob/ocl-open-110/patches/llvm/0002-Remove-repo-name-in-LLVM-IR.patch] | ||
7 | Signed-off-by: Feng Zou <feng.zou@intel.com> | ||
8 | Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com> | ||
9 | |||
10 | --- | ||
11 | llvm/cmake/modules/VersionFromVCS.cmake | 23 ++++++++++++----------- | ||
12 | 1 file changed, 12 insertions(+), 11 deletions(-) | ||
13 | |||
14 | diff --git a/llvm/cmake/modules/VersionFromVCS.cmake b/llvm/cmake/modules/VersionFromVCS.cmake | ||
15 | index 18edbeabe3e..2d965263478 100644 | ||
16 | --- a/llvm/cmake/modules/VersionFromVCS.cmake | ||
17 | +++ b/llvm/cmake/modules/VersionFromVCS.cmake | ||
18 | @@ -33,17 +33,18 @@ function(get_source_info path revision repository) | ||
19 | else() | ||
20 | set(remote "origin") | ||
21 | endif() | ||
22 | - execute_process(COMMAND ${GIT_EXECUTABLE} remote get-url ${remote} | ||
23 | - WORKING_DIRECTORY ${path} | ||
24 | - RESULT_VARIABLE git_result | ||
25 | - OUTPUT_VARIABLE git_output | ||
26 | - ERROR_QUIET) | ||
27 | - if(git_result EQUAL 0) | ||
28 | - string(STRIP "${git_output}" git_output) | ||
29 | - set(${repository} ${git_output} PARENT_SCOPE) | ||
30 | - else() | ||
31 | - set(${repository} ${path} PARENT_SCOPE) | ||
32 | - endif() | ||
33 | + # Do not show repo name in IR | ||
34 | + # execute_process(COMMAND ${GIT_EXECUTABLE} remote get-url ${remote} | ||
35 | + # WORKING_DIRECTORY ${path} | ||
36 | + # RESULT_VARIABLE git_result | ||
37 | + # OUTPUT_VARIABLE git_output | ||
38 | + # ERROR_QUIET) | ||
39 | + # if(git_result EQUAL 0) | ||
40 | + # string(STRIP "${git_output}" git_output) | ||
41 | + # set(${repository} ${git_output} PARENT_SCOPE) | ||
42 | + # else() | ||
43 | + # set(${repository} ${path} PARENT_SCOPE) | ||
44 | + # endif() | ||
45 | endif() | ||
46 | else() | ||
47 | message(WARNING "Git not found. Version cannot be determined.") | ||
48 | -- | ||
49 | 2.18.1 | ||
50 | |||