diff --git a/clang-tools-extra/clang-tidy/abseil/DurationRewriter.cpp b/clang-tools-extra/clang-tidy/abseil/DurationRewriter.cpp --- a/clang-tools-extra/clang-tidy/abseil/DurationRewriter.cpp +++ b/clang-tools-extra/clang-tidy/abseil/DurationRewriter.cpp @@ -273,7 +273,7 @@ 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 MaybeRewrite = rewriteInverseDurationCall(Result, Scale, RootNode)) return *MaybeRewrite; @@ -291,7 +291,7 @@ 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 MaybeRewrite = rewriteInverseTimeCall(Result, Scale, RootNode)) return *MaybeRewrite; diff --git a/clang/lib/StaticAnalyzer/Core/TextDiagnostics.cpp b/clang/lib/StaticAnalyzer/Core/TextDiagnostics.cpp --- a/clang/lib/StaticAnalyzer/Core/TextDiagnostics.cpp +++ b/clang/lib/StaticAnalyzer/Core/TextDiagnostics.cpp @@ -31,8 +31,8 @@ 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 --- 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 -// 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 --- a/llvm/docs/AMDGPUDwarfExtensionsForHeterogeneousDebugging.rst +++ b/llvm/docs/AMDGPUDwarfExtensionsForHeterogeneousDebugging.rst @@ -222,7 +222,7 @@ 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 --- a/llvm/lib/CodeGen/CodeGenPrepare.cpp +++ b/llvm/lib/CodeGen/CodeGenPrepare.cpp @@ -4023,11 +4023,11 @@ auto IVInc = getIVIncrement(PN, &LI); if (!IVInc) return None; - // 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(IVInc->first)) if (OIVInc->hasNoSignedWrap() || OIVInc->hasNoUnsignedWrap()) diff --git a/llvm/lib/CodeGen/SplitKit.h b/llvm/lib/CodeGen/SplitKit.h --- a/llvm/lib/CodeGen/SplitKit.h +++ b/llvm/lib/CodeGen/SplitKit.h @@ -487,7 +487,7 @@ /// 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 --- 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 --- a/mlir/include/mlir/Dialect/Shape/IR/ShapeOps.td +++ b/mlir/include/mlir/Dialect/Shape/IR/ShapeOps.td @@ -690,7 +690,7 @@ %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);