Skip to content

Commit

Permalink
[llvm-project] Fix typo "seperate" (#95373)
Browse files Browse the repository at this point in the history
  • Loading branch information
jayfoad authored Jun 13, 2024
1 parent cd94fa7 commit d4a0154
Show file tree
Hide file tree
Showing 64 changed files with 106 additions and 106 deletions.
10 changes: 5 additions & 5 deletions clang-tools-extra/clangd/TidyProvider.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -195,10 +195,10 @@ TidyProvider addTidyChecks(llvm::StringRef Checks,
}

TidyProvider disableUnusableChecks(llvm::ArrayRef<std::string> ExtraBadChecks) {
constexpr llvm::StringLiteral Seperator(",");
constexpr llvm::StringLiteral Separator(",");
static const std::string BadChecks = llvm::join_items(
Seperator,
// We want this list to start with a seperator to
Separator,
// We want this list to start with a separator to
// simplify appending in the lambda. So including an
// empty string here will force that.
"",
Expand Down Expand Up @@ -227,7 +227,7 @@ TidyProvider disableUnusableChecks(llvm::ArrayRef<std::string> ExtraBadChecks) {
for (const std::string &Str : ExtraBadChecks) {
if (Str.empty())
continue;
Size += Seperator.size();
Size += Separator.size();
if (LLVM_LIKELY(Str.front() != '-'))
++Size;
Size += Str.size();
Expand All @@ -238,7 +238,7 @@ TidyProvider disableUnusableChecks(llvm::ArrayRef<std::string> ExtraBadChecks) {
for (const std::string &Str : ExtraBadChecks) {
if (Str.empty())
continue;
DisableGlob += Seperator;
DisableGlob += Separator;
if (LLVM_LIKELY(Str.front() != '-'))
DisableGlob.push_back('-');
DisableGlob += Str;
Expand Down
2 changes: 1 addition & 1 deletion clang/include/clang/Frontend/FrontendOptions.h
Original file line number Diff line number Diff line change
Expand Up @@ -520,7 +520,7 @@ class FrontendOptions {
std::string ProductName;

// Currently this is only used as part of the `-extract-api` action.
// A comma seperated list of files providing a list of APIs to
// A comma separated list of files providing a list of APIs to
// ignore when extracting documentation.
std::vector<std::string> ExtractAPIIgnoresFileList;

Expand Down
2 changes: 1 addition & 1 deletion clang/include/clang/InstallAPI/DylibVerifier.h
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ class DylibVerifier : llvm::MachO::RecordVisitor {

// Check if an internal declaration in zippered library has an
// external declaration for a different platform. This results
// in the symbol being in a "seperate" platform slice.
// in the symbol being in a "separate" platform slice.
bool shouldIgnoreInternalZipperedSymbol(const Record *R,
const SymbolContext &SymCtx) const;

Expand Down
2 changes: 1 addition & 1 deletion clang/lib/InstallAPI/Visitor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ bool InstallAPIVisitor::VisitVarDecl(const VarDecl *D) {
if (isa<ParmVarDecl>(D))
return true;

// Skip variables in records. They are handled seperately for C++.
// Skip variables in records. They are handled separately for C++.
if (D->getDeclContext()->isRecord())
return true;

Expand Down
2 changes: 1 addition & 1 deletion clang/lib/Serialization/ASTWriterStmt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ namespace clang {
unsigned AbbrevToUse;

/// A helper that can help us to write a packed bit across function
/// calls. For example, we may write seperate bits in seperate functions:
/// calls. For example, we may write separate bits in separate functions:
///
/// void VisitA(A* a) {
/// Record.push_back(a->isSomething());
Expand Down
2 changes: 1 addition & 1 deletion compiler-rt/test/dfsan/custom.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2280,7 +2280,7 @@ void test_sscanf() {
// %n, %s, %d, %f, and %% already tested
}

// Tested by a seperate source file. This empty function is here to appease the
// Tested by a separate source file. This empty function is here to appease the
// check-wrappers script.
void test_fork() {}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// RUN: %clangxx -fPIC -c -o %t/main.o %S/Inputs/trivial-tls-main.cpp
// RUN: %clangxx -fPIC -c -o %t/pwr10.o %S/Inputs/trivial-tls-pwr10.cpp
// RUN: %llvm_jitlink %t/main.o %t/pwr10.o
// FIXME: We seperate pwr10 code from main object file due to currrent
// FIXME: We separate pwr10 code from main object file due to currrent
// implementation only supports one PLT stub for the same symbol.
// For example, `bl __tls_get_addr` in one object file has only one PLT stub,
// however we need another different PLT stub for `bl __tls_get_addr@notoc`
Expand Down
2 changes: 1 addition & 1 deletion flang/examples/FlangOmpReport/yaml_summarizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
Parameters:
-d --directory Specify which directory to scan. Multiple directories can be searched by
providing a semicolon seperated list of directories.
providing a semicolon separated list of directories.
-l --log Combine all yaml files into one log (instead of generating a summary)
Expand Down
10 changes: 5 additions & 5 deletions flang/lib/Semantics/check-omp-structure.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2781,7 +2781,7 @@ void OmpStructureChecker::CheckIsLoopIvPartOfClause(
}
}
}
// Following clauses have a seperate node in parse-tree.h.
// Following clauses have a separate node in parse-tree.h.
// Atomic-clause
CHECK_SIMPLE_PARSER_CLAUSE(OmpAtomicRead, OMPC_read)
CHECK_SIMPLE_PARSER_CLAUSE(OmpAtomicWrite, OMPC_write)
Expand Down Expand Up @@ -2887,18 +2887,18 @@ void OmpStructureChecker::CheckAllowedMapTypes(
const parser::OmpMapType::Type &type,
const std::list<parser::OmpMapType::Type> &allowedMapTypeList) {
if (!llvm::is_contained(allowedMapTypeList, type)) {
std::string commaSeperatedMapTypes;
std::string commaSeparatedMapTypes;
llvm::interleave(
allowedMapTypeList.begin(), allowedMapTypeList.end(),
[&](const parser::OmpMapType::Type &mapType) {
commaSeperatedMapTypes.append(parser::ToUpperCaseLetters(
commaSeparatedMapTypes.append(parser::ToUpperCaseLetters(
parser::OmpMapType::EnumToString(mapType)));
},
[&] { commaSeperatedMapTypes.append(", "); });
[&] { commaSeparatedMapTypes.append(", "); });
context_.Say(GetContext().clauseSource,
"Only the %s map types are permitted "
"for MAP clauses on the %s directive"_err_en_US,
commaSeperatedMapTypes, ContextDirectiveAsFortran());
commaSeparatedMapTypes, ContextDirectiveAsFortran());
}
}

Expand Down
2 changes: 1 addition & 1 deletion flang/test/Driver/mllvm_vs_mmlir.f90
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
! Verify that `-mllvm` options are forwarded to LLVM and `-mmlir` to MLIR.

! In practice, '-mmlir --help' is a super-set of '-mllvm --help' and that limits what we can test here. With a better seperation of
! In practice, '-mmlir --help' is a super-set of '-mllvm --help' and that limits what we can test here. With a better separation of
! LLVM, MLIR and Flang global options, we should be able to write a stricter test.

! RUN: %flang_fc1 -mmlir --help | FileCheck %s --check-prefix=MLIR
Expand Down
2 changes: 1 addition & 1 deletion libc/src/__support/FPUtil/x86_64/FEnvImpl.h
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ LIBC_INLINE int raise_except(int excepts) {
// of the "Intel 64 and IA-32 Architectures Software Developer's
// Manual, Vol 1".

// FPU status word is read for each exception seperately as the
// FPU status word is read for each exception separately as the
// exception handler can potentially write to it (typically to clear
// the corresponding exception flag). By reading it separately, we
// ensure that the writes by the exception handler are maintained
Expand Down
10 changes: 5 additions & 5 deletions libc/src/stdio/printf_core/float_hex_converter.h
Original file line number Diff line number Diff line change
Expand Up @@ -199,13 +199,13 @@ LIBC_INLINE int convert_float_hex_exp(Writer *writer,
constexpr cpp::string_view HEXADECIMAL_POINT(".");

// This is for the letter 'p' before the exponent.
const char exp_seperator = a + ('p' - 'a');
constexpr int EXP_SEPERATOR_LEN = 1;
const char exp_separator = a + ('p' - 'a');
constexpr int EXP_SEPARATOR_LEN = 1;

padding = static_cast<int>(to_conv.min_width - (sign_char > 0 ? 1 : 0) -
PREFIX_LEN - mant_digits - trailing_zeroes -
static_cast<int>(has_hexadecimal_point) -
EXP_SEPERATOR_LEN - (EXP_LEN - exp_cur));
EXP_SEPARATOR_LEN - (EXP_LEN - exp_cur));
if (padding < 0)
padding = 0;

Expand All @@ -223,7 +223,7 @@ LIBC_INLINE int convert_float_hex_exp(Writer *writer,
RET_IF_RESULT_NEGATIVE(writer->write({mant_buffer + 1, mant_digits - 1}));
if (trailing_zeroes > 0)
RET_IF_RESULT_NEGATIVE(writer->write('0', trailing_zeroes));
RET_IF_RESULT_NEGATIVE(writer->write(exp_seperator));
RET_IF_RESULT_NEGATIVE(writer->write(exp_separator));
RET_IF_RESULT_NEGATIVE(
writer->write({exp_buffer + exp_cur, EXP_LEN - exp_cur}));
if (padding > 0)
Expand All @@ -247,7 +247,7 @@ LIBC_INLINE int convert_float_hex_exp(Writer *writer,
RET_IF_RESULT_NEGATIVE(writer->write({mant_buffer + 1, mant_digits - 1}));
if (trailing_zeroes > 0)
RET_IF_RESULT_NEGATIVE(writer->write('0', trailing_zeroes));
RET_IF_RESULT_NEGATIVE(writer->write(exp_seperator));
RET_IF_RESULT_NEGATIVE(writer->write(exp_separator));
RET_IF_RESULT_NEGATIVE(
writer->write({exp_buffer + exp_cur, EXP_LEN - exp_cur}));
}
Expand Down
2 changes: 1 addition & 1 deletion libc/test/src/__support/str_to_float_comparison_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ int main(int argc, char *argv[]) {
int fails = 0;

// Bitdiffs are cases where the expected result and actual result only differ
// by +/- the least significant bit. They are tracked seperately from larger
// by +/- the least significant bit. They are tracked separately from larger
// failures since a bitdiff is most likely the result of a rounding error, and
// splitting them off makes them easier to track down.
int bitdiffs = 0;
Expand Down
2 changes: 1 addition & 1 deletion lld/test/wasm/data-segments.ll
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@
; DIS-EMPTY:
; DIS-NEXT: end

; In PIC mode __wasm_apply_data_relocs is export seperatly to __wasm_call_ctors
; In PIC mode __wasm_apply_data_relocs is export separatly to __wasm_call_ctors
; PIC-DIS: <__wasm_apply_data_relocs>:
; PIC-DIS-EMPTY:

Expand Down
2 changes: 1 addition & 1 deletion lldb/include/lldb/Expression/DWARFExpressionList.h
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ class DWARFExpressionList {
lldb::addr_t func_load_addr, lldb::addr_t file_addr,
ABI *abi) const;

/// Dump all locaitons with each seperated by new line.
/// Dump all locaitons with each separated by new line.
void GetDescription(Stream *s, lldb::DescriptionLevel level, ABI *abi) const;

/// Search for a load address in the dwarf location list
Expand Down
2 changes: 1 addition & 1 deletion lldb/include/lldb/Target/MemoryTagManager.h
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ class MemoryTagManager {
// transport.
virtual size_t GetTagSizeInBytes() const = 0;

// Unpack tags from their stored format (e.g. gdb qMemTags data) into seperate
// Unpack tags from their stored format (e.g. gdb qMemTags data) into separate
// tags.
//
// Checks that each tag is within the expected value range and if granules is
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,7 @@ NativeRegisterContextLinux_arm64::ReadRegister(const RegisterInfo *reg_info,
return error;
}

// ZA is part of the SME set but uses a seperate member buffer for
// ZA is part of the SME set but uses a separate member buffer for
// storage. Therefore its effective byte offset is always 0 even if it
// isn't 0 within the SME register set.
src = (uint8_t *)GetZABuffer() + GetZAHeaderSize();
Expand Down
2 changes: 1 addition & 1 deletion lldb/test/API/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ set(LLDB_TEST_ARCH
# Users can override LLDB_TEST_USER_ARGS to specify arbitrary arguments to pass to the script
set(LLDB_TEST_USER_ARGS
""
CACHE STRING "Specify additional arguments to pass to test runner. Seperate \
CACHE STRING "Specify additional arguments to pass to test runner. Separate \
items with \";\". For example: '-C;gcc;-C;clang;-A;i386;-A;x86_64'")

set(LLDB_TEST_COMMON_ARGS_VAR
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ def test_tag_write_QMemTags_packets(self):
self.check_tag_write("{:x},20".format(buf_address), "E03")
# Missing data
self.check_tag_write("{:x},20:1".format(buf_address), "E03")
# Zero length write must still include seperator after type
# Zero length write must still include separator after type
self.check_tag_write("{:x},0:1".format(buf_address), "E03")
# Empty address
self.check_tag_write(",10:1:01", "E03")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
#
# DW_AT_location (DW_OP_constu 0x64a40101, DW_OP_stack_value)
#
# to work-around a seperate bug.
# to work-around a separate bug.

.zerofill __DATA,__bss,__type_anchor,4,2 ## @_type_anchor
.zerofill __DATA,__bss,_ug.0,1,2 ## @ug.0
Expand Down
2 changes: 1 addition & 1 deletion llvm/include/llvm/CodeGen/LiveRegUnits.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class LiveRegUnits {
/// For a machine instruction \p MI, adds all register units used in
/// \p UsedRegUnits and defined or clobbered in \p ModifiedRegUnits. This is
/// useful when walking over a range of instructions to track registers
/// used or defined seperately.
/// used or defined separately.
static void accumulateUsedDefed(const MachineInstr &MI,
LiveRegUnits &ModifiedRegUnits,
LiveRegUnits &UsedRegUnits,
Expand Down
2 changes: 1 addition & 1 deletion llvm/include/llvm/CodeGen/MIRFormatter.h
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ class MIRFormatter {
}

/// Implement target specific parsing of immediate mnemonics. The mnemonic is
/// dot seperated strings.
/// dot separated strings.
virtual bool parseImmMnemonic(const unsigned OpCode, const unsigned OpIdx,
StringRef Src, int64_t &Imm,
ErrorCallbackType ErrorCallback) const {
Expand Down
2 changes: 1 addition & 1 deletion llvm/include/llvm/MC/MCAsmInfo.h
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@ class MCAsmInfo {
/// for ELF targets. Defaults to true.
bool HasSingleParameterDotFile = true;

/// True if the target has a four strings .file directive, strings seperated
/// True if the target has a four strings .file directive, strings separated
/// by comma. Defaults to false.
bool HasFourStringsDotFile = false;

Expand Down
2 changes: 1 addition & 1 deletion llvm/include/llvm/Support/raw_socket_stream.h
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ class ListeningSocket {
std::atomic<int> FD;
std::string SocketPath; // Not modified after construction

/// If a seperate thread calls ListeningSocket::shutdown, the ListeningSocket
/// If a separate thread calls ListeningSocket::shutdown, the ListeningSocket
/// file descriptor (FD) could be closed while ::poll is waiting for it to be
/// ready to perform a I/O operations. ::poll will continue to block even
/// after FD is closed so use a self-pipe mechanism to get ::poll to return
Expand Down
2 changes: 1 addition & 1 deletion llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.h
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ class LLVM_LIBRARY_VISIBILITY CodeViewDebug : public DebugHandlerBase {
// DIGlobalVariableExpression referencing the DIGlobalVariable.
DenseMap<const DIGlobalVariable *, uint64_t> CVGlobalVariableOffsets;

// Map used to seperate variables according to the lexical scope they belong
// Map used to separate variables according to the lexical scope they belong
// in. This is populated by recordLocalVariable() before
// collectLexicalBlocks() separates the variables between the FunctionInfo
// and LexicalBlocks.
Expand Down
6 changes: 3 additions & 3 deletions llvm/lib/CodeGen/AssignmentTrackingAnalysis.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2493,7 +2493,7 @@ removeRedundantDbgLocsUsingBackwardScan(const BasicBlock *BB,
bool Changed = false;
SmallDenseMap<DebugAggregate, BitVector> VariableDefinedBytes;
// Scan over the entire block, not just over the instructions mapped by
// FnVarLocs, because wedges in FnVarLocs may only be seperated by debug
// FnVarLocs, because wedges in FnVarLocs may only be separated by debug
// instructions.
for (const Instruction &I : reverse(*BB)) {
if (!isa<DbgVariableIntrinsic>(I)) {
Expand Down Expand Up @@ -2593,7 +2593,7 @@ removeRedundantDbgLocsUsingForwardScan(const BasicBlock *BB,
VariableMap;

// Scan over the entire block, not just over the instructions mapped by
// FnVarLocs, because wedges in FnVarLocs may only be seperated by debug
// FnVarLocs, because wedges in FnVarLocs may only be separated by debug
// instructions.
for (const Instruction &I : *BB) {
// Get the defs that come just before this instruction.
Expand Down Expand Up @@ -2681,7 +2681,7 @@ removeUndefDbgLocsFromEntryBlock(const BasicBlock *BB,
DenseMap<DebugVariable, std::pair<Value *, DIExpression *>> VariableMap;

// Scan over the entire block, not just over the instructions mapped by
// FnVarLocs, because wedges in FnVarLocs may only be seperated by debug
// FnVarLocs, because wedges in FnVarLocs may only be separated by debug
// instructions.
for (const Instruction &I : *BB) {
// Get the defs that come just before this instruction.
Expand Down
4 changes: 2 additions & 2 deletions llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6606,15 +6606,15 @@ void SelectionDAGBuilder::visitIntrinsicCall(const CallInst &I,
return;
}
case Intrinsic::dbg_assign: {
// Debug intrinsics are handled seperately in assignment tracking mode.
// Debug intrinsics are handled separately in assignment tracking mode.
if (AssignmentTrackingEnabled)
return;
// If assignment tracking hasn't been enabled then fall through and treat
// the dbg.assign as a dbg.value.
[[fallthrough]];
}
case Intrinsic::dbg_value: {
// Debug intrinsics are handled seperately in assignment tracking mode.
// Debug intrinsics are handled separately in assignment tracking mode.
if (AssignmentTrackingEnabled)
return;
const DbgValueInst &DI = cast<DbgValueInst>(I);
Expand Down
2 changes: 1 addition & 1 deletion llvm/lib/FileCheck/FileCheck.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -624,7 +624,7 @@ Expected<std::unique_ptr<Expression>> Pattern::parseNumericSubstitutionBlock(
ExpressionFormat ExplicitFormat = ExpressionFormat();
unsigned Precision = 0;

// Parse format specifier (NOTE: ',' is also an argument seperator).
// Parse format specifier (NOTE: ',' is also an argument separator).
size_t FormatSpecEnd = Expr.find(',');
size_t FunctionStart = Expr.find('(');
if (FormatSpecEnd != StringRef::npos && FormatSpecEnd < FunctionStart) {
Expand Down
2 changes: 1 addition & 1 deletion llvm/lib/IR/DebugInfo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2010,7 +2010,7 @@ bool calculateFragmentIntersectImpl(
// SliceSizeInBits=32, Dest=%dest, Assign=dbg.assign)
//
// Drawing the store (s) in memory followed by the shortened version ($),
// then the dbg.assign (d), with the fragment information on a seperate scale
// then the dbg.assign (d), with the fragment information on a separate scale
// underneath:
//
// Memory
Expand Down
2 changes: 1 addition & 1 deletion llvm/lib/MC/MCPseudoProbe.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ void MCPseudoProbeInlineTree::emit(MCObjectStreamer *MCOS,
dbgs() << "Group [\n";
MCPseudoProbeTable::DdgPrintIndent += 2;
});
assert(!isRoot() && "Root should be handled seperately");
assert(!isRoot() && "Root should be handled separately");

// Emit probes grouped by GUID.
LLVM_DEBUG({
Expand Down
2 changes: 1 addition & 1 deletion llvm/lib/Support/VirtualFileSystem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1373,7 +1373,7 @@ std::error_code RedirectingFileSystem::makeAbsolute(SmallVectorImpl<char> &Path)
llvm::sys::path::is_absolute(Path,
llvm::sys::path::Style::windows_backslash))
// This covers windows absolute path with forward slash as well, as the
// forward slashes are treated as path seperation in llvm::path
// forward slashes are treated as path separation in llvm::path
// regardless of what path::Style is used.
return {};

Expand Down
2 changes: 1 addition & 1 deletion llvm/lib/Support/raw_socket_stream.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ void ListeningSocket::shutdown() {
::close(ObservedFD);
::unlink(SocketPath.c_str());

// Ensure ::poll returns if shutdown is called by a seperate thread
// Ensure ::poll returns if shutdown is called by a separate thread
char Byte = 'A';
ssize_t written = ::write(PipeFD[1], &Byte, 1);

Expand Down
2 changes: 1 addition & 1 deletion llvm/lib/Target/ARM/ARMISelLowering.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13709,7 +13709,7 @@ static SDValue PerformADDVecReduce(SDNode *N, SelectionDAG &DAG,
// t2: i64 = build_pair t1, t1:1
// t3: i64 = add t2, y
// Otherwise we try to push the add up above VADDLVAx, to potentially allow
// the add to be simplified seperately.
// the add to be simplified separately.
// We also need to check for sext / zext and commutitive adds.
auto MakeVecReduce = [&](unsigned Opcode, unsigned OpcodeA, SDValue NA,
SDValue NB) {
Expand Down
Loading

0 comments on commit d4a0154

Please sign in to comment.