Skip to content

Commit 7850c94

Browse files
committed
[NFC] sentinal -> sentinel
1 parent 093206b commit 7850c94

File tree

9 files changed

+10
-10
lines changed

9 files changed

+10
-10
lines changed

llvm/include/llvm/IR/Attributes.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ class Attribute {
8686
None, ///< No attributes have been set
8787
#define GET_ATTR_ENUM
8888
#include "llvm/IR/Attributes.inc"
89-
EndAttrKinds, ///< Sentinal value useful for loops
89+
EndAttrKinds, ///< Sentinel value useful for loops
9090
EmptyKey, ///< Use as Empty key for DenseMap of AttrKind
9191
TombstoneKey, ///< Use as Tombstone key for DenseMap of AttrKind
9292
};

llvm/include/llvm/MC/MCSymbol.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ class MCSymbol {
6161
SymContentsTargetCommon, // Index stores the section index
6262
};
6363

64-
// Special sentinal value for the absolute pseudo fragment.
64+
// Special sentinel value for the absolute pseudo fragment.
6565
static MCFragment *AbsolutePseudoFragment;
6666

6767
/// If a symbol has a Fragment, the section is implied, so we only need

llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -924,7 +924,7 @@ class MLocTracker {
924924
LocIdx getRegMLoc(Register R) {
925925
unsigned ID = getLocID(R);
926926
assert(ID < LocIDToLocIdx.size());
927-
assert(LocIDToLocIdx[ID] != UINT_MAX); // Sentinal for IndexedMap.
927+
assert(LocIDToLocIdx[ID] != UINT_MAX); // Sentinel for IndexedMap.
928928
return LocIDToLocIdx[ID];
929929
}
930930

@@ -940,7 +940,7 @@ class MLocTracker {
940940

941941
// Get LocIdx of a spill ID.
942942
LocIdx getSpillMLoc(unsigned SpillID) {
943-
assert(LocIDToLocIdx[SpillID] != UINT_MAX); // Sentinal for IndexedMap.
943+
assert(LocIDToLocIdx[SpillID] != UINT_MAX); // Sentinel for IndexedMap.
944944
return LocIDToLocIdx[SpillID];
945945
}
946946

llvm/lib/CodeGen/SlotIndexes.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ bool SlotIndexes::runOnMachineFunction(MachineFunction &fn) {
6262

6363
mf = &fn;
6464

65-
// Check that the list contains only the sentinal.
65+
// Check that the list contains only the sentinel.
6666
assert(indexList.empty() && "Index list non-empty at initial numbering?");
6767
assert(idx2MBBMap.empty() &&
6868
"Index -> MBB mapping non-empty at initial numbering?");

llvm/lib/ExecutionEngine/ExecutionEngine.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,7 @@ void ExecutionEngine::runStaticConstructorsDestructors(Module &module,
386386

387387
Constant *FP = CS->getOperand(1);
388388
if (FP->isNullValue())
389-
continue; // Found a sentinal value, ignore.
389+
continue; // Found a sentinel value, ignore.
390390

391391
// Strip off constant expression casts.
392392
if (ConstantExpr *CE = dyn_cast<ConstantExpr>(FP))

llvm/lib/MC/MCFragment.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ MCFragment::MCFragment(FragmentType Kind, bool HasInstructions,
264264
}
265265

266266
void MCFragment::destroy() {
267-
// First check if we are the sentinal.
267+
// First check if we are the sentinel.
268268
if (Kind == FragmentType(~0)) {
269269
delete this;
270270
return;

llvm/lib/Target/AArch64/AArch64ISelLowering.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25430,7 +25430,7 @@ bool AArch64TargetLowering::shouldLocalize(
2543025430
RematCost += AdditionalCost;
2543125431
Register Reg = MI.getOperand(0).getReg();
2543225432
unsigned MaxUses = maxUses(RematCost);
25433-
// Don't pass UINT_MAX sentinal value to hasAtMostUserInstrs().
25433+
// Don't pass UINT_MAX sentinel value to hasAtMostUserInstrs().
2543425434
if (MaxUses == std::numeric_limits<unsigned>::max())
2543525435
--MaxUses;
2543625436
return MRI.hasAtMostUserInstrs(Reg, MaxUses);

llvm/lib/Transforms/ObjCARC/DependencyAnalysis.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ static bool findDependencies(DependenceKind Flavor, const Value *Arg,
242242
} while (!Worklist.empty());
243243

244244
// Determine whether the original StartBB post-dominates all of the blocks we
245-
// visited. If not, insert a sentinal indicating that most optimizations are
245+
// visited. If not, insert a sentinel indicating that most optimizations are
246246
// not safe.
247247
for (const BasicBlock *BB : Visited) {
248248
if (BB == StartBB)

llvm/lib/Transforms/Utils/BasicBlockUtils.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -536,7 +536,7 @@ static bool removeRedundantDbgInstrsUsingForwardScan(BasicBlock *BB) {
536536
SmallVector<Value *, 4> Values(DVI->getValues());
537537
if (VMI == VariableMap.end() || VMI->second.first != Values ||
538538
VMI->second.second != DVI->getExpression()) {
539-
// Use a sentinal value (nullptr) for the DIExpression when we see a
539+
// Use a sentinel value (nullptr) for the DIExpression when we see a
540540
// linked dbg.assign so that the next debug intrinsic will never match
541541
// it (i.e. always treat linked dbg.assigns as if they're unique).
542542
if (IsDbgValueKind)

0 commit comments

Comments
 (0)