Skip to content

Commit bba4c55

Browse files
Merge branch 'sycl' of https://github.com/intel/llvm into enable_esimd_emu_build
2 parents 139a549 + 90c8f05 commit bba4c55

File tree

3,009 files changed

+100430
-38909
lines changed

Some content is hidden

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

3,009 files changed

+100430
-38909
lines changed

.clang-tidy

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,5 @@ CheckOptions:
1616
value: CamelCase
1717
- key: readability-identifier-naming.IgnoreMainLikeFunctions
1818
value: 1
19-
19+
- key: readability-redundant-member-init.IgnoreBaseInCopyConstructors
20+
value: 1

.github/CODEOWNERS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ llvm/ @intel/dpcpp-tools-reviewers
4848
clang/tools/clang-offload-*/ @intel/dpcpp-tools-reviewers
4949

5050
# Explicit SIMD
51-
SYCLLowerIR/ @intel/dpcpp-esimd-reviewers
51+
ESIMD/ @intel/dpcpp-esimd-reviewers
5252
esimd/ @intel/dpcpp-esimd-reviewers
5353
sycl/include/sycl/ext/intel/experimental/esimd.hpp @intel/dpcpp-esimd-reviewers
5454
sycl/doc/extensions/ExplicitSIMD/ @intel/dpcpp-esimd-reviewers
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Issue Subscriber
2+
3+
on:
4+
issues:
5+
types:
6+
- labeled
7+
8+
jobs:
9+
auto-subscribe:
10+
runs-on: ubuntu-latest
11+
if: github.repository == 'llvm/llvm-project'
12+
steps:
13+
- name: Update watchers
14+
uses: actions/github-script@v5
15+
with:
16+
github-token: ${{ secrets.ISSUE_MENTION_SECRET }}
17+
script: |
18+
const teamname = "issue-subscribers-" + context.payload.label.name.replace(/ /g, "-").replace(":","-").replace("/","-");
19+
const comment = "@llvm/" + teamname;
20+
try {
21+
// This will throw an exception if the team does not exist and no
22+
// comment will be created.
23+
team = await github.rest.teams.getByName({
24+
org: context.repo.owner,
25+
team_slug: teamname
26+
});
27+
github.rest.issues.createComment({
28+
issue_number: context.issue.number,
29+
owner: context.repo.owner,
30+
repo: context.repo.repo,
31+
body: comment
32+
});
33+
} catch (e){
34+
console.log(e);
35+
}

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@
1414
#include "llvm/ADT/StringExtras.h"
1515
#include "llvm/Support/Error.h"
1616

17-
using clang::comments::FullComment;
18-
1917
namespace clang {
2018
namespace doc {
2119

@@ -68,7 +66,7 @@ bool MapASTVisitor::VisitCXXMethodDecl(const CXXMethodDecl *D) {
6866

6967
bool MapASTVisitor::VisitFunctionDecl(const FunctionDecl *D) {
7068
// Don't visit CXXMethodDecls twice
71-
if (dyn_cast<CXXMethodDecl>(D))
69+
if (isa<CXXMethodDecl>(D))
7270
return true;
7371
return mapDecl(D);
7472
}

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,7 @@ populateParentNamespaces(llvm::SmallVector<Reference, 4> &Namespaces,
382382
// corresponds to a Record and if it doesn't have any namespace (because this
383383
// means it's in the global namespace). Also if its outermost namespace is a
384384
// record because that record matches the previous condition mentioned.
385-
if ((Namespaces.empty() && dyn_cast<RecordDecl>(D)) ||
385+
if ((Namespaces.empty() && isa<RecordDecl>(D)) ||
386386
(!Namespaces.empty() && Namespaces.back().RefType == InfoType::IT_record))
387387
Namespaces.emplace_back(SymbolID(), "GlobalNamespace",
388388
InfoType::IT_namespace);
@@ -419,10 +419,10 @@ static void populateFunctionInfo(FunctionInfo &I, const FunctionDecl *D,
419419
populateSymbolInfo(I, D, FC, LineNumber, Filename, IsFileInRootDir,
420420
IsInAnonymousNamespace);
421421
if (const auto *T = getDeclForType(D->getReturnType())) {
422-
if (dyn_cast<EnumDecl>(T))
422+
if (isa<EnumDecl>(T))
423423
I.ReturnType = TypeInfo(getUSRForDecl(T), T->getNameAsString(),
424424
InfoType::IT_enum, getInfoRelativePath(T));
425-
else if (dyn_cast<RecordDecl>(T))
425+
else if (isa<RecordDecl>(T))
426426
I.ReturnType = TypeInfo(getUSRForDecl(T), T->getNameAsString(),
427427
InfoType::IT_record, getInfoRelativePath(T));
428428
} else {

clang-tools-extra/clang-include-fixer/YamlSymbolIndex.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
#include <string>
1616
#include <vector>
1717

18-
using clang::find_all_symbols::SymbolInfo;
1918
using clang::find_all_symbols::SymbolAndSignals;
2019

2120
namespace clang {

clang-tools-extra/clang-include-fixer/find-all-symbols/SymbolInfo.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@
1313
#include "llvm/Support/raw_ostream.h"
1414

1515
using llvm::yaml::MappingTraits;
16-
using llvm::yaml::IO;
17-
using llvm::yaml::Input;
1816
using ContextType = clang::find_all_symbols::SymbolInfo::ContextType;
1917
using clang::find_all_symbols::SymbolInfo;
2018
using clang::find_all_symbols::SymbolAndSignals;

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -719,7 +719,7 @@ void ClangTidyDiagnosticConsumer::checkFilters(SourceLocation Location,
719719
}
720720

721721
if (!*Context.getOptions().SystemHeaders &&
722-
Sources.isInSystemHeader(Location))
722+
(Sources.isInSystemHeader(Location) || Sources.isInSystemMacro(Location)))
723723
return;
724724

725725
// FIXME: We start with a conservative approach here, but the actual type of

clang-tools-extra/clang-tidy/abseil/DurationFactoryScaleCheck.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,6 @@ void DurationFactoryScaleCheck::check(const MatchFinder::MatchResult &Result) {
221221
tooling::fixit::getText(*Remainder, *Result.Context) + ")")
222222
.str());
223223
}
224-
return;
225224
}
226225

227226
} // namespace abseil

clang-tools-extra/clang-tidy/abseil/DurationRewriter.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,4 +138,4 @@ AST_MATCHER_FUNCTION_P(ast_matchers::internal::Matcher<Stmt>,
138138
} // namespace tidy
139139
} // namespace clang
140140

141-
#endif // LLVM_CLANG_TOOLS_EXTRA_CLANG_TIDY_ABSEIL_DURATIONCOMPARISONCHECK_H
141+
#endif // LLVM_CLANG_TOOLS_EXTRA_CLANG_TIDY_ABSEIL_DURATIONREWRITER_H

0 commit comments

Comments
 (0)