|
1 | | -From ebfc732638fa68d1bc79fbad02011fe71ffc075a Mon Sep 17 00:00:00 2001 |
| 1 | +From 6dd990a8258c0f46b0202492624770b57c0cca12 Mon Sep 17 00:00:00 2001 |
2 | 2 | From: Anton Zabaznov < [email protected]> |
3 | 3 | Date: Thu, 24 Sep 2020 00:12:24 +0300 |
4 | 4 | Subject: [PATCH] OpenCL 3.0 support |
@@ -27,7 +27,7 @@ Subject: [PATCH] OpenCL 3.0 support |
27 | 27 | lib/Sema/Sema.cpp | 47 +- |
28 | 28 | lib/Sema/SemaChecking.cpp | 38 +- |
29 | 29 | lib/Sema/SemaDecl.cpp | 9 +- |
30 | | - lib/Sema/SemaDeclAttr.cpp | 7 + |
| 30 | + lib/Sema/SemaDeclAttr.cpp | 9 +- |
31 | 31 | lib/Sema/SemaDeclCXX.cpp | 10 + |
32 | 32 | lib/Sema/SemaType.cpp | 24 +- |
33 | 33 | test/CodeGenOpenCL/addr-space-struct-arg.cl | 7 +- |
@@ -65,7 +65,7 @@ Subject: [PATCH] OpenCL 3.0 support |
65 | 65 | .../SemaOpenCL/forget-unsupported-builtins.cl | 23 + |
66 | 66 | test/SemaOpenCL/invalid-pipe-builtin-cl2.0.cl | 1 + |
67 | 67 | test/SemaOpenCL/storageclass-cl20.cl | 1 + |
68 | | - 61 files changed, 3613 insertions(+), 722 deletions(-) |
| 68 | + 61 files changed, 3614 insertions(+), 723 deletions(-) |
69 | 69 | create mode 100644 test/CodeGenOpenCL/generic-address-space-feature.cl |
70 | 70 | create mode 100644 test/Sema/feature-extensions-simult-support.cl |
71 | 71 | create mode 100644 test/Sema/features-ignore-pragma.cl |
@@ -6967,9 +6967,18 @@ index 7ddf2e88b7..8105b799e0 100644 |
6967 | 6967 | << Scope << "global or constant"; |
6968 | 6968 | else |
6969 | 6969 | diff --git a/lib/Sema/SemaDeclAttr.cpp b/lib/Sema/SemaDeclAttr.cpp |
6970 | | -index c4c3598ee7..646aea2bd5 100644 |
| 6970 | +index c4c3598ee7..8e56a1f4f0 100644 |
6971 | 6971 | --- a/lib/Sema/SemaDeclAttr.cpp |
6972 | 6972 | +++ b/lib/Sema/SemaDeclAttr.cpp |
| 6973 | +@@ -6112,7 +6112,7 @@ static void handleInternalLinkageAttr(Sema &S, Decl *D, const ParsedAttr &AL) { |
| 6974 | + } |
| 6975 | + |
| 6976 | + static void handleOpenCLNoSVMAttr(Sema &S, Decl *D, const ParsedAttr &AL) { |
| 6977 | +- if (S.LangOpts.OpenCLVersion != 200) |
| 6978 | ++ if (S.LangOpts.OpenCLVersion < 200) |
| 6979 | + S.Diag(AL.getLoc(), diag::err_attribute_requires_opencl_version) |
| 6980 | + << AL << "2.0" << 0; |
| 6981 | + else |
6973 | 6982 | @@ -6194,6 +6194,13 @@ static void handleOpenCLAccessAttr(Sema &S, Decl *D, const ParsedAttr &AL) { |
6974 | 6983 | << AL << PDecl->getType() << DeclTy->isImageType(); |
6975 | 6984 | D->setInvalidDecl(true); |
@@ -7934,5 +7943,5 @@ index 581701d2a6..469c526ebc 100644 |
7934 | 7943 | int G2 = 0; |
7935 | 7944 | global int G3 = 0; |
7936 | 7945 | -- |
7937 | | -2.17.1 |
| 7946 | +2.29.2 |
7938 | 7947 |
|
0 commit comments