Skip to content

Commit 4e38c23

Browse files
keryellvladimirlaz
authored andcommitted
[SYCL] Fix some typos
Signed-off-by: Ronan Keryell <[email protected]>
1 parent e681131 commit 4e38c23

File tree

9 files changed

+13
-13
lines changed

9 files changed

+13
-13
lines changed

clang/include/clang/Basic/DiagnosticDriverKinds.td

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ def warn_drv_omp_offload_target_duplicate : Warning<
223223
"The OpenMP offloading target '%0' is similar to target '%1' already specified - will be ignored.">,
224224
InGroup<OpenMPTarget>;
225225
def warn_drv_sycl_offload_target_duplicate : Warning<
226-
"The SYCL offloading target '%0' is similar to target '%1' already specified - will be ignored.">,
226+
"The SYCL offloading target '%0' is similar to target '%1' already specified - will be ignored.">,
227227
InGroup<SyclTarget>;
228228
def warn_drv_omp_offload_target_missingbcruntime : Warning<
229229
"No library '%0' found in the default clang lib directory or in LIBRARY_PATH. Expect degraded performance due to no inlining of runtime functions on target devices.">,

clang/include/clang/Driver/ToolChain.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ class ToolChain {
276276
}
277277

278278
/// TranslateOffloadTargetArgs - Create a new derived argument list for
279-
/// that contains the Offloat target specific flags passed via
279+
/// that contains the Offload target specific flags passed via
280280
/// -Xopenmp-target -opt=val OR -Xopenmp-target=<triple> -opt=val
281281
/// Also handles -Xsycl-target OR -Xsycl-target=<triple>
282282
virtual llvm::opt::DerivedArgList *TranslateOffloadTargetArgs(

clang/include/clang/Sema/Sema.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ class FileNullabilityMap {
280280
// mechanism should be developed to enforce that.
281281

282282
// TODO FIXME SYCL Support for SYCL in FE should be refactored:
283-
// - kernel indentification and generation should be made a separate pass over
283+
// - kernel identification and generation should be made a separate pass over
284284
// AST. RecursiveASTVisitor + VisitFunctionTemplateDecl +
285285
// FunctionTemplateDecl::getSpecializations() mechanism could be used for that.
286286
// - All SYCL stuff on Sema level should be encapsulated into a single Sema
@@ -10957,15 +10957,15 @@ class Sema {
1095710957
// We store SYCL Kernels here and handle separately -- which is a hack.
1095810958
// FIXME: It would be best to refactor this.
1095910959
SmallVector<Decl*, 4> SyclKernel;
10960-
// SYCL integratrion header instance for current compilation unit this Sema
10960+
// SYCL integration header instance for current compilation unit this Sema
1096110961
// is associated with.
1096210962
std::unique_ptr<SYCLIntegrationHeader> SyclIntHeader;
1096310963

1096410964
public:
1096510965
void AddSyclKernel(Decl * d) { SyclKernel.push_back(d); }
1096610966
SmallVector<Decl*, 4> &SyclKernels() { return SyclKernel; }
1096710967

10968-
/// Lazily creates and returns SYCL integratrion header instance.
10968+
/// Lazily creates and returns SYCL integration header instance.
1096910969
SYCLIntegrationHeader &getSyclIntegrationHeader() {
1097010970
if (SyclIntHeader == nullptr)
1097110971
SyclIntHeader = llvm::make_unique<SYCLIntegrationHeader>(

clang/lib/CodeGen/CodeGenTypes.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ void CodeGenTypes::addRecordTypeName(const RecordDecl *RD,
5858
// NOTE: The following block of code is copied from CLANG-3.6 with
5959
// support of OpenCLCPlusPlus. It is rather the temporary solution
6060
// that is going to be used until the general solution is ported/developed
61-
// in the latest llvm trunc.
61+
// in the latest llvm trunk.
6262
//
6363
// For SYCL, the mangled type name is attached, so it can be
6464
// reflown to proper name later.

clang/lib/Driver/Driver.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3204,9 +3204,9 @@ class OffloadingActionBuilder final {
32043204
for (StringRef Val : SYCLAddTargets->getValues()) {
32053205
// Parse out the Triple and Input (triple:binary) and create a
32063206
// ToolChain for each entry. Each of these will be wrapped and fed
3207-
// into the final binary
3207+
// into the final binary.
32083208
// Populate the pairs, expects format of 'triple:file', any other
3209-
// format will not be accepted
3209+
// format will not be accepted.
32103210
std::pair<StringRef, StringRef> I = Val.split(':');
32113211
llvm::Triple TT;
32123212
const char * TF;

clang/lib/Sema/SemaSYCL.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -712,7 +712,7 @@ void Sema::ConstructSYCLKernel(FunctionDecl *KernelCallerFunc) {
712712
const TemplateArgumentList *TemplateArgs =
713713
KernelCallerFunc->getTemplateSpecializationArgs();
714714
assert(TemplateArgs && "No template argument info");
715-
// The first teamplate argument always describes the kernel name - whether
715+
// The first template argument always describes the kernel name - whether
716716
// it is lambda or functor.
717717
QualType KernelNameType = TypeName::getFullyQualifiedType(
718718
TemplateArgs->get(0).getAsType(), getASTContext(), true);

llvm/lib/SYCL/ASFixer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -554,7 +554,7 @@ struct ASFixer : public ModulePass {
554554
// into structure so we need to check structures with
555555
// pointers and replace it if needed.
556556
// As described in SYCL spec structures with pointers
557-
// can't be passes as kernel argument so we check
557+
// can't be passed as kernel argument so we check
558558
// allocas of structures with pointers.
559559
std::vector<std::pair<Value *, Value *>> BadAllocas;
560560
TypeToTypeMap TMap;

sycl/include/CL/sycl/swizzles.def

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
//
88
//===----------------------------------------------------------------------===//
99

10-
// included to types.hppp twice, once for vec<> and once for SwizzleOp<>.
10+
// Included by types.hpp twice, once for vec<> and once for SwizzleOp<>.
1111

1212
// TODO: exclude L-Value swizzle like vec.xxxx()
1313
#ifdef __SYCL_ACCESS

sycl/test/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ set(SYCL_TEST_DEPS
1818
FileCheck
1919
${SYCLLibrary}
2020
)
21-
add_lit_testsuite(check-sycl "Running the Sycl regression tests"
21+
add_lit_testsuite(check-sycl "Running the SYCL regression tests"
2222
${CMAKE_CURRENT_BINARY_DIR}
2323
ARGS ${RT_TEST_ARGS}
2424
DEPENDS ${SYCL_TEST_DEPS}
2525
)
26-
set_target_properties(check-sycl PROPERTIES FOLDER "Sycl tests")
26+
set_target_properties(check-sycl PROPERTIES FOLDER "SYCL tests")

0 commit comments

Comments
 (0)