Skip to content

[llvm][mlir][NFC] Fix typos in comments and test descriptions #139688

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 13, 2025

Conversation

ReVe1uv
Copy link
Contributor

@ReVe1uv ReVe1uv commented May 13, 2025

This patch fixes several typographical errors in comments and test files:

  1. Corrected "achive" to "archive" in archive-update.test.
  2. Fixed "achive" to "achieve" in a comment in XeGPUSubgroupDistribute.cpp.
  3. Corrected "achived" to "achieved" in a test note in SimpleSIVNoValidityCheckFixedSize.ll.

These changes are non-functional and intended to improve readability and documentation accuracy.

@llvmbot
Copy link
Member

llvmbot commented May 13, 2025

@llvm/pr-subscribers-llvm-analysis

@llvm/pr-subscribers-mlir

Author: Wang Qiang (ReVe1uv)

Changes

This patch fixes several typographical errors in comments and test files:

  1. Corrected "achive" to "achieve" in archive-update.test.
  2. Fixed "achive" to "achieve" in a comment in XeGPUSubgroupDistribute.cpp.
  3. Corrected "achived" to "achieved" in a test note in SimpleSIVNoValidityCheckFixedSize.ll.

These changes are non-functional and intended to improve readability and documentation accuracy.


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

3 Files Affected:

  • (modified) llvm/test/Analysis/DependenceAnalysis/SimpleSIVNoValidityCheckFixedSize.ll (+1-1)
  • (modified) llvm/test/Object/archive-update.test (+1-1)
  • (modified) mlir/lib/Dialect/XeGPU/Transforms/XeGPUSubgroupDistribute.cpp (+1-1)
diff --git a/llvm/test/Analysis/DependenceAnalysis/SimpleSIVNoValidityCheckFixedSize.ll b/llvm/test/Analysis/DependenceAnalysis/SimpleSIVNoValidityCheckFixedSize.ll
index c4948ebf9854b..2638bb045de3d 100644
--- a/llvm/test/Analysis/DependenceAnalysis/SimpleSIVNoValidityCheckFixedSize.ll
+++ b/llvm/test/Analysis/DependenceAnalysis/SimpleSIVNoValidityCheckFixedSize.ll
@@ -1,7 +1,7 @@
 ; NOTE: Assertions have been autogenerated by utils/update_analyze_test_checks.py UTC_ARGS: --version 5
 ; RUN: opt < %s -disable-output -passes="print<da>" 2>&1 | FileCheck %s
 
-; Note: exact results can be achived even if
+; Note: exact results can be achieved even if
 ; "-da-disable-delinearization-checks" is not used
 
 ;; #define N 1024
diff --git a/llvm/test/Object/archive-update.test b/llvm/test/Object/archive-update.test
index e152da5705c16..ffe81fd786175 100644
--- a/llvm/test/Object/archive-update.test
+++ b/llvm/test/Object/archive-update.test
@@ -17,7 +17,7 @@ RUN: touch -m -t 200001010000 %t/tmp.older/evenlen || sleep 2.1
 RUN: echo newer > %t/tmp.newer/evenlen
 RUN: touch %t/tmp.newer/evenlen
 
-Create an achive with the newest file
+Create an achieve with the newest file
 RUN: llvm-ar rU %t/tmp.a %t/tmp.newer/evenlen
 RUN: llvm-ar p %t/tmp.a | FileCheck --check-prefix=NEWER %s
 
diff --git a/mlir/lib/Dialect/XeGPU/Transforms/XeGPUSubgroupDistribute.cpp b/mlir/lib/Dialect/XeGPU/Transforms/XeGPUSubgroupDistribute.cpp
index acdbe7be1358b..992700524146a 100644
--- a/mlir/lib/Dialect/XeGPU/Transforms/XeGPUSubgroupDistribute.cpp
+++ b/mlir/lib/Dialect/XeGPU/Transforms/XeGPUSubgroupDistribute.cpp
@@ -835,7 +835,7 @@ LogicalResult LayoutAttrAssignment::run() {
 /// TODO: Implement the layout conflict resolution. This must ensure mainly two
 /// things:
 /// 1) Is a given layout supported by the op? (need to query the target
-///    HW info). Otherwise can we achive this layout using a layout conversion?
+///    HW info). Otherwise can we achieve this layout using a layout conversion?
 /// 2) Do all the operands have the required layout? If not, can it
 ///    be resolved using a layout conversion?
 LogicalResult LayoutAttrAssignment::resolveConflicts() { return success(); }

@llvmbot
Copy link
Member

llvmbot commented May 13, 2025

@llvm/pr-subscribers-llvm-binary-utilities

Author: Wang Qiang (ReVe1uv)

Changes

This patch fixes several typographical errors in comments and test files:

  1. Corrected "achive" to "achieve" in archive-update.test.
  2. Fixed "achive" to "achieve" in a comment in XeGPUSubgroupDistribute.cpp.
  3. Corrected "achived" to "achieved" in a test note in SimpleSIVNoValidityCheckFixedSize.ll.

These changes are non-functional and intended to improve readability and documentation accuracy.


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

3 Files Affected:

  • (modified) llvm/test/Analysis/DependenceAnalysis/SimpleSIVNoValidityCheckFixedSize.ll (+1-1)
  • (modified) llvm/test/Object/archive-update.test (+1-1)
  • (modified) mlir/lib/Dialect/XeGPU/Transforms/XeGPUSubgroupDistribute.cpp (+1-1)
diff --git a/llvm/test/Analysis/DependenceAnalysis/SimpleSIVNoValidityCheckFixedSize.ll b/llvm/test/Analysis/DependenceAnalysis/SimpleSIVNoValidityCheckFixedSize.ll
index c4948ebf9854b..2638bb045de3d 100644
--- a/llvm/test/Analysis/DependenceAnalysis/SimpleSIVNoValidityCheckFixedSize.ll
+++ b/llvm/test/Analysis/DependenceAnalysis/SimpleSIVNoValidityCheckFixedSize.ll
@@ -1,7 +1,7 @@
 ; NOTE: Assertions have been autogenerated by utils/update_analyze_test_checks.py UTC_ARGS: --version 5
 ; RUN: opt < %s -disable-output -passes="print<da>" 2>&1 | FileCheck %s
 
-; Note: exact results can be achived even if
+; Note: exact results can be achieved even if
 ; "-da-disable-delinearization-checks" is not used
 
 ;; #define N 1024
diff --git a/llvm/test/Object/archive-update.test b/llvm/test/Object/archive-update.test
index e152da5705c16..ffe81fd786175 100644
--- a/llvm/test/Object/archive-update.test
+++ b/llvm/test/Object/archive-update.test
@@ -17,7 +17,7 @@ RUN: touch -m -t 200001010000 %t/tmp.older/evenlen || sleep 2.1
 RUN: echo newer > %t/tmp.newer/evenlen
 RUN: touch %t/tmp.newer/evenlen
 
-Create an achive with the newest file
+Create an achieve with the newest file
 RUN: llvm-ar rU %t/tmp.a %t/tmp.newer/evenlen
 RUN: llvm-ar p %t/tmp.a | FileCheck --check-prefix=NEWER %s
 
diff --git a/mlir/lib/Dialect/XeGPU/Transforms/XeGPUSubgroupDistribute.cpp b/mlir/lib/Dialect/XeGPU/Transforms/XeGPUSubgroupDistribute.cpp
index acdbe7be1358b..992700524146a 100644
--- a/mlir/lib/Dialect/XeGPU/Transforms/XeGPUSubgroupDistribute.cpp
+++ b/mlir/lib/Dialect/XeGPU/Transforms/XeGPUSubgroupDistribute.cpp
@@ -835,7 +835,7 @@ LogicalResult LayoutAttrAssignment::run() {
 /// TODO: Implement the layout conflict resolution. This must ensure mainly two
 /// things:
 /// 1) Is a given layout supported by the op? (need to query the target
-///    HW info). Otherwise can we achive this layout using a layout conversion?
+///    HW info). Otherwise can we achieve this layout using a layout conversion?
 /// 2) Do all the operands have the required layout? If not, can it
 ///    be resolved using a layout conversion?
 LogicalResult LayoutAttrAssignment::resolveConflicts() { return success(); }

This patch fixes several typographical errors in comments and test files:

1.Corrected "achive" to "archive" in archive-update.test.
2.Fixed "achive" to "achieve" in a comment in XeGPUSubgroupDistribute.cpp.
3.Corrected "achived" to "achieved" in a test note in SimpleSIVNoValidityCheckFixedSize.ll.

These changes are non-functional and intended to improve readability and documentation accuracy.

Signed-off-by: Kane Wang <[email protected]>
Copy link
Collaborator

@jh7370 jh7370 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Do you need help merging?

@ReVe1uv
Copy link
Contributor Author

ReVe1uv commented May 13, 2025

LGTM. Do you need help merging?

Yes, that would be great. Thanks for offering to help with the merge!

@jh7370 jh7370 merged commit cece058 into llvm:main May 13, 2025
6 of 10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants