[llvm] 21ac474 - [NFC] Correct typo `interger` to `integer`
Shao-Ce SUN via llvm-commits
llvm-commits at lists.llvm.org
Thu Feb 17 05:17:57 PST 2022
Author: Shao-Ce SUN
Date: 2022-02-17T21:17:47+08:00
New Revision: 21ac47439218e6222a48c451a0d4d86d5e8f02b7
URL: https://github.com/llvm/llvm-project/commit/21ac47439218e6222a48c451a0d4d86d5e8f02b7
DIFF: https://github.com/llvm/llvm-project/commit/21ac47439218e6222a48c451a0d4d86d5e8f02b7.diff
LOG: [NFC] Correct typo `interger` to `integer`
Added:
Modified:
flang/lib/Optimizer/Support/KindMapping.cpp
llvm/lib/Target/PowerPC/PPCISelLowering.h
llvm/test/Transforms/SLPVectorizer/X86/fabs-cost-softfp.ll
mlir/test/Integration/Dialect/SparseTensor/python/tools/np_to_sparse_tensor.py
mlir/test/Integration/Dialect/SparseTensor/taco/tools/mlir_pytaco.py
mlir/test/Integration/Dialect/SparseTensor/taco/tools/mlir_pytaco_utils.py
Removed:
################################################################################
diff --git a/flang/lib/Optimizer/Support/KindMapping.cpp b/flang/lib/Optimizer/Support/KindMapping.cpp
index d22a438e3b812..4535863abf8e4 100644
--- a/flang/lib/Optimizer/Support/KindMapping.cpp
+++ b/flang/lib/Optimizer/Support/KindMapping.cpp
@@ -87,7 +87,7 @@ static RT doLookup(std::function<RT(KindTy)> def,
return def(kind);
}
-// do a lookup for INTERGER, LOGICAL, or CHARACTER
+// do a lookup for integer, LOGICAL, or CHARACTER
template <char KEY, typename MAP>
static Bitsize getIntegerLikeBitsize(KindTy kind, const MAP &map) {
return doLookup<Bitsize, KEY>(defaultScalingKind, map, kind);
diff --git a/llvm/lib/Target/PowerPC/PPCISelLowering.h b/llvm/lib/Target/PowerPC/PPCISelLowering.h
index 4131fa498259d..826d26ce85631 100644
--- a/llvm/lib/Target/PowerPC/PPCISelLowering.h
+++ b/llvm/lib/Target/PowerPC/PPCISelLowering.h
@@ -77,7 +77,7 @@ namespace llvm {
FCTIDUZ,
FCTIWUZ,
- /// Floating-point-to-interger conversion instructions
+ /// Floating-point-to-integer conversion instructions
FP_TO_UINT_IN_VSR,
FP_TO_SINT_IN_VSR,
diff --git a/llvm/test/Transforms/SLPVectorizer/X86/fabs-cost-softfp.ll b/llvm/test/Transforms/SLPVectorizer/X86/fabs-cost-softfp.ll
index 9eb3c0d761c8a..36bb5c88adef0 100644
--- a/llvm/test/Transforms/SLPVectorizer/X86/fabs-cost-softfp.ll
+++ b/llvm/test/Transforms/SLPVectorizer/X86/fabs-cost-softfp.ll
@@ -1,7 +1,7 @@
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
; Regression test from https://bugs.llvm.org/show_bug.cgi?id=39168
; Based on code from `compiler-rt/lib/builtins/multc3.c`
-; On plaforms where fp128 lowers to an interger type (soft-fp) we
+; On plaforms where fp128 lowers to an integer type (soft-fp) we
; shouldn't be calling isFAbsFree() on the legalized type.
; RUN: opt -slp-vectorizer -slp-threshold=-10 -S %s | FileCheck %s
diff --git a/mlir/test/Integration/Dialect/SparseTensor/python/tools/np_to_sparse_tensor.py b/mlir/test/Integration/Dialect/SparseTensor/python/tools/np_to_sparse_tensor.py
index cfed5a89c9ae4..d238e6fdb79b4 100644
--- a/mlir/test/Integration/Dialect/SparseTensor/python/tools/np_to_sparse_tensor.py
+++ b/mlir/test/Integration/Dialect/SparseTensor/python/tools/np_to_sparse_tensor.py
@@ -47,7 +47,7 @@ def sparse_tensor_to_coo_tensor(support_lib, sparse, dtype):
Returns:
A tuple that contains the following values:
rank: An integer for the rank of the tensor.
- nse: An interger for the number of non-zero values in the tensor.
+ nse: An integer for the number of non-zero values in the tensor.
shape: A 1D numpy array of integers, for the shape of the tensor.
values: A 1D numpy array, for the non-zero values in the tensor.
indices: A 2D numpy array of integers, representing the indices for the
diff --git a/mlir/test/Integration/Dialect/SparseTensor/taco/tools/mlir_pytaco.py b/mlir/test/Integration/Dialect/SparseTensor/taco/tools/mlir_pytaco.py
index 69dedf39c68cf..c44a84e25a25d 100644
--- a/mlir/test/Integration/Dialect/SparseTensor/taco/tools/mlir_pytaco.py
+++ b/mlir/test/Integration/Dialect/SparseTensor/taco/tools/mlir_pytaco.py
@@ -379,7 +379,7 @@ def get_index_vars(n: int) -> List[IndexVar]:
This routine is defined by the TACO API.
Args:
- n: An interger representing the number of IndexVar to get.
+ n: An integer representing the number of IndexVar to get.
Returns:
A list of IndexVar.
diff --git a/mlir/test/Integration/Dialect/SparseTensor/taco/tools/mlir_pytaco_utils.py b/mlir/test/Integration/Dialect/SparseTensor/taco/tools/mlir_pytaco_utils.py
index 25221f32fff99..62cd6baff6388 100644
--- a/mlir/test/Integration/Dialect/SparseTensor/taco/tools/mlir_pytaco_utils.py
+++ b/mlir/test/Integration/Dialect/SparseTensor/taco/tools/mlir_pytaco_utils.py
@@ -83,7 +83,7 @@ def sparse_tensor_to_coo_tensor(
A tuple that contains the following values for the COO-flavored format
tensor:
rank: An integer for the rank of the tensor.
- nse: An interger for the number of non-zero values in the tensor.
+ nse: An integer for the number of non-zero values in the tensor.
shape: A 1D numpy array of integers, for the shape of the tensor.
values: A 1D numpy array, for the non-zero values in the tensor.
indices: A 2D numpy array of integers, representing the indices for the
More information about the llvm-commits
mailing list