Skip to content

Commit 2bdd731

Browse files
authored
Merge branch 'sycl' into fix_race_submitting_to_single_queue
2 parents 0bd1bf9 + 4dee192 commit 2bdd731

File tree

4,267 files changed

+188339
-70066
lines changed

Some content is hidden

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

4,267 files changed

+188339
-70066
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
/GRTAGS
3636
/GSYMS
3737
/GTAGS
38+
/ID
3839
.gitusers
3940
autom4te.cache
4041
cscope.files

buildbot/check.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def do_check(args):
3030
args.test_suite,
3131
"-j", str(cpu_count)]
3232

33-
print(cmake_cmd)
33+
print("[Cmake Command]: {}".format(" ".join(cmake_cmd)))
3434

3535
env_tmp=os.environ
3636
env_tmp["LIT_ARGS"]="\"{}\"".format("-v")

buildbot/compile.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def do_compile(args):
3232
"deploy-opencl-aot",
3333
"-j", str(cpu_count)]
3434

35-
print(cmake_cmd)
35+
print("[Cmake Command]: {}".format(" ".join(cmake_cmd)))
3636

3737
subprocess.check_call(cmake_cmd, cwd=abs_obj_dir)
3838

buildbot/configure.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ def do_configure(args):
9797
# Add path to root CMakeLists.txt
9898
cmake_cmd.append(llvm_dir)
9999

100-
print(cmake_cmd)
100+
print("[Cmake Command]: {}".format(" ".join(cmake_cmd)))
101101

102102
try:
103103
subprocess.check_call(cmake_cmd, cwd=abs_obj_dir)

buildbot/dependency.conf

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
[VERSIONS]
2-
# https://github.com/intel/llvm/releases/download/2020-03/oclcpuexp-2020.10.4.0.15_rel.tar.gz
3-
ocl_cpu_rt_ver=2020.10.4.0.15
4-
# https://github.com/intel/llvm/releases/download/2020-03/win-oclcpuexp-2020.10.4.0.15_rel.zip
5-
ocl_cpu_rt_ver_win=2020.10.4.0.15
2+
# https://github.com/intel/llvm/releases/download/2020-WW20/oclcpuexp-2020.10.6.0.4_rel.tar.gz
3+
ocl_cpu_rt_ver=2020.10.6.0.04
4+
# https://github.com/intel/llvm/releases/download/2020-WW20/win-oclcpuexp-2020.10.6.0.4_rel.zip
5+
ocl_cpu_rt_ver_win=2020.10.6.0.04
66
# Same GPU driver supports Level Zero and OpenCL:
7-
# https://github.com/intel/compute-runtime/releases/tag/20.19.16754
8-
ocl_gpu_rt_ver=20.19.16754
7+
# https://github.com/intel/compute-runtime/releases/tag/20.21.16886
8+
ocl_gpu_rt_ver=20.21.16886
99
# Same GPU driver supports Level Zero and OpenCL:
10-
# https://downloadcenter.intel.com/download/29557/Intel-Graphics-Windows-10-DCH-Drivers
11-
ocl_gpu_rt_ver_win=ci-neo-015900
10+
# https://downloadmirror.intel.com/29616/a08/igfx_win10_100.8280.zip
11+
ocl_gpu_rt_ver_win=27.20.100.8280
1212
intel_sycl_ver=build
1313
# https://github.com/oneapi-src/oneTBB/releases/download/v2020.2/tbb-2020.2-lin.tgz
1414
tbb_ver=20200121_111047
@@ -20,9 +20,9 @@ fpga_ver=20200216_000000
2020
fpga_ver_win=20200216_000000
2121

2222
[DRIVER VERSIONS]
23-
cpu_driver_lin=2020.10.4.0.15
24-
cpu_driver_win=2020.10.4.0.15
25-
gpu_driver_lin=20.19.16754
26-
gpu_driver_win=ci-neo-015900
23+
cpu_driver_lin=2020.10.6.0.04
24+
cpu_driver_win=2020.10.6.0.04
25+
gpu_driver_lin=20.21.16886
26+
gpu_driver_win=27.20.100.8280
2727
fpga_driver_lin=2020.9.2.0
2828
fpga_driver_win=2020.9.2.0

buildbot/dependency.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,9 @@ def do_dependency(args):
7373
"-DCMAKE_INSTALL_PREFIX={}".format(install_dir),
7474
"-DOPENCL_ICD_LOADER_HEADERS_DIR={}".format(ocl_header_dir),
7575
".." ]
76+
77+
print("[Cmake Command]: {}".format(" ".join(cmake_cmd)))
78+
7679
subprocess.check_call(cmake_cmd, cwd=icd_build_dir)
7780

7881
env_tmp=os.environ

clang-tools-extra/clang-apply-replacements/CMakeLists.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,10 @@ set(LLVM_LINK_COMPONENTS
44

55
add_clang_library(clangApplyReplacements
66
lib/Tooling/ApplyReplacements.cpp
7+
)
78

8-
LINK_LIBS
9+
clang_target_link_libraries(clangApplyReplacements
10+
PRIVATE
911
clangAST
1012
clangBasic
1113
clangRewrite

clang-tools-extra/clang-change-namespace/CMakeLists.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,10 @@ set(LLVM_LINK_COMPONENTS
55

66
add_clang_library(clangChangeNamespace
77
ChangeNamespace.cpp
8+
)
89

9-
LINK_LIBS
10+
clang_target_link_libraries(clangChangeNamespace
11+
PRIVATE
1012
clangAST
1113
clangASTMatchers
1214
clangBasic

clang-tools-extra/clang-change-namespace/ChangeNamespace.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ bool isTemplateParameter(TypeLoc Type) {
347347

348348
ChangeNamespaceTool::ChangeNamespaceTool(
349349
llvm::StringRef OldNs, llvm::StringRef NewNs, llvm::StringRef FilePattern,
350-
llvm::ArrayRef<std::string> WhiteListedSymbolPatterns,
350+
llvm::ArrayRef<std::string> AllowedSymbolPatterns,
351351
std::map<std::string, tooling::Replacements> *FileToReplacements,
352352
llvm::StringRef FallbackStyle)
353353
: FallbackStyle(FallbackStyle), FileToReplacements(*FileToReplacements),
@@ -365,8 +365,8 @@ ChangeNamespaceTool::ChangeNamespaceTool(
365365
DiffOldNamespace = joinNamespaces(OldNsSplitted);
366366
DiffNewNamespace = joinNamespaces(NewNsSplitted);
367367

368-
for (const auto &Pattern : WhiteListedSymbolPatterns)
369-
WhiteListedSymbolRegexes.emplace_back(Pattern);
368+
for (const auto &Pattern : AllowedSymbolPatterns)
369+
AllowedSymbolRegexes.emplace_back(Pattern);
370370
}
371371

372372
void ChangeNamespaceTool::registerMatchers(ast_matchers::MatchFinder *Finder) {
@@ -800,7 +800,7 @@ void ChangeNamespaceTool::replaceQualifiedSymbolInDeclContext(
800800
Result.SourceManager->getSpellingLoc(End)),
801801
*Result.SourceManager, Result.Context->getLangOpts());
802802
std::string FromDeclName = FromDecl->getQualifiedNameAsString();
803-
for (llvm::Regex &RE : WhiteListedSymbolRegexes)
803+
for (llvm::Regex &RE : AllowedSymbolRegexes)
804804
if (RE.match(FromDeclName))
805805
return;
806806
std::string ReplaceName =

clang-tools-extra/clang-change-namespace/ChangeNamespace.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ class ChangeNamespaceTool : public ast_matchers::MatchFinder::MatchCallback {
4949
// files matching `FilePattern`.
5050
ChangeNamespaceTool(
5151
llvm::StringRef OldNs, llvm::StringRef NewNs, llvm::StringRef FilePattern,
52-
llvm::ArrayRef<std::string> WhiteListedSymbolPatterns,
52+
llvm::ArrayRef<std::string> AllowedSymbolPatterns,
5353
std::map<std::string, tooling::Replacements> *FileToReplacements,
5454
llvm::StringRef FallbackStyle = "LLVM");
5555

@@ -166,7 +166,7 @@ class ChangeNamespaceTool : public ast_matchers::MatchFinder::MatchCallback {
166166
llvm::SmallPtrSet<const clang::DeclRefExpr*, 16> ProcessedFuncRefs;
167167
// Patterns of symbol names whose references are not expected to be updated
168168
// when changing namespaces around them.
169-
std::vector<llvm::Regex> WhiteListedSymbolRegexes;
169+
std::vector<llvm::Regex> AllowedSymbolRegexes;
170170
};
171171

172172
} // namespace change_namespace

clang-tools-extra/clang-change-namespace/tool/ClangChangeNamespace.cpp

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -72,20 +72,20 @@ cl::opt<std::string> Style("style",
7272
cl::desc("The style name used for reformatting."),
7373
cl::init("LLVM"), cl::cat(ChangeNamespaceCategory));
7474

75-
cl::opt<std::string> WhiteListFile(
76-
"whitelist_file",
75+
cl::opt<std::string> AllowedFile(
76+
"allowed_file",
7777
cl::desc("A file containing regexes of symbol names that are not expected "
7878
"to be updated when changing namespaces around them."),
7979
cl::init(""), cl::cat(ChangeNamespaceCategory));
8080

81-
llvm::ErrorOr<std::vector<std::string>> GetWhiteListedSymbolPatterns() {
81+
llvm::ErrorOr<std::vector<std::string>> GetAllowedSymbolPatterns() {
8282
std::vector<std::string> Patterns;
83-
if (WhiteListFile.empty())
83+
if (AllowedFile.empty())
8484
return Patterns;
8585

8686
llvm::SmallVector<StringRef, 8> Lines;
8787
llvm::ErrorOr<std::unique_ptr<llvm::MemoryBuffer>> File =
88-
llvm::MemoryBuffer::getFile(WhiteListFile);
88+
llvm::MemoryBuffer::getFile(AllowedFile);
8989
if (!File)
9090
return File.getError();
9191
llvm::StringRef Content = File.get()->getBuffer();
@@ -103,15 +103,15 @@ int main(int argc, const char **argv) {
103103
ChangeNamespaceCategory);
104104
const auto &Files = OptionsParser.getSourcePathList();
105105
tooling::RefactoringTool Tool(OptionsParser.getCompilations(), Files);
106-
llvm::ErrorOr<std::vector<std::string>> WhiteListPatterns =
107-
GetWhiteListedSymbolPatterns();
108-
if (!WhiteListPatterns) {
109-
llvm::errs() << "Failed to open whitelist file " << WhiteListFile << ". "
110-
<< WhiteListPatterns.getError().message() << "\n";
106+
llvm::ErrorOr<std::vector<std::string>> AllowedPatterns =
107+
GetAllowedSymbolPatterns();
108+
if (!AllowedPatterns) {
109+
llvm::errs() << "Failed to open allow file " << AllowedFile << ". "
110+
<< AllowedPatterns.getError().message() << "\n";
111111
return 1;
112112
}
113113
change_namespace::ChangeNamespaceTool NamespaceTool(
114-
OldNamespace, NewNamespace, FilePattern, *WhiteListPatterns,
114+
OldNamespace, NewNamespace, FilePattern, *AllowedPatterns,
115115
&Tool.getReplacements(), Style);
116116
ast_matchers::MatchFinder Finder;
117117
NamespaceTool.registerMatchers(&Finder);

clang-tools-extra/clang-doc/CMakeLists.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,10 @@ add_clang_library(clangDoc
1515
Representation.cpp
1616
Serialize.cpp
1717
YAMLGenerator.cpp
18+
)
1819

19-
LINK_LIBS
20+
clang_target_link_libraries(clangDoc
21+
PRIVATE
2022
clangAnalysis
2123
clangAST
2224
clangASTMatchers

clang-tools-extra/clang-doc/Generators.cpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,10 @@ namespace doc {
1515

1616
llvm::Expected<std::unique_ptr<Generator>>
1717
findGeneratorByName(llvm::StringRef Format) {
18-
for (auto I = GeneratorRegistry::begin(), E = GeneratorRegistry::end();
19-
I != E; ++I) {
20-
if (I->getName() != Format)
18+
for (const auto &Generator : GeneratorRegistry::entries()) {
19+
if (Generator.getName() != Format)
2120
continue;
22-
return I->instantiate();
21+
return Generator.instantiate();
2322
}
2423
return createStringError(llvm::inconvertibleErrorCode(),
2524
"can't find generator: " + Format);

clang-tools-extra/clang-include-fixer/CMakeLists.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@ add_clang_library(clangIncludeFixer
1111
YamlSymbolIndex.cpp
1212

1313
LINK_LIBS
14+
findAllSymbols
15+
)
16+
17+
clang_target_link_libraries(clangIncludeFixer
18+
PRIVATE
1419
clangAST
1520
clangBasic
1621
clangFormat
@@ -21,7 +26,6 @@ add_clang_library(clangIncludeFixer
2126
clangSerialization
2227
clangTooling
2328
clangToolingCore
24-
findAllSymbols
2529
)
2630

2731
add_subdirectory(plugin)

clang-tools-extra/clang-include-fixer/find-all-symbols/CMakeLists.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,10 @@ add_clang_library(findAllSymbols
1212
PragmaCommentHandler.cpp
1313
STLPostfixHeaderMap.cpp
1414
SymbolInfo.cpp
15+
)
1516

16-
LINK_LIBS
17+
clang_target_link_libraries(findAllSymbols
18+
PRIVATE
1719
clangAST
1820
clangASTMatchers
1921
clangBasic

clang-tools-extra/clang-move/CMakeLists.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,10 @@ set(LLVM_LINK_COMPONENTS
66
add_clang_library(clangMove
77
Move.cpp
88
HelperDeclRefGraph.cpp
9+
)
910

10-
LINK_LIBS
11+
clang_target_link_libraries(clangMove
12+
PRIVATE
1113
clangAnalysis
1214
clangAST
1315
clangASTMatchers

clang-tools-extra/clang-query/CMakeLists.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,10 @@ set(LLVM_LINK_COMPONENTS
77
add_clang_library(clangQuery
88
Query.cpp
99
QueryParser.cpp
10+
)
1011

11-
LINK_LIBS
12+
clang_target_link_libraries(clangQuery
13+
PRIVATE
1214
clangAST
1315
clangASTMatchers
1416
clangBasic

clang-tools-extra/clang-reorder-fields/CMakeLists.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,10 @@ set(LLVM_LINK_COMPONENTS
55

66
add_clang_library(clangReorderFields
77
ReorderFieldsAction.cpp
8+
)
89

9-
LINK_LIBS
10+
clang_target_link_libraries(clangReorderFields
11+
PRIVATE
1012
clangAST
1113
clangASTMatchers
1214
clangBasic

clang-tools-extra/clang-tidy/CMakeLists.txt

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,10 @@ add_clang_library(clangTidy
1515

1616
DEPENDS
1717
ClangSACheckers
18+
)
1819

19-
LINK_LIBS
20+
clang_target_link_libraries(clangTidy
21+
PRIVATE
2022
clangAnalysis
2123
clangAST
2224
clangASTMatchers
@@ -32,7 +34,8 @@ add_clang_library(clangTidy
3234
)
3335

3436
if(CLANG_ENABLE_STATIC_ANALYZER)
35-
target_link_libraries(clangTidy PRIVATE
37+
clang_target_link_libraries(clangTidy
38+
PRIVATE
3639
clangStaticAnalyzerCore
3740
clangStaticAnalyzerFrontend
3841
)

clang-tools-extra/clang-tidy/ClangTidy.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,8 @@ class ErrorReporter {
106106
DiagPrinter),
107107
SourceMgr(Diags, Files), Context(Context), ApplyFixes(ApplyFixes),
108108
TotalFixes(0), AppliedFixes(0), WarningsAsErrors(0) {
109-
DiagOpts->ShowColors = llvm::sys::Process::StandardOutHasColors();
109+
DiagOpts->ShowColors = Context.getOptions().UseColor.getValueOr(
110+
llvm::sys::Process::StandardOutHasColors());
110111
DiagPrinter->BeginSourceFile(LangOpts);
111112
}
112113

@@ -121,6 +122,8 @@ class ErrorReporter {
121122
{
122123
auto Level = static_cast<DiagnosticsEngine::Level>(Error.DiagLevel);
123124
std::string Name = Error.DiagnosticName;
125+
if (!Error.EnabledDiagnosticAliases.empty())
126+
Name += "," + llvm::join(Error.EnabledDiagnosticAliases, ",");
124127
if (Error.IsWarningAsError) {
125128
Name += ",-warnings-as-errors";
126129
Level = DiagnosticsEngine::Error;

0 commit comments

Comments
 (0)