From a031d73f8b5d2f6ea708f00ebd0676b21d0738f6 Mon Sep 17 00:00:00 2001 From: Craig Topper Date: Tue, 11 Apr 2017 18:47:58 +0000 Subject: [PATCH] Fix spelling compliment->complement. Mostly refering to 2s complement. NFC git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@299970 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/Transforms/IPO/FunctionAttrs.h | 2 +- lib/Target/AVR/AVRInstrInfo.td | 4 ++-- lib/Target/AVR/MCTargetDesc/AVRMCCodeEmitter.h | 2 +- lib/Target/NVPTX/NVPTXInstrInfo.td | 2 +- lib/Transforms/InstCombine/InstCombineAddSub.cpp | 4 ++-- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/include/llvm/Transforms/IPO/FunctionAttrs.h b/include/llvm/Transforms/IPO/FunctionAttrs.h index 0c7713ab32f..85d6364c8bb 100644 --- a/include/llvm/Transforms/IPO/FunctionAttrs.h +++ b/include/llvm/Transforms/IPO/FunctionAttrs.h @@ -56,7 +56,7 @@ Pass *createPostOrderFunctionAttrsLegacyPass(); /// This pass provides a general RPO or "top down" propagation of /// function attributes. For a few (rare) cases, we can deduce significantly /// more about function attributes by working in RPO, so this pass -/// provides the compliment to the post-order pass above where the majority of +/// provides the complement to the post-order pass above where the majority of /// deduction is performed. // FIXME: Currently there is no RPO CGSCC pass structure to slide into and so // this is a boring module pass, but eventually it should be an RPO CGSCC pass diff --git a/lib/Target/AVR/AVRInstrInfo.td b/lib/Target/AVR/AVRInstrInfo.td index bc66379ab70..693d80a1c06 100644 --- a/lib/Target/AVR/AVRInstrInfo.td +++ b/lib/Target/AVR/AVRInstrInfo.td @@ -694,7 +694,7 @@ Defs = [SREG] in } //===----------------------------------------------------------------------===// -// One's/Two's Compliment +// One's/Two's Complement //===----------------------------------------------------------------------===// let Constraints = "$src = $rd", Defs = [SREG] in @@ -1718,7 +1718,7 @@ Defs = [SREG] in (implicit SREG)]>; // CBR Rd, K - // Alias for `ANDI Rd, COM(K)` where COM(K) is the compliment of K. + // Alias for `ANDI Rd, COM(K)` where COM(K) is the complement of K. // FIXME: This uses the 'complement' encoder. We need it to also use the // imm_ldi8 encoder. This will cause no fixups to be created on this instruction. def CBRRdK : FRdK<0b0111, diff --git a/lib/Target/AVR/MCTargetDesc/AVRMCCodeEmitter.h b/lib/Target/AVR/MCTargetDesc/AVRMCCodeEmitter.h index 5fa425c296a..4cee8d904c9 100644 --- a/lib/Target/AVR/MCTargetDesc/AVRMCCodeEmitter.h +++ b/lib/Target/AVR/MCTargetDesc/AVRMCCodeEmitter.h @@ -63,7 +63,7 @@ private: SmallVectorImpl &Fixups, const MCSubtargetInfo &STI) const; - /// Takes the compliment of a number (~0 - val). + /// Takes the complement of a number (~0 - val). unsigned encodeComplement(const MCInst &MI, unsigned OpNo, SmallVectorImpl &Fixups, const MCSubtargetInfo &STI) const; diff --git a/lib/Target/NVPTX/NVPTXInstrInfo.td b/lib/Target/NVPTX/NVPTXInstrInfo.td index 4f2bd61a279..2b847414b8a 100644 --- a/lib/Target/NVPTX/NVPTXInstrInfo.td +++ b/lib/Target/NVPTX/NVPTXInstrInfo.td @@ -517,7 +517,7 @@ multiclass ADD_SUB_i1 { defm ADD_i1 : ADD_SUB_i1; defm SUB_i1 : ADD_SUB_i1; -// int16, int32, and int64 signed addition. Since nvptx is 2's compliment, we +// int16, int32, and int64 signed addition. Since nvptx is 2's complement, we // also use these for unsigned arithmetic. defm ADD : I3<"add.s", add>; defm SUB : I3<"sub.s", sub>; diff --git a/lib/Transforms/InstCombine/InstCombineAddSub.cpp b/lib/Transforms/InstCombine/InstCombineAddSub.cpp index f821bf75e44..1077121f8cb 100644 --- a/lib/Transforms/InstCombine/InstCombineAddSub.cpp +++ b/lib/Transforms/InstCombine/InstCombineAddSub.cpp @@ -902,7 +902,7 @@ bool InstCombiner::WillNotOverflowSignedAdd(Value *LHS, Value *RHS, APInt RHSKnownOne(BitWidth, 0); computeKnownBits(RHS, RHSKnownZero, RHSKnownOne, 0, &CxtI); - // Addition of two 2's compliment numbers having opposite signs will never + // Addition of two 2's complement numbers having opposite signs will never // overflow. if ((LHSKnownOne[BitWidth - 1] && RHSKnownZero[BitWidth - 1]) || (LHSKnownZero[BitWidth - 1] && RHSKnownOne[BitWidth - 1])) @@ -939,7 +939,7 @@ bool InstCombiner::WillNotOverflowSignedSub(Value *LHS, Value *RHS, APInt RHSKnownOne(BitWidth, 0); computeKnownBits(RHS, RHSKnownZero, RHSKnownOne, 0, &CxtI); - // Subtraction of two 2's compliment numbers having identical signs will + // Subtraction of two 2's complement numbers having identical signs will // never overflow. if ((LHSKnownOne[BitWidth - 1] && RHSKnownOne[BitWidth - 1]) || (LHSKnownZero[BitWidth - 1] && RHSKnownZero[BitWidth - 1])) -- 2.40.0