[clang-tools-extra] [llvm] [mlir] [llvm] Fix typos: replace avaliable with available across various files (PR #114524)

2024-11-01 Thread Wang Qiang via cfe-commits

https://github.com/ReVe1uv created 
https://github.com/llvm/llvm-project/pull/114524

This pull request corrects multiple occurrences of the typo "avaliable" to 
"available" across the LLVM and Clang codebase. These changes improve the 
clarity and accuracy of comments and documentation. Specific modifications are 
in the following files:

1. 
clang-tools-extra/clang-tidy/readability/FunctionCognitiveComplexityCheck.cpp: 
Updated comments in readability checks for cognitive complexity.
2. llvm/include/llvm/ExecutionEngine/Orc/ExecutionUtils.h: Corrected 
documentation for JITDylib responsibilities.
3. llvm/include/llvm/Target/TargetMacroFusion.td: Fixed descriptions for 
FusionPredicate variables.
4. llvm/lib/CodeGen/SafeStack.cpp: Improved comments on DominatorTree 
availability.
5. llvm/lib/Target/RISCV/RISCVSchedSiFive7.td: Enhanced resource usage 
descriptions for vector units.
6. llvm/lib/Transforms/Scalar/LoopIdiomRecognize.cpp: Updated invariant 
description in shift-detect idiom logic.
7. llvm/test/MC/ARM/mve-fp-registers.s: Amended ARM MVE register availability 
notes.
8. mlir/lib/Bytecode/Reader/BytecodeReader.cpp: Adjusted forward reference 
descriptions for bytecode reader operations.

These changes have no impact on code functionality, focusing solely on 
documentation clarity.

>From c6dae1ebf11229b7aa526cc18175902978b8070f Mon Sep 17 00:00:00 2001
From: wangqiang 
Date: Fri, 1 Nov 2024 17:23:23 +0800
Subject: [PATCH] [llvm] Fix typos: replace avaliable with available across
 various files

---
 .../readability/FunctionCognitiveComplexityCheck.cpp  | 2 +-
 .../checkers/readability/function-cognitive-complexity.cpp| 4 ++--
 llvm/include/llvm/ExecutionEngine/Orc/ExecutionUtils.h| 2 +-
 llvm/include/llvm/Target/TargetMacroFusion.td | 2 +-
 llvm/lib/CodeGen/SafeStack.cpp| 2 +-
 llvm/lib/Target/RISCV/RISCVSchedSiFive7.td| 2 +-
 llvm/lib/Transforms/Scalar/LoopIdiomRecognize.cpp | 2 +-
 llvm/test/MC/ARM/mve-fp-registers.s   | 2 +-
 mlir/lib/Bytecode/Reader/BytecodeReader.cpp   | 2 +-
 9 files changed, 10 insertions(+), 10 deletions(-)

diff --git 
a/clang-tools-extra/clang-tidy/readability/FunctionCognitiveComplexityCheck.cpp 
b/clang-tools-extra/clang-tidy/readability/FunctionCognitiveComplexityCheck.cpp
index 759cdd44fd6581..d8cfea534e55f3 100644
--- 
a/clang-tools-extra/clang-tidy/readability/FunctionCognitiveComplexityCheck.cpp
+++ 
b/clang-tools-extra/clang-tidy/readability/FunctionCognitiveComplexityCheck.cpp
@@ -126,7 +126,7 @@ struct CognitiveComplexity final {
   // Limit of 25 is the "upstream"'s default.
   static constexpr unsigned DefaultLimit = 25U;
 
-  // Based on the publicly-avaliable numbers for some big open-source projects
+  // Based on the publicly-available numbers for some big open-source projects
   // https://sonarcloud.io/projects?languages=c%2Ccpp&size=5   we can estimate:
   // value ~20 would result in no allocs for 98% of functions, ~12 for 96%, ~10
   // for 91%, ~8 for 88%, ~6 for 84%, ~4 for 77%, ~2 for 64%, and ~1 for 37%.
diff --git 
a/clang-tools-extra/test/clang-tidy/checkers/readability/function-cognitive-complexity.cpp
 
b/clang-tools-extra/test/clang-tidy/checkers/readability/function-cognitive-complexity.cpp
index aad74da21553fd..2f11e0c3e31716 100644
--- 
a/clang-tools-extra/test/clang-tidy/checkers/readability/function-cognitive-complexity.cpp
+++ 
b/clang-tools-extra/test/clang-tidy/checkers/readability/function-cognitive-complexity.cpp
@@ -69,10 +69,10 @@ void unittest_false() {
 
////
 
 // break does not increase cognitive complexity.
-// only  break LABEL  does, but it is unavaliable in C or C++
+// only  break LABEL  does, but it is unavailable in C or C++
 
 // continue does not increase cognitive complexity.
-// only  continue LABEL  does, but it is unavaliable in C or C++
+// only  continue LABEL  does, but it is unavailable in C or C++
 
 void unittest_b1_00() {
 // CHECK-NOTES: :[[@LINE-1]]:6: warning: function 'unittest_b1_00' has 
cognitive complexity of 33 (threshold 0) 
[readability-function-cognitive-complexity]
diff --git a/llvm/include/llvm/ExecutionEngine/Orc/ExecutionUtils.h 
b/llvm/include/llvm/ExecutionEngine/Orc/ExecutionUtils.h
index 741dcc236b300e..593f7a41337cb9 100644
--- a/llvm/include/llvm/ExecutionEngine/Orc/ExecutionUtils.h
+++ b/llvm/include/llvm/ExecutionEngine/Orc/ExecutionUtils.h
@@ -315,7 +315,7 @@ class StaticLibraryDefinitionGenerator : public 
DefinitionGenerator {
 
   /// Returns a list of filenames of dynamic libraries that this archive has
   /// imported. This class does not load these libraries by itself. User is
-  /// responsible for making sure these libraries are avaliable to the 
JITDylib.
+  /// responsible for making sure these libraries are available to the 
JITDylib.
   const std::set &get

[clang-tools-extra] [llvm] [mlir] [llvm] Fix typos: replace “avaliable” with “available” across various files (PR #114524)

2024-11-01 Thread Wang Qiang via cfe-commits

https://github.com/ReVe1uv edited 
https://github.com/llvm/llvm-project/pull/114524
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits