[llvm] 7850c94 - [NFC] sentinal -> sentinel
David Green via llvm-commits
llvm-commits at lists.llvm.org
Tue Jan 16 09:22:11 PST 2024
Author: David Green
Date: 2024-01-16T17:22:06Z
New Revision: 7850c94b86ac4889f4c792a487f4c0b0c5759a98
URL: https://github.com/llvm/llvm-project/commit/7850c94b86ac4889f4c792a487f4c0b0c5759a98
DIFF: https://github.com/llvm/llvm-project/commit/7850c94b86ac4889f4c792a487f4c0b0c5759a98.diff
LOG: [NFC] sentinal -> sentinel
Added:
Modified:
llvm/include/llvm/IR/Attributes.h
llvm/include/llvm/MC/MCSymbol.h
llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.h
llvm/lib/CodeGen/SlotIndexes.cpp
llvm/lib/ExecutionEngine/ExecutionEngine.cpp
llvm/lib/MC/MCFragment.cpp
llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
llvm/lib/Transforms/ObjCARC/DependencyAnalysis.cpp
llvm/lib/Transforms/Utils/BasicBlockUtils.cpp
Removed:
################################################################################
diff --git a/llvm/include/llvm/IR/Attributes.h b/llvm/include/llvm/IR/Attributes.h
index db33b540047168..a4ebe5d732f568 100644
--- a/llvm/include/llvm/IR/Attributes.h
+++ b/llvm/include/llvm/IR/Attributes.h
@@ -86,7 +86,7 @@ class Attribute {
None, ///< No attributes have been set
#define GET_ATTR_ENUM
#include "llvm/IR/Attributes.inc"
- EndAttrKinds, ///< Sentinal value useful for loops
+ EndAttrKinds, ///< Sentinel value useful for loops
EmptyKey, ///< Use as Empty key for DenseMap of AttrKind
TombstoneKey, ///< Use as Tombstone key for DenseMap of AttrKind
};
diff --git a/llvm/include/llvm/MC/MCSymbol.h b/llvm/include/llvm/MC/MCSymbol.h
index 7be31223280273..a53e53179e471b 100644
--- a/llvm/include/llvm/MC/MCSymbol.h
+++ b/llvm/include/llvm/MC/MCSymbol.h
@@ -61,7 +61,7 @@ class MCSymbol {
SymContentsTargetCommon, // Index stores the section index
};
- // Special sentinal value for the absolute pseudo fragment.
+ // Special sentinel value for the absolute pseudo fragment.
static MCFragment *AbsolutePseudoFragment;
/// If a symbol has a Fragment, the section is implied, so we only need
diff --git a/llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.h b/llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.h
index ccc284b6233105..6d77a6972f09b3 100644
--- a/llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.h
+++ b/llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.h
@@ -924,7 +924,7 @@ class MLocTracker {
LocIdx getRegMLoc(Register R) {
unsigned ID = getLocID(R);
assert(ID < LocIDToLocIdx.size());
- assert(LocIDToLocIdx[ID] != UINT_MAX); // Sentinal for IndexedMap.
+ assert(LocIDToLocIdx[ID] != UINT_MAX); // Sentinel for IndexedMap.
return LocIDToLocIdx[ID];
}
@@ -940,7 +940,7 @@ class MLocTracker {
// Get LocIdx of a spill ID.
LocIdx getSpillMLoc(unsigned SpillID) {
- assert(LocIDToLocIdx[SpillID] != UINT_MAX); // Sentinal for IndexedMap.
+ assert(LocIDToLocIdx[SpillID] != UINT_MAX); // Sentinel for IndexedMap.
return LocIDToLocIdx[SpillID];
}
diff --git a/llvm/lib/CodeGen/SlotIndexes.cpp b/llvm/lib/CodeGen/SlotIndexes.cpp
index 65726f06dedb47..8b80c6ccb43893 100644
--- a/llvm/lib/CodeGen/SlotIndexes.cpp
+++ b/llvm/lib/CodeGen/SlotIndexes.cpp
@@ -62,7 +62,7 @@ bool SlotIndexes::runOnMachineFunction(MachineFunction &fn) {
mf = &fn;
- // Check that the list contains only the sentinal.
+ // Check that the list contains only the sentinel.
assert(indexList.empty() && "Index list non-empty at initial numbering?");
assert(idx2MBBMap.empty() &&
"Index -> MBB mapping non-empty at initial numbering?");
diff --git a/llvm/lib/ExecutionEngine/ExecutionEngine.cpp b/llvm/lib/ExecutionEngine/ExecutionEngine.cpp
index 2559ed6a31a6c1..7abb9e9a6786b4 100644
--- a/llvm/lib/ExecutionEngine/ExecutionEngine.cpp
+++ b/llvm/lib/ExecutionEngine/ExecutionEngine.cpp
@@ -386,7 +386,7 @@ void ExecutionEngine::runStaticConstructorsDestructors(Module &module,
Constant *FP = CS->getOperand(1);
if (FP->isNullValue())
- continue; // Found a sentinal value, ignore.
+ continue; // Found a sentinel value, ignore.
// Strip off constant expression casts.
if (ConstantExpr *CE = dyn_cast<ConstantExpr>(FP))
diff --git a/llvm/lib/MC/MCFragment.cpp b/llvm/lib/MC/MCFragment.cpp
index 4e6459c5d6e459..a8da46dbd87279 100644
--- a/llvm/lib/MC/MCFragment.cpp
+++ b/llvm/lib/MC/MCFragment.cpp
@@ -264,7 +264,7 @@ MCFragment::MCFragment(FragmentType Kind, bool HasInstructions,
}
void MCFragment::destroy() {
- // First check if we are the sentinal.
+ // First check if we are the sentinel.
if (Kind == FragmentType(~0)) {
delete this;
return;
diff --git a/llvm/lib/Target/AArch64/AArch64ISelLowering.cpp b/llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
index 620872790ed8db..a3035bf78da27f 100644
--- a/llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
+++ b/llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
@@ -25430,7 +25430,7 @@ bool AArch64TargetLowering::shouldLocalize(
RematCost += AdditionalCost;
Register Reg = MI.getOperand(0).getReg();
unsigned MaxUses = maxUses(RematCost);
- // Don't pass UINT_MAX sentinal value to hasAtMostUserInstrs().
+ // Don't pass UINT_MAX sentinel value to hasAtMostUserInstrs().
if (MaxUses == std::numeric_limits<unsigned>::max())
--MaxUses;
return MRI.hasAtMostUserInstrs(Reg, MaxUses);
diff --git a/llvm/lib/Transforms/ObjCARC/DependencyAnalysis.cpp b/llvm/lib/Transforms/ObjCARC/DependencyAnalysis.cpp
index 0fea6bcc4882d6..7af9c39f82363e 100644
--- a/llvm/lib/Transforms/ObjCARC/DependencyAnalysis.cpp
+++ b/llvm/lib/Transforms/ObjCARC/DependencyAnalysis.cpp
@@ -242,7 +242,7 @@ static bool findDependencies(DependenceKind Flavor, const Value *Arg,
} while (!Worklist.empty());
// Determine whether the original StartBB post-dominates all of the blocks we
- // visited. If not, insert a sentinal indicating that most optimizations are
+ // visited. If not, insert a sentinel indicating that most optimizations are
// not safe.
for (const BasicBlock *BB : Visited) {
if (BB == StartBB)
diff --git a/llvm/lib/Transforms/Utils/BasicBlockUtils.cpp b/llvm/lib/Transforms/Utils/BasicBlockUtils.cpp
index 8b5a6d61841209..e019f76c8cacc3 100644
--- a/llvm/lib/Transforms/Utils/BasicBlockUtils.cpp
+++ b/llvm/lib/Transforms/Utils/BasicBlockUtils.cpp
@@ -536,7 +536,7 @@ static bool removeRedundantDbgInstrsUsingForwardScan(BasicBlock *BB) {
SmallVector<Value *, 4> Values(DVI->getValues());
if (VMI == VariableMap.end() || VMI->second.first != Values ||
VMI->second.second != DVI->getExpression()) {
- // Use a sentinal value (nullptr) for the DIExpression when we see a
+ // Use a sentinel value (nullptr) for the DIExpression when we see a
// linked dbg.assign so that the next debug intrinsic will never match
// it (i.e. always treat linked dbg.assigns as if they're unique).
if (IsDbgValueKind)
More information about the llvm-commits
mailing list