Skip to content

Commit 9f982ee

Browse files
committed
Merge from 'master' to 'sycl-web' (#21)
CONFLICT (content): Merge conflict in clang/lib/Sema/SemaSYCL.cpp CONFLICT (content): Merge conflict in clang/include/clang/Sema/Sema.h
2 parents d7aa7e9 + 772bd8a commit 9f982ee

File tree

89 files changed

+2631
-914
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

89 files changed

+2631
-914
lines changed

clang/include/clang/Basic/Attr.td

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4018,3 +4018,11 @@ def ReleaseHandle : InheritableParamAttr {
40184018
let Subjects = SubjectList<[ParmVar]>;
40194019
let Documentation = [ReleaseHandleDocs];
40204020
}
4021+
4022+
def Builtin : InheritableAttr {
4023+
let Spellings = [];
4024+
let Args = [UnsignedArgument<"ID">];
4025+
let Subjects = SubjectList<[Function]>;
4026+
let SemaHandler = 0;
4027+
let Documentation = [Undocumented];
4028+
}

clang/include/clang/Basic/Builtins.def

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1020,6 +1020,7 @@ LIBBUILTIN(strncasecmp, "icC*cC*z", "f", "strings.h", ALL_GNU_LANGUAGES)
10201020
LIBBUILTIN(_exit, "vi", "fr", "unistd.h", ALL_GNU_LANGUAGES)
10211021
LIBBUILTIN(vfork, "p", "fj", "unistd.h", ALL_LANGUAGES)
10221022
// POSIX pthread.h
1023+
// FIXME: Should specify argument types.
10231024
LIBBUILTIN(pthread_create, "", "fC<2,3>", "pthread.h", ALL_GNU_LANGUAGES)
10241025

10251026
// POSIX setjmp.h

clang/include/clang/Basic/Diagnostic.td

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ class TextSubstitution<string Text> {
4545
// diagnostics
4646
string Component = "";
4747
string CategoryName = "";
48-
bit Deferrable = 0;
4948
}
5049

5150
// Diagnostic Categories. These can be applied to groups or individual
@@ -84,7 +83,6 @@ class Diagnostic<string text, DiagClass DC, Severity defaultmapping> {
8483
bit AccessControl = 0;
8584
bit WarningNoWerror = 0;
8685
bit ShowInSystemHeader = 0;
87-
bit Deferrable = 0;
8886
Severity DefaultSeverity = defaultmapping;
8987
DiagGroup Group;
9088
string CategoryName = "";
@@ -108,14 +106,6 @@ class SuppressInSystemHeader {
108106
bit ShowInSystemHeader = 0;
109107
}
110108

111-
class Deferrable {
112-
bit Deferrable = 1;
113-
}
114-
115-
class NonDeferrable {
116-
bit Deferrable = 0;
117-
}
118-
119109
// FIXME: ExtWarn and Extension should also be SFINAEFailure by default.
120110
class Error<string str> : Diagnostic<str, CLASS_ERROR, SEV_Error>, SFINAEFailure {
121111
bit ShowInSystemHeader = 1;

clang/include/clang/Basic/DiagnosticAST.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ namespace clang {
1515
namespace diag {
1616
enum {
1717
#define DIAG(ENUM, FLAGS, DEFAULT_MAPPING, DESC, GROUP, SFINAE, NOWERROR, \
18-
SHOWINSYSHEADER, DEFERRABLE, CATEGORY) \
18+
SHOWINSYSHEADER, CATEGORY) \
1919
ENUM,
2020
#define ASTSTART
2121
#include "clang/Basic/DiagnosticASTKinds.inc"

clang/include/clang/Basic/DiagnosticAnalysis.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ namespace clang {
1515
namespace diag {
1616
enum {
1717
#define DIAG(ENUM, FLAGS, DEFAULT_MAPPING, DESC, GROUP, SFINAE, NOWERROR, \
18-
SHOWINSYSHEADER, DEFERRABLE, CATEGORY) \
18+
SHOWINSYSHEADER, CATEGORY) \
1919
ENUM,
2020
#define ANALYSISSTART
2121
#include "clang/Basic/DiagnosticAnalysisKinds.inc"

clang/include/clang/Basic/DiagnosticComment.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ namespace clang {
1515
namespace diag {
1616
enum {
1717
#define DIAG(ENUM, FLAGS, DEFAULT_MAPPING, DESC, GROUP, SFINAE, NOWERROR, \
18-
SHOWINSYSHEADER, DEFERRABLE, CATEGORY) \
18+
SHOWINSYSHEADER, CATEGORY) \
1919
ENUM,
2020
#define COMMENTSTART
2121
#include "clang/Basic/DiagnosticCommentKinds.inc"

clang/include/clang/Basic/DiagnosticCrossTU.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ namespace clang {
1515
namespace diag {
1616
enum {
1717
#define DIAG(ENUM, FLAGS, DEFAULT_MAPPING, DESC, GROUP, SFINAE, NOWERROR, \
18-
SHOWINSYSHEADER, DEFERRABLE, CATEGORY) \
18+
SHOWINSYSHEADER, CATEGORY) \
1919
ENUM,
2020
#define CROSSTUSTART
2121
#include "clang/Basic/DiagnosticCrossTUKinds.inc"

clang/include/clang/Basic/DiagnosticDriver.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ namespace clang {
1515
namespace diag {
1616
enum {
1717
#define DIAG(ENUM, FLAGS, DEFAULT_MAPPING, DESC, GROUP, SFINAE, NOWERROR, \
18-
SHOWINSYSHEADER, DEFERRABLE, CATEGORY) \
18+
SHOWINSYSHEADER, CATEGORY) \
1919
ENUM,
2020
#define DRIVERSTART
2121
#include "clang/Basic/DiagnosticDriverKinds.inc"

clang/include/clang/Basic/DiagnosticFrontend.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ namespace clang {
1515
namespace diag {
1616
enum {
1717
#define DIAG(ENUM, FLAGS, DEFAULT_MAPPING, DESC, GROUP, SFINAE, NOWERROR, \
18-
SHOWINSYSHEADER, DEFERRABLE, CATEGORY) \
18+
SHOWINSYSHEADER, CATEGORY) \
1919
ENUM,
2020
#define FRONTENDSTART
2121
#include "clang/Basic/DiagnosticFrontendKinds.inc"

clang/include/clang/Basic/DiagnosticIDs.h

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,8 @@ namespace clang {
6464

6565
// Get typedefs for common diagnostics.
6666
enum {
67-
#define DIAG(ENUM, FLAGS, DEFAULT_MAPPING, DESC, GROUP, SFINAE, CATEGORY, \
68-
NOWERROR, SHOWINSYSHEADER, DEFFERABLE) \
69-
ENUM,
67+
#define DIAG(ENUM,FLAGS,DEFAULT_MAPPING,DESC,GROUP,\
68+
SFINAE,CATEGORY,NOWERROR,SHOWINSYSHEADER) ENUM,
7069
#define COMMONSTART
7170
#include "clang/Basic/DiagnosticCommonKinds.inc"
7271
NUM_BUILTIN_COMMON_DIAGNOSTICS
@@ -281,13 +280,6 @@ class DiagnosticIDs : public RefCountedBase<DiagnosticIDs> {
281280
/// are not SFINAE errors.
282281
static SFINAEResponse getDiagnosticSFINAEResponse(unsigned DiagID);
283282

284-
/// Whether the diagnostic message can be deferred.
285-
///
286-
/// For single source offloading languages, a diagnostic message occurred
287-
/// in a device host function may be deferred until the function is sure
288-
/// to be emitted.
289-
static bool isDeferrable(unsigned DiagID);
290-
291283
/// Get the string of all diagnostic flags.
292284
///
293285
/// \returns A list of all diagnostics flags as they would be written in a

0 commit comments

Comments
 (0)