[Mlir-commits] [mlir] a9f9f3d - Correct typos (NFC)
Jacques Pienaar
llvmlistbot at llvm.org
Fri Dec 16 10:51:33 PST 2022
Author: Sprite
Date: 2022-12-16T10:51:26-08:00
New Revision: a9f9f3dff474b7bdb19129eaf625d3ef0084a975
URL: https://github.com/llvm/llvm-project/commit/a9f9f3dff474b7bdb19129eaf625d3ef0084a975
DIFF: https://github.com/llvm/llvm-project/commit/a9f9f3dff474b7bdb19129eaf625d3ef0084a975.diff
LOG: Correct typos (NFC)
Just found some typos while reading the llvm/circt project.
compliment -> complement
emitsd -> emits
Added:
Modified:
clang-tools-extra/clang-tidy/abseil/DurationRewriter.cpp
clang/lib/StaticAnalyzer/Core/TextDiagnostics.cpp
clang/test/CodeGen/X86/x86-GCC-inline-asm-Y-constraints.c
llvm/docs/AMDGPUDwarfExtensionsForHeterogeneousDebugging.rst
llvm/lib/CodeGen/CodeGenPrepare.cpp
llvm/lib/CodeGen/SplitKit.h
llvm/test/MC/X86/x86-GCC-inline-asm-Y-constraints.ll
mlir/include/mlir/Dialect/Shape/IR/ShapeOps.td
Removed:
################################################################################
diff --git a/clang-tools-extra/clang-tidy/abseil/DurationRewriter.cpp b/clang-tools-extra/clang-tidy/abseil/DurationRewriter.cpp
index ce012653941d4..43f8ed709651b 100644
--- a/clang-tools-extra/clang-tidy/abseil/DurationRewriter.cpp
+++ b/clang-tools-extra/clang-tidy/abseil/DurationRewriter.cpp
@@ -273,7 +273,7 @@ std::string rewriteExprFromNumberToDuration(
const Expr *Node) {
const Expr &RootNode = *Node->IgnoreParenImpCasts();
- // First check to see if we can undo a complimentary function call.
+ // First check to see if we can undo a complementary function call.
if (llvm::Optional<std::string> MaybeRewrite =
rewriteInverseDurationCall(Result, Scale, RootNode))
return *MaybeRewrite;
@@ -291,7 +291,7 @@ std::string rewriteExprFromNumberToTime(
const Expr *Node) {
const Expr &RootNode = *Node->IgnoreParenImpCasts();
- // First check to see if we can undo a complimentary function call.
+ // First check to see if we can undo a complementary function call.
if (llvm::Optional<std::string> MaybeRewrite =
rewriteInverseTimeCall(Result, Scale, RootNode))
return *MaybeRewrite;
diff --git a/clang/lib/StaticAnalyzer/Core/TextDiagnostics.cpp b/clang/lib/StaticAnalyzer/Core/TextDiagnostics.cpp
index bc1c3efaa8548..05f4d19ebda0e 100644
--- a/clang/lib/StaticAnalyzer/Core/TextDiagnostics.cpp
+++ b/clang/lib/StaticAnalyzer/Core/TextDiagnostics.cpp
@@ -31,8 +31,8 @@ using namespace ento;
using namespace tooling;
namespace {
-/// Emitsd minimal diagnostics (report message + notes) for the 'none' output
-/// type to the standard error, or to compliment many others. Emits detailed
+/// Emits minimal diagnostics (report message + notes) for the 'none' output
+/// type to the standard error, or to complement many others. Emits detailed
/// diagnostics in textual format for the 'text' output type.
class TextDiagnostics : public PathDiagnosticConsumer {
PathDiagnosticConsumerOptions DiagOpts;
diff --git a/clang/test/CodeGen/X86/x86-GCC-inline-asm-Y-constraints.c b/clang/test/CodeGen/X86/x86-GCC-inline-asm-Y-constraints.c
index 07bd045677db9..92313b00fa5dd 100644
--- a/clang/test/CodeGen/X86/x86-GCC-inline-asm-Y-constraints.c
+++ b/clang/test/CodeGen/X86/x86-GCC-inline-asm-Y-constraints.c
@@ -1,6 +1,6 @@
// RUN: %clang_cc1 -ffreestanding -triple=x86_64-apple-darwin -target-cpu skx %s -emit-llvm -o - | FileCheck %s
#include <xmmintrin.h>
-// This test is complimented by the .ll test under llvm/test/MC/X86/.
+// This test is complemented by the .ll test under llvm/test/MC/X86/.
// At this level we can only check if the constarints are passed correctly
// from inline asm to llvm IR.
diff --git a/llvm/docs/AMDGPUDwarfExtensionsForHeterogeneousDebugging.rst b/llvm/docs/AMDGPUDwarfExtensionsForHeterogeneousDebugging.rst
index a2501110b595d..882531473947f 100644
--- a/llvm/docs/AMDGPUDwarfExtensionsForHeterogeneousDebugging.rst
+++ b/llvm/docs/AMDGPUDwarfExtensionsForHeterogeneousDebugging.rst
@@ -222,7 +222,7 @@ evaluation error, than having to force an implementation to support potentially
infinite precision offsets to allow it to correctly track a series of positive
and negative offsets that may transiently overflow or underflow, but end up in
range. This is simple for the arithmetic operations as they are defined in terms
-of two's compliment arithmetic on a base type of a fixed size. Therefore, the
+of two's complement arithmetic on a base type of a fixed size. Therefore, the
offset operation define that integer overflow is ill-formed. This is in contrast
to the ``DW_OP_plus``, ``DW_OP_plus_uconst``, and ``DW_OP_minus`` arithmetic
operations which define that it causes wrap-around.
diff --git a/llvm/lib/CodeGen/CodeGenPrepare.cpp b/llvm/lib/CodeGen/CodeGenPrepare.cpp
index e6fea6f81c2ab..ab27fcbe2fd2b 100644
--- a/llvm/lib/CodeGen/CodeGenPrepare.cpp
+++ b/llvm/lib/CodeGen/CodeGenPrepare.cpp
@@ -4024,11 +4024,11 @@ bool AddressingModeMatcher::matchScaledValue(Value *ScaleReg, int64_t Scale,
auto IVInc = getIVIncrement(PN, &LI);
if (!IVInc)
return std::nullopt;
- // TODO: The result of the intrinsics above is two-compliment. However when
+ // TODO: The result of the intrinsics above is two-complement. However when
// IV inc is expressed as add or sub, iv.next is potentially a poison value.
// If it has nuw or nsw flags, we need to make sure that these flags are
// inferrable at the point of memory instruction. Otherwise we are replacing
- // well-defined two-compliment computation with poison. Currently, to avoid
+ // well-defined two-complement computation with poison. Currently, to avoid
// potentially complex analysis needed to prove this, we reject such cases.
if (auto *OIVInc = dyn_cast<OverflowingBinaryOperator>(IVInc->first))
if (OIVInc->hasNoSignedWrap() || OIVInc->hasNoUnsignedWrap())
diff --git a/llvm/lib/CodeGen/SplitKit.h b/llvm/lib/CodeGen/SplitKit.h
index aa6d83244a5fa..5a3428a5e91f9 100644
--- a/llvm/lib/CodeGen/SplitKit.h
+++ b/llvm/lib/CodeGen/SplitKit.h
@@ -487,7 +487,7 @@ class LLVM_LIBRARY_VISIBILITY SplitEditor {
/// overlapIntv - Indicate that all instructions in range should use the open
/// interval if End does not have tied-def usage of the register and in this
- /// case compliment interval is used. Let the complement interval be live.
+ /// case complement interval is used. Let the complement interval be live.
///
/// This doubles the register pressure, but is sometimes required to deal with
/// register uses after the last valid split point.
diff --git a/llvm/test/MC/X86/x86-GCC-inline-asm-Y-constraints.ll b/llvm/test/MC/X86/x86-GCC-inline-asm-Y-constraints.ll
index d0b88a04bd29a..990e2810d851e 100644
--- a/llvm/test/MC/X86/x86-GCC-inline-asm-Y-constraints.ll
+++ b/llvm/test/MC/X86/x86-GCC-inline-asm-Y-constraints.ll
@@ -1,5 +1,5 @@
; RUN: llc -mtriple=x86_64-apple-darwin -mcpu skx < %s | FileCheck %s
-; This test compliments the .c test under clang/test/CodeGen/. We check
+; This test complements the .c test under clang/test/CodeGen/. We check
; if the inline asm constraints are respected in the generated code.
; Function Attrs: nounwind
diff --git a/mlir/include/mlir/Dialect/Shape/IR/ShapeOps.td b/mlir/include/mlir/Dialect/Shape/IR/ShapeOps.td
index 97d1f0c228421..f2108719d9de1 100644
--- a/mlir/include/mlir/Dialect/Shape/IR/ShapeOps.td
+++ b/mlir/include/mlir/Dialect/Shape/IR/ShapeOps.td
@@ -690,7 +690,7 @@ def Shape_ValueAsShapeOp : Shape_Op<"value_as_shape", [Pure]> {
%shape' = shape.const_shape [1, 2] : !shape.shape
```
- This operation is the compliment of `shape_of` wrt ValueShape values.
+ This operation is the complement of `shape_of` wrt ValueShape values.
}];
let arguments = (ins AnyTypeOf<[1DTensorOf<[AnyInteger, Index]>, Shape_ValueShapeType]>:$arg);
More information about the Mlir-commits
mailing list