Skip to content

Commit b952a76

Browse files
author
Alexander Batashev
committed
Merge remote-tracking branch 'origin/sycl' into private/abatashe/user_docs
* origin/sycl: (6482 commits) [SYCL][NFC] Clean formatting in Markdown documents (intel#1635) [SYCL][Doc] Remove obsolete parens from README (intel#1637) [SYCL] Fix failing ABI tests when LLVM_LIBDIR_SUFFIX is set (intel#1605) [SYCL] Fix warnings in libdevice (intel#1630) [SYCL][CUDA] Triage and clean LIT (intel#1620) [SYCL][NFC] Fix GCC 8 compilation warnings (intel#1631) [SYCL] Minor fixes in LowerWGScope [SYCL] PI: correct default interoperability plugin selection [SYCL] Add faster reduction implementations using atomic or/and intel::reduce() (intel#1615) [SYCL] Add sycl-ls utility for listing devices discovered/selected by SYCL RT (intel#1575) [SYCL] Fix getDeviceFromHandler declarations (intel#1626) [SPIR-V] Correct/improve declaration of SPIR-V builtins (intel#1519) [SYCL][USM] Improve USM allocator test and fix improper behavior. (intel#1538) [SYCL] Fix failing ABI LITs (intel#1622) [SYCL] Add support for MSVC internal math functions in device library (intel#1441) [SYCL] Add runtime library versioning (intel#1604) [SYCL] Check weak symbols in ABI dumps (intel#1609) [NFC][SYCL] Improve kernel metadata test (intel#1610) Revert "[SYCL] XFAIL LIT test due to duplicate diagnostic" (intel#1460) [SYCL] Move the reduction command group funcs out of handler.hpp (intel#1602) ...
2 parents df3658b + b375b04 commit b952a76

File tree

10,333 files changed

+506131
-161026
lines changed

Some content is hidden

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

10,333 files changed

+506131
-161026
lines changed

.arclint

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"linters": {
3+
"clang-format": {
4+
"type": "script-and-regex",
5+
"script-and-regex.script": "utils/arcanist/clang-format.sh",
6+
"script-and-regex.regex": "/^(?P<severity>[[:alpha:]]+)\n(?P<message>[^\n]+)\n(====|(?P<line>\\d),(?P<char>\\d)\n(?P<original>.*)>>>>\n(?P<replacement>.*)<<<<\n)$/s",
7+
"include": [
8+
"(\\.(cc|cpp|h)$)"
9+
]
10+
}
11+
}
12+
}

CONTRIBUTING.md

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -77,12 +77,25 @@ for more information.
7777
- Create a personal fork of the project on GitHub
7878
- For the DPC++ Compiler project, use **sycl** branch as baseline for your
7979
changes. See [Get Started Guide](sycl/doc/GetStartedGuide.md).
80-
- Prepare your patch (follow
81-
[LLVM coding standards](https://llvm.org/docs/CodingStandards.html)).
82-
[clang-format](https://clang.llvm.org/docs/ClangFormat.html) and [clang-tidy](
83-
https://clang.llvm.org/extra/clang-tidy/) tools can be integrated into your
84-
workflow to ensure formatting and stylistic compliance of your changes.
80+
- Prepare your patch
81+
- follow [LLVM coding standards](https://llvm.org/docs/CodingStandards.html)
82+
- [clang-format](https://clang.llvm.org/docs/ClangFormat.html) and
83+
[clang-tidy](https://clang.llvm.org/extra/clang-tidy/) tools can be
84+
integrated into your workflow to ensure formatting and stylistic
85+
compliance of your changes.
86+
- use
87+
```
88+
./clang/tools/clang-format/git-clang-format `git merge-base origin/sycl HEAD`
89+
```
90+
to check the format of your current changes against the `origin/sycl`
91+
branch.
92+
- `-f` to also correct unstaged changes
93+
- `--diff` to only print the diff without applying
8594
- Build the project and run all tests.
95+
- complete test suite: `python buildbot/check.py`
96+
- sycl test suite `python buildbot/check.py -t test-sycl`
97+
- run only "mytest" test `python buildbot/check.py -t test-sycl-mytest`
98+
- if necessary, use `-o $LLVM_BUILD_DIR` to specify the llvm build directory
8699
87100
### Commit message
88101
@@ -114,5 +127,4 @@ Project maintainers merge pull requests using one of the following options:
114127
- [Create a merge commit] Used for LLVM pull-down PRs to preserve hashes of the
115128
commits pulled from the LLVM community repository
116129
117-
118130
*Other names and brands may be claimed as the property of others.

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,9 @@ Intel staging area for llvm.org contribution.
66
Home for Intel LLVM-based projects:
77
- oneAPI Data Parallel C++ compiler - see **sycl** branch. More information on
88
oneAPI and DPC++ is available at
9-
([https://www.oneapi.com/](https://www.oneapi.com/))
10-
- [![Linux Post Commit Checks](https://github.com/intel/llvm/workflows/Linux%20Post%20Commit%20Checks/badge.svg)](https://github.com/intel/llvm/actions?query=workflow%3A%22Linux+Post+Commit+Checks%22) [![Generate Doxygen documentation](https://github.com/intel/llvm/workflows/Generate%20Doxygen%20documentation/badge.svg)](https://github.com/intel/llvm/actions?query=workflow%3A%22Generate+Doxygen+documentation%22)
9+
[https://www.oneapi.com/](https://www.oneapi.com/)
10+
- [![Linux Post Commit Checks](https://github.com/intel/llvm/workflows/Linux%20Post%20Commit%20Checks/badge.svg)](https://github.com/intel/llvm/actions?query=workflow%3A%22Linux+Post+Commit+Checks%22)
11+
[![Generate Doxygen documentation](https://github.com/intel/llvm/workflows/Generate%20Doxygen%20documentation/badge.svg)](https://github.com/intel/llvm/actions?query=workflow%3A%22Generate+Doxygen+documentation%22)
1112

1213

1314

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
set(LLVM_LINK_COMPONENTS
2-
support
2+
FrontendOpenMP
3+
Support
34
)
45

56
add_clang_library(clangChangeNamespace

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -832,7 +832,7 @@ void ChangeNamespaceTool::replaceQualifiedSymbolInDeclContext(
832832
std::string AliasName = NamespaceAlias->getNameAsString();
833833
std::string AliasQualifiedName =
834834
NamespaceAlias->getQualifiedNameAsString();
835-
// We only consider namespace aliases define in the global namepspace or
835+
// We only consider namespace aliases define in the global namespace or
836836
// in namespaces that are directly visible from the reference, i.e.
837837
// ancestor of the `OldNs`. Note that declarations in ancestor namespaces
838838
// but not visible in the new namespace is filtered out by

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ namespace change_namespace {
2727
// reference needs to be fully-qualified, this adds a "::" prefix to the
2828
// namespace specifiers unless the new namespace is the global namespace.
2929
// For classes, only classes that are declared/defined in the given namespace in
30-
// speficifed files will be moved: forward declarations will remain in the old
30+
// specified files will be moved: forward declarations will remain in the old
3131
// namespace.
3232
// For example, changing "a" to "x":
3333
// Old code:
@@ -138,7 +138,7 @@ class ChangeNamespaceTool : public ast_matchers::MatchFinder::MatchCallback {
138138
llvm::Regex FilePatternRE;
139139
// Information about moved namespaces grouped by file.
140140
// Since we are modifying code in old namespaces (e.g. add namespace
141-
// spedifiers) as well as moving them, we store information about namespaces
141+
// specifiers) as well as moving them, we store information about namespaces
142142
// to be moved and only move them after all modifications are finished (i.e.
143143
// in `onEndOfTranslationUnit`).
144144
std::map<std::string, std::vector<MoveNamespace>> MoveNamespaces;

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/..)
22

33
set(LLVM_LINK_COMPONENTS
4+
FrontendOpenMP
45
Support
56
)
67

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
set(LLVM_LINK_COMPONENTS
22
support
33
BitstreamReader
4+
FrontendOpenMP
45
)
56

67
add_clang_library(clangDoc

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ void Generator::addInfoToIndex(Index &Idx, const doc::Info *Info) {
8282
// pointing.
8383
auto It = std::find(I->Children.begin(), I->Children.end(), R.USR);
8484
if (It != I->Children.end()) {
85-
// If it is found, just change I to point the namespace refererence found.
85+
// If it is found, just change I to point the namespace reference found.
8686
I = &*It;
8787
} else {
8888
// If it is not found a new reference is created

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ void Info::mergeBase(Info &&Other) {
187187
// Unconditionally extend the description, since each decl may have a comment.
188188
std::move(Other.Description.begin(), Other.Description.end(),
189189
std::back_inserter(Description));
190-
std::sort(Description.begin(), Description.end());
190+
llvm::sort(Description);
191191
auto Last = std::unique(Description.begin(), Description.end());
192192
Description.erase(Last, Description.end());
193193
}
@@ -202,7 +202,7 @@ void SymbolInfo::merge(SymbolInfo &&Other) {
202202
DefLoc = std::move(Other.DefLoc);
203203
// Unconditionally extend the list of locations, since we want all of them.
204204
std::move(Other.Loc.begin(), Other.Loc.end(), std::back_inserter(Loc));
205-
std::sort(Loc.begin(), Loc.end());
205+
llvm::sort(Loc);
206206
auto Last = std::unique(Loc.begin(), Loc.end());
207207
Loc.erase(Last, Loc.end());
208208
mergeBase(std::move(Other));
@@ -314,7 +314,7 @@ bool Index::operator<(const Index &Other) const {
314314
}
315315

316316
void Index::sort() {
317-
std::sort(Children.begin(), Children.end());
317+
llvm::sort(Children);
318318
for (auto &C : Children)
319319
C.sort();
320320
}

0 commit comments

Comments
 (0)