Skip to content

Commit 91ce36c

Browse files
committed
Revert 'Fix a typo 'iff' => 'if''. iff is an abreviation of if and only if. See: http://en.wikipedia.org/wiki/If_and_only_if Commit 164767
llvm-svn: 164768
1 parent 721cffd commit 91ce36c

File tree

84 files changed

+295
-295
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

84 files changed

+295
-295
lines changed

llvm/autoconf/m4/libtool.m4

+1-1
Original file line numberDiff line numberDiff line change
@@ -6082,7 +6082,7 @@ _LT_EOF
60826082
*)
60836083
# The compiler driver will combine linker options so we
60846084
# cannot just pass the convience library names through
6085-
# without $wl, if we do not link with $LD.
6085+
# without $wl, iff we do not link with $LD.
60866086
# Luckily, gcc supports the same syntax we need for Sun Studio.
60876087
# Supported since Solaris 2.6 (maybe 2.5.1?)
60886088
case $wlarc in

llvm/include/llvm/ADT/APFloat.h

+4-4
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ namespace llvm {
200200

201201
/// getNaN - Factory for QNaN values.
202202
///
203-
/// \param Negative - True if the NaN generated should be negative.
203+
/// \param Negative - True iff the NaN generated should be negative.
204204
/// \param type - The unspecified fill bits for creating the NaN, 0 by
205205
/// default. The value is truncated as necessary.
206206
static APFloat getNaN(const fltSemantics &Sem, bool Negative = false,
@@ -230,20 +230,20 @@ namespace llvm {
230230
/// getLargest - Returns the largest finite number in the given
231231
/// semantics.
232232
///
233-
/// \param Negative - True if the number should be negative
233+
/// \param Negative - True iff the number should be negative
234234
static APFloat getLargest(const fltSemantics &Sem, bool Negative = false);
235235

236236
/// getSmallest - Returns the smallest (by magnitude) finite number
237237
/// in the given semantics. Might be denormalized, which implies a
238238
/// relative loss of precision.
239239
///
240-
/// \param Negative - True if the number should be negative
240+
/// \param Negative - True iff the number should be negative
241241
static APFloat getSmallest(const fltSemantics &Sem, bool Negative = false);
242242

243243
/// getSmallestNormalized - Returns the smallest (by magnitude)
244244
/// normalized finite number in the given semantics.
245245
///
246-
/// \param Negative - True if the number should be negative
246+
/// \param Negative - True iff the number should be negative
247247
static APFloat getSmallestNormalized(const fltSemantics &Sem,
248248
bool Negative = false);
249249

llvm/include/llvm/ADT/SetVector.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ class SetVector {
9696
return vector_[n];
9797
}
9898

99-
/// @returns true if the element was inserted into the SetVector.
99+
/// @returns true iff the element was inserted into the SetVector.
100100
/// @brief Insert a new element into the SetVector.
101101
bool insert(const value_type &X) {
102102
bool result = set_.insert(X);

llvm/include/llvm/ADT/SparseBitVector.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -763,7 +763,7 @@ class SparseBitVector {
763763
return false;
764764
}
765765

766-
// Return true if all bits set in this SparseBitVector are
766+
// Return true iff all bits set in this SparseBitVector are
767767
// also set in RHS.
768768
bool contains(const SparseBitVector<ElementSize> &RHS) const {
769769
SparseBitVector<ElementSize> Result(*this);

llvm/include/llvm/Analysis/Dominators.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@ class DominatorTreeBase : public DominatorBase<NodeT> {
346346
DomTreeNodeBase<NodeT> *getRootNode() { return RootNode; }
347347
const DomTreeNodeBase<NodeT> *getRootNode() const { return RootNode; }
348348

349-
/// properlyDominates - Returns true if this dominates N and this != N.
349+
/// properlyDominates - Returns true iff this dominates N and this != N.
350350
/// Note that this is not a constant time operation!
351351
///
352352
bool properlyDominates(const DomTreeNodeBase<NodeT> *A,
@@ -372,7 +372,7 @@ class DominatorTreeBase : public DominatorBase<NodeT> {
372372
return A;
373373
}
374374

375-
/// dominates - Returns true if A dominates B. Note that this is not a
375+
/// dominates - Returns true iff A dominates B. Note that this is not a
376376
/// constant time operation!
377377
///
378378
inline bool dominates(const DomTreeNodeBase<NodeT> *A,

llvm/include/llvm/Analysis/LibCallSemantics.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ namespace llvm {
3131
/// pointer is the result of a call to "__error()".
3232
///
3333
/// Locations can also be defined in a constant-sensitive way. For example,
34-
/// it is possible to define a location that returns true if it is passed
34+
/// it is possible to define a location that returns true iff it is passed
3535
/// into the call as a specific argument. This is useful for modeling things
3636
/// like "printf", which can store to memory, but only through pointers passed
3737
/// with a '%n' constraint.

llvm/include/llvm/Analysis/ScalarEvolution.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -831,7 +831,7 @@ namespace llvm {
831831
const SCEV *LHS, const SCEV *RHS);
832832

833833
/// SimplifyICmpOperands - Simplify LHS and RHS in a comparison with
834-
/// predicate Pred. Return true if any changes were made. If the
834+
/// predicate Pred. Return true iff any changes were made. If the
835835
/// operands are provably equal or inequal, LHS and RHS are set to
836836
/// the same value and Pred is set to either ICMP_EQ or ICMP_NE.
837837
///

llvm/include/llvm/Analysis/ScalarEvolutionExpressions.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ namespace llvm {
318318
/// an expressions A+B*x where A and B are loop invariant values.
319319
bool isAffine() const {
320320
// We know that the start value is invariant. This expression is thus
321-
// affine if the step is also invariant.
321+
// affine iff the step is also invariant.
322322
return getNumOperands() == 2;
323323
}
324324

llvm/include/llvm/Bitcode/Archive.h

+7-7
Original file line numberDiff line numberDiff line change
@@ -108,27 +108,27 @@ class ArchiveMember : public ilist_node<ArchiveMember> {
108108
/// @brief Get the data content of the archive member
109109
const char* getData() const { return data; }
110110

111-
/// @returns true if the member is a SVR4 (non-LLVM) symbol table
111+
/// @returns true iff the member is a SVR4 (non-LLVM) symbol table
112112
/// @brief Determine if this member is a SVR4 symbol table.
113113
bool isSVR4SymbolTable() const { return flags&SVR4SymbolTableFlag; }
114114

115-
/// @returns true if the member is a BSD4.4 (non-LLVM) symbol table
115+
/// @returns true iff the member is a BSD4.4 (non-LLVM) symbol table
116116
/// @brief Determine if this member is a BSD4.4 symbol table.
117117
bool isBSD4SymbolTable() const { return flags&BSD4SymbolTableFlag; }
118118

119-
/// @returns true if the archive member is the LLVM symbol table
119+
/// @returns true iff the archive member is the LLVM symbol table
120120
/// @brief Determine if this member is the LLVM symbol table.
121121
bool isLLVMSymbolTable() const { return flags&LLVMSymbolTableFlag; }
122122

123-
/// @returns true if the archive member is the ar(1) string table
123+
/// @returns true iff the archive member is the ar(1) string table
124124
/// @brief Determine if this member is the ar(1) string table.
125125
bool isStringTable() const { return flags&StringTableFlag; }
126126

127-
/// @returns true if the archive member is a bitcode file.
127+
/// @returns true iff the archive member is a bitcode file.
128128
/// @brief Determine if this member is a bitcode file.
129129
bool isBitcode() const { return flags&BitcodeFlag; }
130130

131-
/// @returns true if the file name contains a path (directory) component.
131+
/// @returns true iff the file name contains a path (directory) component.
132132
/// @brief Determine if the member has a path
133133
bool hasPath() const { return flags&HasPathFlag; }
134134

@@ -137,7 +137,7 @@ class ArchiveMember : public ilist_node<ArchiveMember> {
137137
/// separator character (/). To avoid this, a "long format" member name is
138138
/// allowed that doesn't have this restriction. This method determines if
139139
/// that "long format" is used for this member.
140-
/// @returns true if the file name uses the long form
140+
/// @returns true iff the file name uses the long form
141141
/// @brief Determine if the member has a long file name
142142
bool hasLongFilename() const { return flags&HasLongFilenameFlag; }
143143

llvm/include/llvm/CodeGen/FunctionLoweringInfo.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ class FunctionLoweringInfo {
5858
MachineFunction *MF;
5959
MachineRegisterInfo *RegInfo;
6060
BranchProbabilityInfo *BPI;
61-
/// CanLowerReturn - true if the function's return value can be lowered to
61+
/// CanLowerReturn - true iff the function's return value can be lowered to
6262
/// registers.
6363
bool CanLowerReturn;
6464

llvm/include/llvm/CodeGen/ISDOpcodes.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ namespace ISD {
340340
/// condition code in op #4, a CondCodeSDNode.
341341
SELECT_CC,
342342

343-
/// SetCC operator - This evaluates to a true value if the condition is
343+
/// SetCC operator - This evaluates to a true value iff the condition is
344344
/// true. If the result value type is not i1 then the high bits conform
345345
/// to getBooleanContents. The operands to this are the left and right
346346
/// operands to compare (ops #0, and #1) and the condition code to compare

llvm/include/llvm/CodeGen/MachineBranchProbabilityInfo.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -69,15 +69,15 @@ class MachineBranchProbabilityInfo : public ImmutablePass {
6969

7070
// Return a probability as a fraction between 0 (0% probability) and
7171
// 1 (100% probability), however the value is never equal to 0, and can be 1
72-
// only if SRC block has only one successor.
72+
// only iff SRC block has only one successor.
7373
// NB: This routine's complexity is linear on the number of successors of
7474
// Src. Querying sequentially for each successor's probability is a quadratic
7575
// query pattern.
7676
BranchProbability getEdgeProbability(MachineBasicBlock *Src,
7777
MachineBasicBlock *Dst) const;
7878

7979
// Print value between 0 (0% probability) and 1 (100% probability),
80-
// however the value is never equal to 0, and can be 1 only if SRC block
80+
// however the value is never equal to 0, and can be 1 only iff SRC block
8181
// has only one successor.
8282
raw_ostream &printEdgeProbability(raw_ostream &OS, MachineBasicBlock *Src,
8383
MachineBasicBlock *Dst) const;

llvm/include/llvm/CodeGen/SelectionDAG.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -1021,7 +1021,7 @@ class SelectionDAG {
10211021
/// ISD::ADD with a ConstantSDNode on the right-hand side, or if it is an
10221022
/// ISD::OR with a ConstantSDNode that is guaranteed to have the same
10231023
/// semantics as an ADD. This handles the equivalence:
1024-
/// X|Cst == X+Cst if X&Cst = 0.
1024+
/// X|Cst == X+Cst iff X&Cst = 0.
10251025
bool isBaseWithConstantOffset(SDValue Op) const;
10261026

10271027
/// isKnownNeverNan - Test whether the given SDValue is known to never be NaN.

llvm/include/llvm/Constants.h

+7-7
Original file line numberDiff line numberDiff line change
@@ -170,17 +170,17 @@ class ConstantInt : public Constant {
170170
return Val == 1;
171171
}
172172

173-
/// This function will return true if every bit in this constant is set
173+
/// This function will return true iff every bit in this constant is set
174174
/// to true.
175-
/// @returns true if this constant's bits are all set to true.
175+
/// @returns true iff this constant's bits are all set to true.
176176
/// @brief Determine if the value is all ones.
177177
bool isMinusOne() const {
178178
return Val.isAllOnesValue();
179179
}
180180

181-
/// This function will return true if this constant represents the largest
181+
/// This function will return true iff this constant represents the largest
182182
/// value that may be represented by the constant's type.
183-
/// @returns true if this is the largest value that may be represented
183+
/// @returns true iff this is the largest value that may be represented
184184
/// by this type.
185185
/// @brief Determine if the value is maximal.
186186
bool isMaxValue(bool isSigned) const {
@@ -190,7 +190,7 @@ class ConstantInt : public Constant {
190190
return Val.isMaxValue();
191191
}
192192

193-
/// This function will return true if this constant represents the smallest
193+
/// This function will return true iff this constant represents the smallest
194194
/// value that may be represented by this constant's type.
195195
/// @returns true if this is the smallest value that may be represented by
196196
/// this type.
@@ -202,10 +202,10 @@ class ConstantInt : public Constant {
202202
return Val.isMinValue();
203203
}
204204

205-
/// This function will return true if this constant represents a value with
205+
/// This function will return true iff this constant represents a value with
206206
/// active bits bigger than 64 bits or a value greater than the given uint64_t
207207
/// value.
208-
/// @returns true if this constant is greater or equal to the given number.
208+
/// @returns true iff this constant is greater or equal to the given number.
209209
/// @brief Determine if the value is greater or equal to the given number.
210210
bool uge(uint64_t Num) const {
211211
return Val.getActiveBits() > 64 || Val.getZExtValue() >= Num;

llvm/include/llvm/InstrTypes.h

+3-3
Original file line numberDiff line numberDiff line change
@@ -547,14 +547,14 @@ class CastInst : public UnaryInstruction {
547547
/// There are several places where we need to know if a cast instruction
548548
/// only deals with integer source and destination types. To simplify that
549549
/// logic, this method is provided.
550-
/// @returns true if the cast has only integral typed operand and dest type.
550+
/// @returns true iff the cast has only integral typed operand and dest type.
551551
/// @brief Determine if this is an integer-only cast.
552552
bool isIntegerCast() const;
553553

554554
/// A lossless cast is one that does not alter the basic value. It implies
555555
/// a no-op cast but is more stringent, preventing things like int->float,
556556
/// long->double, or int->ptr.
557-
/// @returns true if the cast is lossless.
557+
/// @returns true iff the cast is lossless.
558558
/// @brief Determine if this is a lossless cast.
559559
bool isLosslessCast() const;
560560

@@ -606,7 +606,7 @@ class CastInst : public UnaryInstruction {
606606

607607
/// This method can be used to determine if a cast from S to DstTy using
608608
/// Opcode op is valid or not.
609-
/// @returns true if the proposed cast is valid.
609+
/// @returns true iff the proposed cast is valid.
610610
/// @brief Determine if a cast is valid without creating one.
611611
static bool castIsValid(Instruction::CastOps op, Value *S, Type *DstTy);
612612

llvm/include/llvm/PassAnalysisSupport.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ class AnalysisUsage {
9494
void setPreservesAll() { PreservesAll = true; }
9595
bool getPreservesAll() const { return PreservesAll; }
9696

97-
/// setPreservesCFG - This function should be called by the pass, if they do
97+
/// setPreservesCFG - This function should be called by the pass, iff they do
9898
/// not:
9999
///
100100
/// 1. Add or remove basic blocks from the function

llvm/include/llvm/Support/PathV1.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ namespace sys {
232232
/// determine if the current value of \p this is a syntactically valid
233233
/// path name for the operating system. The path name does not need to
234234
/// exist, validity is simply syntactical. Empty paths are always invalid.
235-
/// @returns true if the path name is syntactically legal for the
235+
/// @returns true iff the path name is syntactically legal for the
236236
/// host operating system.
237237
/// @brief Determine if a path is syntactically valid or not.
238238
bool isValid() const;
@@ -242,7 +242,7 @@ namespace sys {
242242
/// if the file is empty. To get the length of the file itself, Use the
243243
/// PathWithStatus::getFileStatus() method and then the getSize() method
244244
/// on the returned FileStatus object.
245-
/// @returns true if the path is empty.
245+
/// @returns true iff the path is empty.
246246
/// @brief Determines if the path name is empty (invalid).
247247
bool isEmpty() const { return path.empty(); }
248248

llvm/include/llvm/Support/TimeValue.h

+6-6
Original file line numberDiff line numberDiff line change
@@ -130,12 +130,12 @@ namespace sys {
130130
}
131131

132132
/// Determine if \p this is less than \p that.
133-
/// @returns True if *this < that.
133+
/// @returns True iff *this < that.
134134
/// @brief True if this < that.
135135
int operator < (const TimeValue &that) const { return that > *this; }
136136

137137
/// Determine if \p this is greather than \p that.
138-
/// @returns True if *this > that.
138+
/// @returns True iff *this > that.
139139
/// @brief True if this > that.
140140
int operator > (const TimeValue &that) const {
141141
if ( this->seconds_ > that.seconds_ ) {
@@ -147,12 +147,12 @@ namespace sys {
147147
}
148148

149149
/// Determine if \p this is less than or equal to \p that.
150-
/// @returns True if *this <= that.
150+
/// @returns True iff *this <= that.
151151
/// @brief True if this <= that.
152152
int operator <= (const TimeValue &that) const { return that >= *this; }
153153

154154
/// Determine if \p this is greater than or equal to \p that.
155-
/// @returns True if *this >= that.
155+
/// @returns True iff *this >= that.
156156
int operator >= (const TimeValue &that) const {
157157
if ( this->seconds_ > that.seconds_ ) {
158158
return 1;
@@ -163,15 +163,15 @@ namespace sys {
163163
}
164164

165165
/// Determines if two TimeValue objects represent the same moment in time.
166-
/// @returns True if *this == that.
166+
/// @returns True iff *this == that.
167167
int operator == (const TimeValue &that) const {
168168
return (this->seconds_ == that.seconds_) &&
169169
(this->nanos_ == that.nanos_);
170170
}
171171

172172
/// Determines if two TimeValue objects represent times that are not the
173173
/// same.
174-
/// @returns True if *this != that.
174+
/// @returns True iff *this != that.
175175
int operator != (const TimeValue &that) const { return !(*this == that); }
176176

177177
/// Adds two TimeValue objects together.

llvm/include/llvm/Type.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,7 @@ class Type {
398398

399399
private:
400400
/// isSizedDerivedType - Derived types like structures and arrays are sized
401-
/// if all of the members of the type are sized as well. Since asking for
401+
/// iff all of the members of the type are sized as well. Since asking for
402402
/// their size is relatively uncommon, move this operation out of line.
403403
bool isSizedDerivedType() const;
404404
};

llvm/include/llvm/ValueSymbolTable.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ class ValueSymbolTable {
7070
/// @brief Lookup a named Value.
7171
Value *lookup(StringRef Name) const { return vmap.lookup(Name); }
7272

73-
/// @returns true if the symbol table is empty
73+
/// @returns true iff the symbol table is empty
7474
/// @brief Determine if the symbol table is empty
7575
inline bool empty() const { return vmap.empty(); }
7676

0 commit comments

Comments
 (0)