diff options
author | Anuj Mittal <anuj.mittal@intel.com> | 2022-04-19 15:43:41 +0800 |
---|---|---|
committer | Anuj Mittal <anuj.mittal@intel.com> | 2022-04-19 20:56:14 +0800 |
commit | b9da851fa5b713e8eb5d6b1b0b03c9e9fbfff5d0 (patch) | |
tree | 045240395c45a1064639fe4bff0f9549bacbd6b2 /dynamic-layers/clang-layer/recipes-devtools/clang/files/llvm12-0002-Avoid-calling-ParseCommandLineOptions-in-BackendUtil.patch | |
parent | 10944d53081884fedb3242f37fa6e9964f33586f (diff) | |
download | meta-intel-b9da851fa5b713e8eb5d6b1b0b03c9e9fbfff5d0.tar.gz |
llvm-project-source: refresh patches
Refresh the patches as recommended by the opencl-clang and include
support for OpenCL 3.0.
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Diffstat (limited to 'dynamic-layers/clang-layer/recipes-devtools/clang/files/llvm12-0002-Avoid-calling-ParseCommandLineOptions-in-BackendUtil.patch')
-rw-r--r-- | dynamic-layers/clang-layer/recipes-devtools/clang/files/llvm12-0002-Avoid-calling-ParseCommandLineOptions-in-BackendUtil.patch | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/dynamic-layers/clang-layer/recipes-devtools/clang/files/llvm12-0002-Avoid-calling-ParseCommandLineOptions-in-BackendUtil.patch b/dynamic-layers/clang-layer/recipes-devtools/clang/files/llvm12-0002-Avoid-calling-ParseCommandLineOptions-in-BackendUtil.patch index 4f7d3e51..497db4f5 100644 --- a/dynamic-layers/clang-layer/recipes-devtools/clang/files/llvm12-0002-Avoid-calling-ParseCommandLineOptions-in-BackendUtil.patch +++ b/dynamic-layers/clang-layer/recipes-devtools/clang/files/llvm12-0002-Avoid-calling-ParseCommandLineOptions-in-BackendUtil.patch | |||
@@ -1,7 +1,7 @@ | |||
1 | From 06cf750d2ef892eaa4f0ff5d0a9e9e5c49697264 Mon Sep 17 00:00:00 2001 | 1 | From 60854c328d8729b2ef10b9bb4dcbcc282f43c5e7 Mon Sep 17 00:00:00 2001 |
2 | From: Raphael Isemann <teemperor@gmail.com> | 2 | From: Raphael Isemann <teemperor@gmail.com> |
3 | Date: Thu, 1 Apr 2021 18:41:44 +0200 | 3 | Date: Thu, 1 Apr 2021 18:41:44 +0200 |
4 | Subject: [PATCH 2/3] Avoid calling ParseCommandLineOptions in BackendUtil if | 4 | Subject: [PATCH] Avoid calling ParseCommandLineOptions in BackendUtil if |
5 | possible | 5 | possible |
6 | 6 | ||
7 | Calling `ParseCommandLineOptions` should only be called from `main` as the | 7 | Calling `ParseCommandLineOptions` should only be called from `main` as the |
@@ -20,18 +20,18 @@ Reviewed By: JDevlieghere | |||
20 | 20 | ||
21 | Differential Revision: https://reviews.llvm.org/D99740 | 21 | Differential Revision: https://reviews.llvm.org/D99740 |
22 | 22 | ||
23 | Upstream-Status: Backport [Taken from opencl-clang patches; https://github.com/intel/opencl-clang/blob/ocl-open-120/patches/clang/0002-Avoid-calling-ParseCommandLineOptions-in-BackendUtil.patch] | 23 | Upstream-Status: Backport [https://github.com/llvm/llvm-project/commit/60854c328d8729b2ef10b9bb4dcbcc282f43c5e7] |
24 | |||
25 | Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com> | 24 | Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com> |
25 | |||
26 | --- | 26 | --- |
27 | clang/lib/CodeGen/BackendUtil.cpp | 8 ++++++++ | 27 | clang/lib/CodeGen/BackendUtil.cpp | 8 ++++++++ |
28 | 1 file changed, 8 insertions(+) | 28 | 1 file changed, 8 insertions(+) |
29 | 29 | ||
30 | diff --git a/clang/lib/CodeGen/BackendUtil.cpp b/clang/lib/CodeGen/BackendUtil.cpp | 30 | diff --git a/clang/lib/CodeGen/BackendUtil.cpp b/clang/lib/CodeGen/BackendUtil.cpp |
31 | index 52bcd971dc8c..f9f891247530 100644 | 31 | index 41eafd13d97c..00d92e7beadd 100644 |
32 | --- a/clang/lib/CodeGen/BackendUtil.cpp | 32 | --- a/clang/lib/CodeGen/BackendUtil.cpp |
33 | +++ b/clang/lib/CodeGen/BackendUtil.cpp | 33 | +++ b/clang/lib/CodeGen/BackendUtil.cpp |
34 | @@ -850,7 +850,15 @@ static void setCommandLineOpts(const CodeGenOptions &CodeGenOpts) { | 34 | @@ -871,7 +871,15 @@ static void setCommandLineOpts(const CodeGenOptions &CodeGenOpts) { |
35 | BackendArgs.push_back("-limit-float-precision"); | 35 | BackendArgs.push_back("-limit-float-precision"); |
36 | BackendArgs.push_back(CodeGenOpts.LimitFloatPrecision.c_str()); | 36 | BackendArgs.push_back(CodeGenOpts.LimitFloatPrecision.c_str()); |
37 | } | 37 | } |
@@ -48,5 +48,5 @@ index 52bcd971dc8c..f9f891247530 100644 | |||
48 | BackendArgs.data()); | 48 | BackendArgs.data()); |
49 | } | 49 | } |
50 | -- | 50 | -- |
51 | 2.17.1 | 51 | 2.29.2 |
52 | 52 | ||