diff options
Diffstat (limited to 'dynamic-layers/clang-layer/recipes-devtools/clang/files/llvm10-0005-Remove-__IMAGE_SUPPORT__-macro-for-SPIR-since-SPIR-d.patch')
-rw-r--r-- | dynamic-layers/clang-layer/recipes-devtools/clang/files/llvm10-0005-Remove-__IMAGE_SUPPORT__-macro-for-SPIR-since-SPIR-d.patch | 47 |
1 files changed, 0 insertions, 47 deletions
diff --git a/dynamic-layers/clang-layer/recipes-devtools/clang/files/llvm10-0005-Remove-__IMAGE_SUPPORT__-macro-for-SPIR-since-SPIR-d.patch b/dynamic-layers/clang-layer/recipes-devtools/clang/files/llvm10-0005-Remove-__IMAGE_SUPPORT__-macro-for-SPIR-since-SPIR-d.patch deleted file mode 100644 index f8f177e5..00000000 --- a/dynamic-layers/clang-layer/recipes-devtools/clang/files/llvm10-0005-Remove-__IMAGE_SUPPORT__-macro-for-SPIR-since-SPIR-d.patch +++ /dev/null | |||
@@ -1,47 +0,0 @@ | |||
1 | From 3dd4766499d25e5978a5d90001f18e657e875da0 Mon Sep 17 00:00:00 2001 | ||
2 | From: haonanya <haonan.yang@intel.com> | ||
3 | Date: Thu, 12 Aug 2021 15:48:34 +0800 | ||
4 | Subject: [PATCH 5/7] Remove __IMAGE_SUPPORT__ macro for SPIR since SPIR | ||
5 | doesn't require image support | ||
6 | |||
7 | Upstream-Status: Backport [Taken from opencl-clang patches; https://github.com/intel/opencl-clang/blob/ocl-open-100/patches/clang/0003-Remove-__IMAGE_SUPPORT__-macro-for-SPIR.patch] | ||
8 | |||
9 | Signed-off-by: haonanya <haonan.yang@intel.com> | ||
10 | Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com> | ||
11 | --- | ||
12 | clang/lib/Frontend/InitPreprocessor.cpp | 3 --- | ||
13 | clang/test/Preprocessor/predefined-macros.c | 4 ---- | ||
14 | 2 files changed, 7 deletions(-) | ||
15 | |||
16 | diff --git a/clang/lib/Frontend/InitPreprocessor.cpp b/clang/lib/Frontend/InitPreprocessor.cpp | ||
17 | index aefd208e6cd3..b4a84636673a 100644 | ||
18 | --- a/clang/lib/Frontend/InitPreprocessor.cpp | ||
19 | +++ b/clang/lib/Frontend/InitPreprocessor.cpp | ||
20 | @@ -1108,9 +1108,6 @@ static void InitializePredefinedMacros(const TargetInfo &TI, | ||
21 | if (TI.getSupportedOpenCLOpts().isSupported(#Ext)) \ | ||
22 | Builder.defineMacro(#Ext); | ||
23 | #include "clang/Basic/OpenCLExtensions.def" | ||
24 | - | ||
25 | - if (TI.getTriple().isSPIR()) | ||
26 | - Builder.defineMacro("__IMAGE_SUPPORT__"); | ||
27 | } | ||
28 | |||
29 | if (TI.hasInt128Type() && LangOpts.CPlusPlus && LangOpts.GNUMode) { | ||
30 | diff --git a/clang/test/Preprocessor/predefined-macros.c b/clang/test/Preprocessor/predefined-macros.c | ||
31 | index b088a37ba665..39a222d02faf 100644 | ||
32 | --- a/clang/test/Preprocessor/predefined-macros.c | ||
33 | +++ b/clang/test/Preprocessor/predefined-macros.c | ||
34 | @@ -184,10 +184,6 @@ | ||
35 | // MSCOPE:#define __OPENCL_MEMORY_SCOPE_WORK_GROUP 1 | ||
36 | // MSCOPE:#define __OPENCL_MEMORY_SCOPE_WORK_ITEM 0 | ||
37 | |||
38 | -// RUN: %clang_cc1 %s -E -dM -o - -x cl -triple spir-unknown-unknown \ | ||
39 | -// RUN: | FileCheck -match-full-lines %s --check-prefix=CHECK-SPIR | ||
40 | -// CHECK-SPIR: #define __IMAGE_SUPPORT__ 1 | ||
41 | - | ||
42 | // RUN: %clang_cc1 %s -E -dM -o - -x hip -triple amdgcn-amd-amdhsa \ | ||
43 | // RUN: | FileCheck -match-full-lines %s --check-prefix=CHECK-HIP | ||
44 | // CHECK-HIP-NOT: #define __CUDA_ARCH__ | ||
45 | -- | ||
46 | 2.17.1 | ||
47 | |||