[Mlir-commits] [clang] [compiler-rt] [llvm] [mlir] [NFC] Fix some typos (PR #98791)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Sat Jul 13 20:04:20 PDT 2024


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-clang

Author: None (c8ef)

<details>
<summary>Changes</summary>



---
Full diff: https://github.com/llvm/llvm-project/pull/98791.diff


12 Files Affected:

- (modified) clang/lib/Driver/ToolChains/Clang.cpp (+1-1) 
- (modified) clang/lib/Sema/SemaType.cpp (+1-1) 
- (modified) clang/test/CXX/drs/cwg20xx.cpp (+2-1) 
- (modified) clang/test/CodeGen/asan-destructor-kind.cpp (+2-2) 
- (modified) clang/test/SemaCUDA/device-use-host-var.cu (+2-1) 
- (modified) clang/test/SemaCXX/cxx2a-consteval.cpp (+2-2) 
- (modified) compiler-rt/test/asan/TestCases/Darwin/init_for_dlopen.cpp (+1-1) 
- (modified) llvm/include/llvm/DebugInfo/DWARF/DWARFDebugFrame.h (+1-1) 
- (modified) llvm/lib/Object/XCOFFObjectFile.cpp (+1-1) 
- (modified) llvm/lib/Target/Xtensa/XtensaInstrInfo.cpp (+1-1) 
- (modified) llvm/lib/Transforms/Utils/LowerSwitch.cpp (+1-1) 
- (modified) mlir/lib/Dialect/Utils/ReshapeOpsUtils.cpp (+1-1) 


``````````diff
diff --git a/clang/lib/Driver/ToolChains/Clang.cpp b/clang/lib/Driver/ToolChains/Clang.cpp
index bc21d03a627b9..7369887371200 100644
--- a/clang/lib/Driver/ToolChains/Clang.cpp
+++ b/clang/lib/Driver/ToolChains/Clang.cpp
@@ -5819,7 +5819,7 @@ void Clang::ConstructJob(Compilation &C, const JobAction &JA,
   }
 
   // If toolchain choose to use MCAsmParser for inline asm don't pass the
-  // option to disable integrated-as explictly.
+  // option to disable integrated-as explicitly.
   if (!TC.useIntegratedAs() && !TC.parseInlineAsmUsingAsmParser())
     CmdArgs.push_back("-no-integrated-as");
 
diff --git a/clang/lib/Sema/SemaType.cpp b/clang/lib/Sema/SemaType.cpp
index 714409f927a8d..46166e44d17bd 100644
--- a/clang/lib/Sema/SemaType.cpp
+++ b/clang/lib/Sema/SemaType.cpp
@@ -2373,7 +2373,7 @@ QualType Sema::BuildExtVectorType(QualType T, Expr *ArraySize,
   // on bitvectors, and we have no well-defined ABI for bitvectors, so vectors
   // of bool aren't allowed.
   //
-  // We explictly allow bool elements in ext_vector_type for C/C++.
+  // We explicitly allow bool elements in ext_vector_type for C/C++.
   bool IsNoBoolVecLang = getLangOpts().OpenCL || getLangOpts().OpenCLCPlusPlus;
   if ((!T->isDependentType() && !T->isIntegerType() &&
        !T->isRealFloatingType()) ||
diff --git a/clang/test/CXX/drs/cwg20xx.cpp b/clang/test/CXX/drs/cwg20xx.cpp
index 9797097acce75..fdd31845d5e0d 100644
--- a/clang/test/CXX/drs/cwg20xx.cpp
+++ b/clang/test/CXX/drs/cwg20xx.cpp
@@ -313,7 +313,8 @@ namespace cwg2083 { // cwg2083: partial
     int &r = a.x; // #cwg2083-r
     struct B {
       void f() {
-        // FIXME: We emit more errors than we should be. They are explictly marked below.
+        // FIXME: We emit more errors than we should be. They are explicitly
+        // marked below.
         a.x;
         // expected-warning at -1 {{expression result unused}}
         // expected-error at -2 {{reference to local variable 'a' declared in enclosing function 'cwg2083::discarded_lval'}} FIXME
diff --git a/clang/test/CodeGen/asan-destructor-kind.cpp b/clang/test/CodeGen/asan-destructor-kind.cpp
index 50188067c68b3..73e9185a65fc9 100644
--- a/clang/test/CodeGen/asan-destructor-kind.cpp
+++ b/clang/test/CodeGen/asan-destructor-kind.cpp
@@ -9,7 +9,7 @@
 // RUN: %clang_cc1 -fsanitize=address -emit-llvm -o - -triple x86_64-apple-macosx10.15 %s \
 // RUN:   | FileCheck %s --check-prefixes=CHECK-GLOBAL-DTOR
 
-// Explictly ask for global dtor
+// Explicitly ask for global dtor
 // RUN: %clang_cc1 -fsanitize=address \
 // RUN:   -fsanitize-address-destructor=global -emit-llvm -o - \
 // RUN:   -triple x86_64-apple-macosx10.15 %s | \
@@ -18,7 +18,7 @@
 // CHECK-GLOBAL-DTOR: llvm.global_dtor{{.+}}asan.module_dtor
 // CHECK-GLOBAL-DTOR: define internal void @asan.module_dtor
 
-// Explictly ask for no dtors
+// Explicitly ask for no dtors
 // RUN: %clang_cc1 -fsanitize=address \
 // RUN:   -fsanitize-address-destructor=none -emit-llvm -o - \
 // RUN:   -triple x86_64-apple-macosx10.15 %s | \
diff --git a/clang/test/SemaCUDA/device-use-host-var.cu b/clang/test/SemaCUDA/device-use-host-var.cu
index 7904f654d65b3..c0f9fc4e8a67a 100644
--- a/clang/test/SemaCUDA/device-use-host-var.cu
+++ b/clang/test/SemaCUDA/device-use-host-var.cu
@@ -111,7 +111,8 @@ __device__ void dev_fun(int *out) {
   // Check ODR-use of host variables in namespace is not allowed.
   *out = X::host_var; // dev-error {{reference to __host__ variable 'host_var' in __device__ function}}
 
-  // Check ODR-use of static host varables in class or file scope is not allowed.
+  // Check ODR-use of static host variables in class or file scope is not
+  // allowed.
   *out = A::host_var; // dev-error {{reference to __host__ variable 'host_var' in __device__ function}}
   *out = static_host_var; // dev-error {{reference to __host__ variable 'static_host_var' in __device__ function}}
 
diff --git a/clang/test/SemaCXX/cxx2a-consteval.cpp b/clang/test/SemaCXX/cxx2a-consteval.cpp
index fb8385eb02051..ba80e57f81424 100644
--- a/clang/test/SemaCXX/cxx2a-consteval.cpp
+++ b/clang/test/SemaCXX/cxx2a-consteval.cpp
@@ -891,13 +891,13 @@ struct S {
 };
 
 void func() {
-  // Explictly defaulted constructor.
+  // Explicitly defaulted constructor.
   S<Foo, 1> s1;
   S<Bar, 1> s2;
   // User provided constructor.
   S<Foo, 2> s3;
   S<Bar, 2> s4;
-  // Consteval explictly defaulted constructor.
+  // Consteval explicitly defaulted constructor.
   S<Foo, 3> s5; // expected-error {{call to consteval function 'multiple_default_constructors::S<multiple_default_constructors::Foo, 3>::S' is not a constant expression}} \
                    expected-note {{in call to 'S()'}}
   S<Bar, 3> s6;
diff --git a/compiler-rt/test/asan/TestCases/Darwin/init_for_dlopen.cpp b/compiler-rt/test/asan/TestCases/Darwin/init_for_dlopen.cpp
index 0107f30dd7d9b..3bf8e99703a08 100644
--- a/compiler-rt/test/asan/TestCases/Darwin/init_for_dlopen.cpp
+++ b/compiler-rt/test/asan/TestCases/Darwin/init_for_dlopen.cpp
@@ -1,7 +1,7 @@
 // RUN: %clangxx -g -O0 %s -o %t
 
 // Check that trying to dlopen() the ASan dylib fails.
-// We explictly set `abort_on_error=0` because
+// We explicitly set `abort_on_error=0` because
 // - By default the lit config sets this but we don't want this
 //   test to implicitly depend on this.
 // - It avoids requiring `--crash` to be passed to `not`.
diff --git a/llvm/include/llvm/DebugInfo/DWARF/DWARFDebugFrame.h b/llvm/include/llvm/DebugInfo/DWARF/DWARFDebugFrame.h
index c7c558850a280..a9a3c7edde691 100644
--- a/llvm/include/llvm/DebugInfo/DWARF/DWARFDebugFrame.h
+++ b/llvm/include/llvm/DebugInfo/DWARF/DWARFDebugFrame.h
@@ -497,7 +497,7 @@ class CFIProgram {
 
   /// Types of operands to CFI instructions
   /// In DWARF, this type is implicitly tied to a CFI instruction opcode and
-  /// thus this type doesn't need to be explictly written to the file (this is
+  /// thus this type doesn't need to be explicitly written to the file (this is
   /// not a DWARF encoding). The relationship of instrs to operand types can
   /// be obtained from getOperandTypes() and is only used to simplify
   /// instruction printing.
diff --git a/llvm/lib/Object/XCOFFObjectFile.cpp b/llvm/lib/Object/XCOFFObjectFile.cpp
index 25a60f379fc22..6efb8759d13fb 100644
--- a/llvm/lib/Object/XCOFFObjectFile.cpp
+++ b/llvm/lib/Object/XCOFFObjectFile.cpp
@@ -1369,7 +1369,7 @@ Expected<StringRef> XCOFFSymbolRef::getName() const {
   return getObject()->getStringTableEntry(getSymbol64()->Offset);
 }
 
-// Explictly instantiate template classes.
+// Explicitly instantiate template classes.
 template struct XCOFFSectionHeader<XCOFFSectionHeader32>;
 template struct XCOFFSectionHeader<XCOFFSectionHeader64>;
 
diff --git a/llvm/lib/Target/Xtensa/XtensaInstrInfo.cpp b/llvm/lib/Target/Xtensa/XtensaInstrInfo.cpp
index 27e198508c792..491defb867643 100644
--- a/llvm/lib/Target/Xtensa/XtensaInstrInfo.cpp
+++ b/llvm/lib/Target/Xtensa/XtensaInstrInfo.cpp
@@ -169,7 +169,7 @@ void XtensaInstrInfo::loadImmediate(MachineBasicBlock &MBB,
     BuildMI(MBB, MBBI, DL, get(Xtensa::MOVI), *Reg).addImm(Low);
     BuildMI(MBB, MBBI, DL, get(Xtensa::ADDMI), *Reg).addReg(*Reg).addImm(High);
   } else if (Value >= -4294967296LL && Value <= 4294967295LL) {
-    // 32 bit arbirary constant
+    // 32 bit arbitrary constant
     MachineConstantPool *MCP = MBB.getParent()->getConstantPool();
     uint64_t UVal = ((uint64_t)Value) & 0xFFFFFFFFLL;
     const Constant *CVal = ConstantInt::get(
diff --git a/llvm/lib/Transforms/Utils/LowerSwitch.cpp b/llvm/lib/Transforms/Utils/LowerSwitch.cpp
index 55f35448af637..b5c4e93be574b 100644
--- a/llvm/lib/Transforms/Utils/LowerSwitch.cpp
+++ b/llvm/lib/Transforms/Utils/LowerSwitch.cpp
@@ -369,7 +369,7 @@ void ProcessSwitchInst(SwitchInst *SI,
   const unsigned NumSimpleCases = Clusterify(Cases, SI);
   IntegerType *IT = cast<IntegerType>(SI->getCondition()->getType());
   const unsigned BitWidth = IT->getBitWidth();
-  // Explictly use higher precision to prevent unsigned overflow where
+  // Explicitly use higher precision to prevent unsigned overflow where
   // `UnsignedMax - 0 + 1 == 0`
   APInt UnsignedZero(BitWidth + 1, 0);
   APInt UnsignedMax = APInt::getMaxValue(BitWidth);
diff --git a/mlir/lib/Dialect/Utils/ReshapeOpsUtils.cpp b/mlir/lib/Dialect/Utils/ReshapeOpsUtils.cpp
index e4f387d40ced2..d2ab4cabb32bf 100644
--- a/mlir/lib/Dialect/Utils/ReshapeOpsUtils.cpp
+++ b/mlir/lib/Dialect/Utils/ReshapeOpsUtils.cpp
@@ -42,7 +42,7 @@ mlir::getReassociationIndicesForCollapse(ArrayRef<int64_t> sourceShape,
   while (sourceDim < sourceShape.size()) {
     unsigned targetDim = reassociationMap.size();
     // If we have mapped all the target dimensions stop and handle the remaining
-    // tail of size-1 dimensions explictly.
+    // tail of size-1 dimensions explicitly.
     if (targetDim == targetShape.size())
       break;
 

``````````

</details>


https://github.com/llvm/llvm-project/pull/98791


More information about the Mlir-commits mailing list