From 0debe270474a63176a7eec464a7a5c82bbc73054 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 10 Mar 2026 17:53:12 +0000 Subject: [PATCH 1/4] Initial plan From 1e9d882d35751e1e787e96825b9233d1952b7a44 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 10 Mar 2026 18:08:38 +0000 Subject: [PATCH 2/4] Fix various typos in the codebase reported by linux packaging tools Co-authored-by: damyanp <8118402+damyanp@users.noreply.github.com> --- docs/LangRef.rst | 2 +- docs/SPIR-V.rst | 4 ++-- include/dxc/Support/HLSLOptions.td | 8 ++++---- include/dxc/dxcapi.internal.h | 2 +- include/llvm/CodeGen/MachineScheduler.h | 2 +- include/llvm/CodeGen/Passes.h | 8 ++++---- include/llvm/ExecutionEngine/Orc/ExecutionUtils.h | 2 +- include/llvm/IR/LegacyPassNameParser.h | 2 +- include/llvm/MC/MCSchedule.h | 4 ++-- include/llvm/Pass.h | 14 +++++++------- include/llvm/Support/CommandLine.h | 2 +- include/llvm/Target/TargetLoweringObjectFile.h | 2 +- include/llvm/Target/TargetOptions.h | 2 +- include/llvm/Target/TargetRegisterInfo.h | 2 +- include/llvm/Target/TargetSchedule.td | 2 +- lib/AsmParser/LLParser.cpp | 2 +- lib/CodeGen/Passes.cpp | 4 ++-- lib/CodeGen/RegAllocPBQP.cpp | 2 +- lib/CodeGen/TargetInstrInfo.cpp | 2 +- lib/IR/Constants.cpp | 4 ++-- lib/IR/Verifier.cpp | 4 ++-- lib/TableGen/TGParser.cpp | 2 +- lib/Transforms/Scalar/RewriteStatepointsForGC.cpp | 2 +- lib/Transforms/Scalar/SROA.cpp | 2 +- test/Transforms/MergeFunc/fold-weak.ll | 2 +- test/Verifier/llvm.used-invalid-init.ll | 2 +- test/lit.cfg | 2 +- tools/clang/docs/analyzer/IPA.txt | 2 +- .../include/clang/Basic/DiagnosticSemaKinds.td | 4 ++-- tools/clang/include/clang/Driver/Options.td | 2 +- tools/clang/include/clang/SPIRV/SpirvBuilder.h | 2 +- tools/clang/include/clang/Sema/TypoCorrection.h | 2 +- .../clang/include/clang/Serialization/ASTWriter.h | 2 +- .../include/clang/Serialization/ModuleManager.h | 2 +- tools/clang/lib/ARCMigrate/FileRemapper.cpp | 2 +- tools/clang/lib/AST/DeclObjC.cpp | 4 ++-- tools/clang/lib/AST/VTableBuilder.cpp | 2 +- tools/clang/lib/CodeGen/CGHLSLMS.cpp | 2 +- tools/clang/lib/SPIRV/DeclResultIdMapper.cpp | 2 +- tools/clang/lib/SPIRV/DeclResultIdMapper.h | 4 ++-- tools/clang/lib/SPIRV/GlPerVertex.h | 2 +- tools/clang/lib/SPIRV/InitListHandler.cpp | 2 +- tools/clang/lib/SPIRV/InitListHandler.h | 8 ++++---- tools/clang/lib/Sema/SemaDecl.cpp | 4 ++-- tools/clang/lib/Sema/SemaDeclCXX.cpp | 6 +++--- tools/clang/lib/Sema/SemaHLSL.cpp | 8 ++++---- .../test/CodeGenSPIRV/spirv.storage-class.hlsl | 2 +- tools/clang/test/CodeGenSPIRV/var.init.struct.hlsl | 4 ++-- .../test/SemaCXX/warn-range-loop-analysis.cpp | 2 +- .../SemaHLSL/max_output_records_invalidref.hlsl | 4 ++-- tools/clang/test/SemaHLSL/vector-conditional.hlsl | 2 +- tools/clang/tools/libclang/CXCursor.cpp | 6 +++--- tools/clang/tools/libclang/CXCursor.h | 4 ++-- .../StaticAnalyzer/AnalyzerOptionsTest.cpp | 4 ++-- utils/TableGen/CodeGenSchedule.cpp | 2 +- utils/TableGen/SubtargetEmitter.cpp | 2 +- utils/version/gen_version.py | 2 +- 57 files changed, 92 insertions(+), 92 deletions(-) diff --git a/docs/LangRef.rst b/docs/LangRef.rst index 0039d01427..69eccb464e 100644 --- a/docs/LangRef.rst +++ b/docs/LangRef.rst @@ -2927,7 +2927,7 @@ the same register to an output and an input. If this is not safe (e.g. if the assembly contains two instructions, where the first writes to one output, and the second reads an input and writes to a second output), then the "``&``" modifier must be used (e.g. "``=&r``") to specify that the output is an -"early-clobber" output. Marking an ouput as "early-clobber" ensures that LLVM +"early-clobber" output. Marking an output as "early-clobber" ensures that LLVM will not use the same register for any inputs (other than an input tied to this output). diff --git a/docs/SPIR-V.rst b/docs/SPIR-V.rst index 423262e15d..da5e914e3e 100644 --- a/docs/SPIR-V.rst +++ b/docs/SPIR-V.rst @@ -1420,11 +1420,11 @@ placed in the ``Uniform`` or ``UniformConstant`` storage class. - ``shared`` - - This is a hint to the compiler. It will be ingored. + - This is a hint to the compiler. It will be ignored. - ``volatile`` - - This is a hint to the compiler. It will be ingored. + - This is a hint to the compiler. It will be ignored. HLSL semantic and Vulkan ``Location`` ------------------------------------- diff --git a/include/dxc/Support/HLSLOptions.td b/include/dxc/Support/HLSLOptions.td index cd7dfb2f0c..ad7f82b6e5 100644 --- a/include/dxc/Support/HLSLOptions.td +++ b/include/dxc/Support/HLSLOptions.td @@ -277,7 +277,7 @@ def dump_dependencies : Flag<["-", "/"], "M">, Flags<[CoreOption, DriverOption]> def write_dependencies : Flag<["-", "/"], "MD">, Flags<[CoreOption, DriverOption]>, HelpText<"Write a file with .d extension that will contain the list of the compilation target dependencies.">; def write_dependencies_to : JoinedOrSeparate<["-", "/"], "MF">, MetaVarName<"">, Flags<[CoreOption, DriverOption]>, - HelpText<"Write the specfied file that will contain the list of the compilation target dependencies.">; + HelpText<"Write the specified file that will contain the list of the compilation target dependencies.">; def external_lib : Separate<["-", "/"], "external">, Group, Flags<[DriverOption, RewriteOption, HelpHidden]>, HelpText<"External DLL name to load for compiler support">; def external_fn : Separate<["-", "/"], "external-fn">, Group, Flags<[DriverOption, RewriteOption, HelpHidden]>, @@ -424,7 +424,7 @@ def fspv_use_unknown_image_format def fvk_auto_shift_bindings: Flag<["-"], "fvk-auto-shift-bindings">, Group, Flags<[CoreOption, DriverOption]>, HelpText<"Apply fvk-*-shift to resources without an explicit register assignment.">; def Wno_vk_ignored_features : Joined<["-"], "Wno-vk-ignored-features">, Group, Flags<[CoreOption, DriverOption, HelpHidden]>, - HelpText<"Do not emit warnings for ingored features resulting from no Vulkan support">; + HelpText<"Do not emit warnings for ignored features resulting from no Vulkan support">; def Wno_vk_emulated_features : Joined<["-"], "Wno-vk-emulated-features">, Group, Flags<[CoreOption, DriverOption, HelpHidden]>, HelpText<"Do not emit warnings for emulated features resulting from no direct mapping">; def fspv_print_all: Flag<["-"], "fspv-print-all">, Group, Flags<[CoreOption, DriverOption]>, @@ -564,9 +564,9 @@ def res_may_alias : Flag<["-", "/"], "res-may-alias">, Flags<[CoreOption]>, Grou def res_may_alias_ : Flag<["-", "/"], "res_may_alias">, Flags<[CoreOption, HelpHidden]>, Group, HelpText<"Assume that UAVs/SRVs may alias">; def all_resources_bound : Flag<["-", "/"], "all-resources-bound">, Flags<[CoreOption]>, Group, - HelpText<"Enables agressive flattening">; + HelpText<"Enables aggressive flattening">; def all_resources_bound_ : Flag<["-", "/"], "all_resources_bound">, Flags<[CoreOption, HelpHidden]>, Group, - HelpText<"Enables agressive flattening">; + HelpText<"Enables aggressive flattening">; def setprivate : JoinedOrSeparate<["-", "/"], "setprivate">, Flags<[CoreOption, DriverOption]>, MetaVarName<"">, Group, HelpText<"Private data to add to compiled shader blob">; diff --git a/include/dxc/dxcapi.internal.h b/include/dxc/dxcapi.internal.h index ca4b892748..a76d1983f8 100644 --- a/include/dxc/dxcapi.internal.h +++ b/include/dxc/dxcapi.internal.h @@ -276,7 +276,7 @@ CROSS_PLATFORM_UUIDOF(IDxcLangExtensions3, "A1B19880-FB1F-4920-9BC5-50356483BAC1") struct IDxcLangExtensions3 : public IDxcLangExtensions2 { public: - /// Registers a semantic define which cannot be overriden using the flag + /// Registers a semantic define which cannot be overridden using the flag /// -override-opt-semdefs virtual HRESULT STDMETHODCALLTYPE RegisterNonOptSemanticDefine(LPCWSTR name) = 0; diff --git a/include/llvm/CodeGen/MachineScheduler.h b/include/llvm/CodeGen/MachineScheduler.h index 9506023560..c98fd735ca 100644 --- a/include/llvm/CodeGen/MachineScheduler.h +++ b/include/llvm/CodeGen/MachineScheduler.h @@ -148,7 +148,7 @@ class MachineSchedRegistry class ScheduleDAGMI; /// Define a generic scheduling policy for targets that don't provide their own -/// MachineSchedStrategy. This can be overriden for each scheduling region +/// MachineSchedStrategy. This can be overridden for each scheduling region /// before building the DAG. struct MachineSchedPolicy { // Allow the scheduler to disable register pressure tracking. diff --git a/include/llvm/CodeGen/Passes.h b/include/llvm/CodeGen/Passes.h index 5d82921744..e2e581b9e5 100644 --- a/include/llvm/CodeGen/Passes.h +++ b/include/llvm/CodeGen/Passes.h @@ -42,7 +42,7 @@ using legacy::PassManagerBase; /// /// The PassConfig API prefers dealing with IDs because they are safer and more /// efficient. IDs decouple configuration from instantiation. This way, when a -/// pass is overriden, it isn't unnecessarily instantiated. It is also unsafe to +/// pass is overridden, it isn't unnecessarily instantiated. It is also unsafe to /// refer to a Pass pointer after adding it to a pass manager, which deletes /// redundant pass instances. /// @@ -194,7 +194,7 @@ class TargetPassConfig : public ImmutablePass { bool getEnableShrinkWrap() const; /// Return true if the default global register allocator is in use and - /// has not be overriden on the command line with '-regalloc=...' + /// has not be overridden on the command line with '-regalloc=...' bool usingDefaultRegAlloc() const; /// Add common target configurable passes that perform LLVM IR to IR @@ -251,7 +251,7 @@ class TargetPassConfig : public ImmutablePass { /// codegen pass pipeline where targets may insert passes. Methods with /// out-of-line standard implementations are major CodeGen stages called by /// addMachinePasses. Some targets may override major stages when inserting - /// passes is insufficient, but maintaining overriden stages is more work. + /// passes is insufficient, but maintaining overridden stages is more work. /// /// addPreISelPasses - This method should add any "last minute" LLVM->LLVM @@ -346,7 +346,7 @@ class TargetPassConfig : public ImmutablePass { /// machine verification pass afterwards. void addPass(Pass *P, bool verifyAfter = true, bool printAfter = true); - /// addMachinePasses helper to create the target-selected or overriden + /// addMachinePasses helper to create the target-selected or overridden /// regalloc pass. FunctionPass *createRegAllocPass(bool Optimized); diff --git a/include/llvm/ExecutionEngine/Orc/ExecutionUtils.h b/include/llvm/ExecutionEngine/Orc/ExecutionUtils.h index c10508cc8a..4a7ca57f09 100644 --- a/include/llvm/ExecutionEngine/Orc/ExecutionUtils.h +++ b/include/llvm/ExecutionEngine/Orc/ExecutionUtils.h @@ -151,7 +151,7 @@ class LocalCXXRuntimeOverrides { return nullptr; } - /// Run any destructors recorded by the overriden __cxa_atexit function + /// Run any destructors recorded by the overridden __cxa_atexit function /// (CXAAtExitOverride). void runDestructors(); diff --git a/include/llvm/IR/LegacyPassNameParser.h b/include/llvm/IR/LegacyPassNameParser.h index 8d6647bd86..cde85abd15 100644 --- a/include/llvm/IR/LegacyPassNameParser.h +++ b/include/llvm/IR/LegacyPassNameParser.h @@ -52,7 +52,7 @@ class PassNameParser : public PassRegistrationListener, enumeratePasses(); } - // ignorablePassImpl - Can be overriden in subclasses to refine the list of + // ignorablePassImpl - Can be overridden in subclasses to refine the list of // which passes we want to include. // virtual bool ignorablePassImpl(const PassInfo *P) const { return false; } diff --git a/include/llvm/MC/MCSchedule.h b/include/llvm/MC/MCSchedule.h index c097916310..7d912ef83d 100644 --- a/include/llvm/MC/MCSchedule.h +++ b/include/llvm/MC/MCSchedule.h @@ -166,7 +166,7 @@ struct MCSchedModel { // LoadLatency is the expected latency of load instructions. // - // If MinLatency >= 0, this may be overriden for individual load opcodes by + // If MinLatency >= 0, this may be overridden for individual load opcodes by // InstrItinerary OperandCycles. unsigned LoadLatency; static const unsigned DefaultLoadLatency = 4; @@ -175,7 +175,7 @@ struct MCSchedModel { // See TargetInstrInfo::isHighLatencyDef(). // By default, this is set to an arbitrarily high number of cycles // likely to have some impact on scheduling heuristics. - // If MinLatency >= 0, this may be overriden by InstrItinData OperandCycles. + // If MinLatency >= 0, this may be overridden by InstrItinData OperandCycles. unsigned HighLatency; static const unsigned DefaultHighLatency = 10; diff --git a/include/llvm/Pass.h b/include/llvm/Pass.h index a948cb9afa..7d866d822f 100644 --- a/include/llvm/Pass.h +++ b/include/llvm/Pass.h @@ -149,7 +149,7 @@ protected: raw_ostream *OSOverride; // HLSL Change /// virtual bool doInitialization(Module &) { return false; } - /// doFinalization - Virtual method overriden by subclasses to do any + /// doFinalization - Virtual method overridden by subclasses to do any /// necessary clean up after all passes have run. /// virtual bool doFinalization(Module &) { return false; } @@ -183,7 +183,7 @@ protected: raw_ostream *OSOverride; // HLSL Change void setResolver(AnalysisResolver *AR); AnalysisResolver *getResolver() const { return Resolver; } - /// getAnalysisUsage - This function should be overriden by passes that need + /// getAnalysisUsage - This function should be overridden by passes that need /// analysis information to do their job. If a pass specifies that it uses a /// particular analysis result to this function, it can then use the /// getAnalysis() function, below. @@ -278,7 +278,7 @@ class ModulePass : public Pass { Pass *createPrinterPass(raw_ostream &O, const std::string &Banner) const override; - /// runOnModule - Virtual method overriden by subclasses to process the module + /// runOnModule - Virtual method overridden by subclasses to process the module /// being operated on. virtual bool runOnModule(Module &M) = 0; @@ -300,7 +300,7 @@ class ModulePass : public Pass { /// class ImmutablePass : public ModulePass { public: - /// initializePass - This method may be overriden by immutable passes to allow + /// initializePass - This method may be overridden by immutable passes to allow /// them to perform various initialization actions they require. This is /// primarily because an ImmutablePass can "require" another ImmutablePass, /// and if it does, the overloaded version of initializePass may get access to @@ -338,7 +338,7 @@ class FunctionPass : public Pass { Pass *createPrinterPass(raw_ostream &O, const std::string &Banner) const override; - /// runOnFunction - Virtual method overriden by subclasses to do the + /// runOnFunction - Virtual method overridden by subclasses to do the /// per-function processing of the pass. /// virtual bool runOnFunction(Function &F) = 0; @@ -380,12 +380,12 @@ class BasicBlockPass : public Pass { /// virtual bool doInitialization(Function &); - /// runOnBasicBlock - Virtual method overriden by subclasses to do the + /// runOnBasicBlock - Virtual method overridden by subclasses to do the /// per-basicblock processing of the pass. /// virtual bool runOnBasicBlock(BasicBlock &BB) = 0; - /// doFinalization - Virtual method overriden by BasicBlockPass subclasses to + /// doFinalization - Virtual method overridden by BasicBlockPass subclasses to /// do any post processing needed after all passes have run. /// virtual bool doFinalization(Function &); diff --git a/include/llvm/Support/CommandLine.h b/include/llvm/Support/CommandLine.h index db955337c1..6864ef291d 100644 --- a/include/llvm/Support/CommandLine.h +++ b/include/llvm/Support/CommandLine.h @@ -178,7 +178,7 @@ class alias; class Option { friend class alias; - // handleOccurrences - Overriden by subclasses to handle the value passed into + // handleOccurrences - Overridden by subclasses to handle the value passed into // an argument. Should return true if there was an error processing the // argument and the program should exit. // diff --git a/include/llvm/Target/TargetLoweringObjectFile.h b/include/llvm/Target/TargetLoweringObjectFile.h index 5b626c244b..a717e8ab24 100644 --- a/include/llvm/Target/TargetLoweringObjectFile.h +++ b/include/llvm/Target/TargetLoweringObjectFile.h @@ -105,7 +105,7 @@ class TargetLoweringObjectFile : public MCObjectFileInfo { const Function &F) const; /// Targets should implement this method to assign a section to globals with - /// an explicit section specfied. The implementation of this method can + /// an explicit section specified. The implementation of this method can /// assume that GV->hasSection() is true. virtual MCSection * getExplicitSectionGlobal(const GlobalValue *GV, SectionKind Kind, diff --git a/include/llvm/Target/TargetOptions.h b/include/llvm/Target/TargetOptions.h index d52cb60cf1..e295de0fb9 100644 --- a/include/llvm/Target/TargetOptions.h +++ b/include/llvm/Target/TargetOptions.h @@ -172,7 +172,7 @@ namespace llvm { /// Emit target-specific trap instruction for 'unreachable' IR instructions. unsigned TrapUnreachable : 1; - /// FloatABIType - This setting is set by -float-abi=xxx option is specfied + /// FloatABIType - This setting is set by -float-abi=xxx option is specified /// on the command line. This setting may either be Default, Soft, or Hard. /// Default selects the target's default behavior. Soft selects the ABI for /// software floating point, but does not indicate that FP hardware may not diff --git a/include/llvm/Target/TargetRegisterInfo.h b/include/llvm/Target/TargetRegisterInfo.h index f4189899e2..e8f33c0681 100644 --- a/include/llvm/Target/TargetRegisterInfo.h +++ b/include/llvm/Target/TargetRegisterInfo.h @@ -840,7 +840,7 @@ class TargetRegisterInfo : public MCRegisterInfo { return false; } - /// eliminateFrameIndex - This method must be overriden to eliminate abstract + /// eliminateFrameIndex - This method must be overridden to eliminate abstract /// frame indices from instructions which may use them. The instruction /// referenced by the iterator contains an MO_FrameIndex operand which must be /// eliminated by this method. This method may modify or replace the diff --git a/include/llvm/Target/TargetSchedule.td b/include/llvm/Target/TargetSchedule.td index c0a1e17238..e29d9118d8 100644 --- a/include/llvm/Target/TargetSchedule.td +++ b/include/llvm/Target/TargetSchedule.td @@ -67,7 +67,7 @@ def instregex; // coarse grained instruction cost model. Default values for the // properties are defined in MCSchedModel. A value of "-1" in the // target description's SchedMachineModel indicates that the property -// is not overriden by the target. +// is not overridden by the target. // // Target hooks allow subtargets to associate LoadLatency and // HighLatency with groups of opcodes. diff --git a/lib/AsmParser/LLParser.cpp b/lib/AsmParser/LLParser.cpp index 1c6e7bd18d..bf84f3cbf9 100644 --- a/lib/AsmParser/LLParser.cpp +++ b/lib/AsmParser/LLParser.cpp @@ -2880,7 +2880,7 @@ bool LLParser::ParseValID(ValID &ID, PerFunctionState *PFS) { if (!ValTy->getScalarType()->isIntegerTy()) return Error(ID.Loc, "getelementptr index must be an integer"); if (ValTy->isVectorTy() != BaseType->isVectorTy()) - return Error(ID.Loc, "getelementptr index type missmatch"); + return Error(ID.Loc, "getelementptr index type mismatch"); if (ValTy->isVectorTy()) { unsigned ValNumEl = ValTy->getVectorNumElements(); unsigned PtrNumEl = BaseType->getVectorNumElements(); diff --git a/lib/CodeGen/Passes.cpp b/lib/CodeGen/Passes.cpp index 3159fbd5a0..02142786bd 100644 --- a/lib/CodeGen/Passes.cpp +++ b/lib/CodeGen/Passes.cpp @@ -480,7 +480,7 @@ void TargetPassConfig::addISelPrepare() { /// with nontrivial configuration or multiple passes are broken out below in /// add%Stage routines. /// -/// Any TargetPassConfig::addXX routine may be overriden by the Target. The +/// Any TargetPassConfig::addXX routine may be overridden by the Target. The /// addPre/Post methods with empty header implementations allow injecting /// target-specific fixups just before or after major stages. Additionally, /// targets have the flexibility to change pass order within a stage by @@ -707,7 +707,7 @@ FunctionPass *TargetPassConfig::createRegAllocPass(bool Optimized) { } /// Return true if the default global register allocator is in use and -/// has not be overriden on the command line with '-regalloc=...' +/// has not be overridden on the command line with '-regalloc=...' bool TargetPassConfig::usingDefaultRegAlloc() const { return RegAlloc.getNumOccurrences() == 0; } diff --git a/lib/CodeGen/RegAllocPBQP.cpp b/lib/CodeGen/RegAllocPBQP.cpp index eeff73d0f2..c9b46c8dfc 100644 --- a/lib/CodeGen/RegAllocPBQP.cpp +++ b/lib/CodeGen/RegAllocPBQP.cpp @@ -301,7 +301,7 @@ class Interference : public PBQPRAConstraint { } while (!Inactive.empty()) { - // Tentatively grab the "next" interval - this choice may be overriden + // Tentatively grab the "next" interval - this choice may be overridden // below. IntervalInfo Cur = Inactive.top(); diff --git a/lib/CodeGen/TargetInstrInfo.cpp b/lib/CodeGen/TargetInstrInfo.cpp index 97ca0253d3..ed53d3c876 100644 --- a/lib/CodeGen/TargetInstrInfo.cpp +++ b/lib/CodeGen/TargetInstrInfo.cpp @@ -815,7 +815,7 @@ bool TargetInstrInfo::hasLowDefLatency(const TargetSchedModel &SchedModel, } /// Both DefMI and UseMI must be valid. By default, call directly to the -/// itinerary. This may be overriden by the target. +/// itinerary. This may be overridden by the target. int TargetInstrInfo:: getOperandLatency(const InstrItineraryData *ItinData, const MachineInstr *DefMI, unsigned DefIdx, diff --git a/lib/IR/Constants.cpp b/lib/IR/Constants.cpp index 308e6bde3d..e0e0a1147f 100644 --- a/lib/IR/Constants.cpp +++ b/lib/IR/Constants.cpp @@ -2056,11 +2056,11 @@ Constant *ConstantExpr::getGetElementPtr(Type *Ty, Constant *C, ArgVec.push_back(C); for (unsigned i = 0, e = Idxs.size(); i != e; ++i) { assert(Idxs[i]->getType()->isVectorTy() == ReqTy->isVectorTy() && - "getelementptr index type missmatch"); + "getelementptr index type mismatch"); assert((!Idxs[i]->getType()->isVectorTy() || ReqTy->getVectorNumElements() == Idxs[i]->getType()->getVectorNumElements()) && - "getelementptr index type missmatch"); + "getelementptr index type mismatch"); ArgVec.push_back(cast(Idxs[i])); } const ConstantExprKeyType Key(Instruction::GetElementPtr, ArgVec, 0, diff --git a/lib/IR/Verifier.cpp b/lib/IR/Verifier.cpp index d53b848924..7f0d4f7ec2 100644 --- a/lib/IR/Verifier.cpp +++ b/lib/IR/Verifier.cpp @@ -502,7 +502,7 @@ void Verifier::visitGlobalVariable(const GlobalVariable &GV) { if (GV.hasInitializer()) { const Constant *Init = GV.getInitializer(); const ConstantArray *InitArray = dyn_cast(Init); - Assert(InitArray, "wrong initalizer for intrinsic global variable", + Assert(InitArray, "wrong initializer for intrinsic global variable", Init); for (unsigned i = 0, e = InitArray->getNumOperands(); i != e; ++i) { Value *V = Init->getOperand(i)->stripPointerCastsNoFollowAliases(); @@ -1065,7 +1065,7 @@ void Verifier::visitDIGlobalVariable(const DIGlobalVariable &N) { if (auto *V = N.getRawVariable()) { Assert(isa(V) && !isa(cast(V)->getValue()), - "invalid global varaible ref", &N, V); + "invalid global variable ref", &N, V); } if (auto *Member = N.getRawStaticDataMemberDeclaration()) { Assert(isa(Member), "invalid static data member declaration", diff --git a/lib/TableGen/TGParser.cpp b/lib/TableGen/TGParser.cpp index 5c36fda2e1..6a5594ff32 100644 --- a/lib/TableGen/TGParser.cpp +++ b/lib/TableGen/TGParser.cpp @@ -1296,7 +1296,7 @@ Init *TGParser::ParseSimpleValue(Record *CurRec, RecTy *ItemType, Init *Bit = Vals[i]->convertInitializerTo(BitRecTy::get()); if (!Bit) { Error(BraceLoc, "Element #" + Twine(i) + " (" + Vals[i]->getAsString() + - ") is not convertable to a bit"); + ") is not convertible to a bit"); return nullptr; } NewBits.push_back(Bit); diff --git a/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp b/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp index ae2ae3af0c..1fede480ea 100644 --- a/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp +++ b/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp @@ -2599,7 +2599,7 @@ static void computeLiveInValues(DominatorTree &DT, Function &F, } // while( !worklist.empty() ) #ifndef NDEBUG - // Sanity check our ouput against SSA properties. This helps catch any + // Sanity check our output against SSA properties. This helps catch any // missing kills during the above iteration. for (BasicBlock &BB : F) { checkBasicSSA(DT, Data, BB); diff --git a/lib/Transforms/Scalar/SROA.cpp b/lib/Transforms/Scalar/SROA.cpp index 0c598b9563..9d17217c75 100644 --- a/lib/Transforms/Scalar/SROA.cpp +++ b/lib/Transforms/Scalar/SROA.cpp @@ -1932,7 +1932,7 @@ static bool canConvertValue(const DataLayout &DL, Type *OldTy, Type *NewTy) { static Value *convertValue(const DataLayout &DL, IRBuilderTy &IRB, Value *V, Type *NewTy) { Type *OldTy = V->getType(); - assert(canConvertValue(DL, OldTy, NewTy) && "Value not convertable to type"); + assert(canConvertValue(DL, OldTy, NewTy) && "Value not convertible to type"); if (OldTy == NewTy) return V; diff --git a/test/Transforms/MergeFunc/fold-weak.ll b/test/Transforms/MergeFunc/fold-weak.ll index f8a1888789..7b9c5c17fd 100644 --- a/test/Transforms/MergeFunc/fold-weak.ll +++ b/test/Transforms/MergeFunc/fold-weak.ll @@ -17,7 +17,7 @@ define weak i32 @add(i32 %x, i32 %y) { ; Don't replace a weak function use by another equivalent function. We don't ; know whether the symbol that will ulitmately be linked is equivalent - we ; don't know that the weak definition is the definitive definition or whether it -; will be overriden by a stronger definition). +; will be overridden by a stronger definition). ; CHECK-LABEL: define private i32 @0 ; CHECK: add i32 diff --git a/test/Verifier/llvm.used-invalid-init.ll b/test/Verifier/llvm.used-invalid-init.ll index b0887c994e..0b21e4840b 100644 --- a/test/Verifier/llvm.used-invalid-init.ll +++ b/test/Verifier/llvm.used-invalid-init.ll @@ -2,5 +2,5 @@ @llvm.used = appending global [1 x i8*] zeroinitializer, section "llvm.metadata" -; CHECK: wrong initalizer for intrinsic global variable +; CHECK: wrong initializer for intrinsic global variable ; CHECK-NEXT: [1 x i8*] zeroinitializer diff --git a/test/lit.cfg b/test/lit.cfg index 5f29b02034..7b7c5aa0e0 100644 --- a/test/lit.cfg +++ b/test/lit.cfg @@ -39,7 +39,7 @@ else: # testFormat: The test format to use to interpret tests. config.test_format = lit.formats.ShTest(execute_external) -# suffixes: A list of file extensions to treat as test files. This is overriden +# suffixes: A list of file extensions to treat as test files. This is overridden # by individual lit.local.cfg files in the test subdirectories. # HLSL Change Start - use just a subset of LLVM tests config.suffixes = ['.ll', '.txt', '.td', '.test'] diff --git a/tools/clang/docs/analyzer/IPA.txt b/tools/clang/docs/analyzer/IPA.txt index d628473fce..73e8e90e8f 100644 --- a/tools/clang/docs/analyzer/IPA.txt +++ b/tools/clang/docs/analyzer/IPA.txt @@ -306,7 +306,7 @@ Currently, there are 2 modes: DynamicDispatchModeConservative - Models the case where the dynamic type information is assumed to be incorrect, for example, implies that the method - definition is overriden in a subclass. In such cases, ExprEngine does not + definition is overridden in a subclass. In such cases, ExprEngine does not inline the methods sent to the receiver (MemoryRegion), even if a candidate definition is available. This mode is conservative about simulating the effects of a call. diff --git a/tools/clang/include/clang/Basic/DiagnosticSemaKinds.td b/tools/clang/include/clang/Basic/DiagnosticSemaKinds.td index f2e2f7c4ed..750bbc1c35 100644 --- a/tools/clang/include/clang/Basic/DiagnosticSemaKinds.td +++ b/tools/clang/include/clang/Basic/DiagnosticSemaKinds.td @@ -7733,7 +7733,7 @@ def err_hlsl_norm_float_only : Error< def err_hlsl_unsupported_conditional_syntax : Error< "x ?: y conditional operator syntax not supported in HLSL">; def err_hlsl_conditional_cond_typecheck : Error< - "conditional operator only supports condition with scalar, vector, or matrix types convertable to bool.">; + "conditional operator only supports condition with scalar, vector, or matrix types convertible to bool.">; def err_hlsl_conditional_result_typecheck : Error< "conditional operator only supports results with numeric scalar, vector, or matrix types.">; def err_hlsl_conditional_dimensions : Error< @@ -7952,7 +7952,7 @@ def err_hlsl_maxarraysize_template_arg : Error< def err_hlsl_maxrecord_attrs_on_same_arg : Error< "only one of MaxRecords or MaxRecordsSharedWith may be specified to the same parameter.">; def err_hlsl_maxrecordssharedwith_references_invalid_arg : Error< - "attribute MaxRecordsSharedWith must reference a valid ouput parameter name.">; + "attribute MaxRecordsSharedWith must reference a valid output parameter name.">; def err_hlsl_maxrecordssharedwith_references_itself : Error< "attribute MaxRecordsSharedWith must not reference the same parameter it is applied to.">; def err_hlsl_maxrecord_on_wrong_launch : Error< diff --git a/tools/clang/include/clang/Driver/Options.td b/tools/clang/include/clang/Driver/Options.td index dac6a47ef9..fcaac8caf5 100644 --- a/tools/clang/include/clang/Driver/Options.td +++ b/tools/clang/include/clang/Driver/Options.td @@ -423,7 +423,7 @@ def fauto_profile_EQ : Joined<["-"], "fauto-profile=">, Alias; def fprofile_instr_generate : Flag<["-"], "fprofile-instr-generate">, Group, Flags<[CC1Option]>, - HelpText<"Generate instrumented code to collect execution counts into default.profraw file (overriden by '=' form of option or LLVM_PROFILE_FILE env var)">; + HelpText<"Generate instrumented code to collect execution counts into default.profraw file (overridden by '=' form of option or LLVM_PROFILE_FILE env var)">; def fprofile_instr_generate_EQ : Joined<["-"], "fprofile-instr-generate=">, Group, Flags<[CC1Option]>, MetaVarName<"">, HelpText<"Generate instrumented code to collect execution counts into (overridden by LLVM_PROFILE_FILE env var)">; diff --git a/tools/clang/include/clang/SPIRV/SpirvBuilder.h b/tools/clang/include/clang/SPIRV/SpirvBuilder.h index 6d02c07866..a1ceb89631 100644 --- a/tools/clang/include/clang/SPIRV/SpirvBuilder.h +++ b/tools/clang/include/clang/SPIRV/SpirvBuilder.h @@ -664,7 +664,7 @@ class SpirvBuilder { /// Returns the imported instruction set. SpirvExtInstImport *getDebugInfoExtInstSet(bool vulkanDebugInfo); - /// \brief Adds a stage input/ouput variable whose value is of the given type. + /// \brief Adds a stage input/output variable whose value is of the given type. /// /// Note: the corresponding pointer type of the given type will not be /// constructed in this method. diff --git a/tools/clang/include/clang/Sema/TypoCorrection.h b/tools/clang/include/clang/Sema/TypoCorrection.h index 958aab0fce..47b38bc4ed 100644 --- a/tools/clang/include/clang/Sema/TypoCorrection.h +++ b/tools/clang/include/clang/Sema/TypoCorrection.h @@ -261,7 +261,7 @@ class CorrectionCandidateCallback { /// determine whether to return an edit distance of 0 or InvalidDistance. /// This can be overrided by validators that only need to determine if a /// candidate is viable, without ranking potentially viable candidates. - /// Only ValidateCandidate or RankCandidate need to be overriden by a + /// Only ValidateCandidate or RankCandidate need to be overridden by a /// callback wishing to check the viability of correction candidates. /// The default predicate always returns true if the candidate is not a type /// name or keyword, true for types if WantTypeSpecifiers is true, and true diff --git a/tools/clang/include/clang/Serialization/ASTWriter.h b/tools/clang/include/clang/Serialization/ASTWriter.h index e830fdcf8f..a49fec8839 100644 --- a/tools/clang/include/clang/Serialization/ASTWriter.h +++ b/tools/clang/include/clang/Serialization/ASTWriter.h @@ -405,7 +405,7 @@ class ASTWriter : public ASTDeserializationListener, SmallVector StmtsToEmit; /// \brief Statements collection to use for ASTWriter::AddStmt(). - /// It will point to StmtsToEmit unless it is overriden. + /// It will point to StmtsToEmit unless it is overridden. SmallVector *CollectedStmts; /// \brief Mapping from SwitchCase statements to IDs. diff --git a/tools/clang/include/clang/Serialization/ModuleManager.h b/tools/clang/include/clang/Serialization/ModuleManager.h index ab39aefa94..018ebc2b43 100644 --- a/tools/clang/include/clang/Serialization/ModuleManager.h +++ b/tools/clang/include/clang/Serialization/ModuleManager.h @@ -293,7 +293,7 @@ class ModuleManager { /// module before visiting its imports. The visitor can control how to /// continue the visitation through its return value. /// - /// \param PostorderVisitor A visitor function taht will be invoked with each + /// \param PostorderVisitor A visitor function that will be invoked with each /// module after visiting its imports. The visitor may return true at any time /// to abort the depth-first visitation. /// diff --git a/tools/clang/lib/ARCMigrate/FileRemapper.cpp b/tools/clang/lib/ARCMigrate/FileRemapper.cpp index 72a55da5d5..dd432c1a0f 100644 --- a/tools/clang/lib/ARCMigrate/FileRemapper.cpp +++ b/tools/clang/lib/ARCMigrate/FileRemapper.cpp @@ -226,7 +226,7 @@ void FileRemapper::remap(const FileEntry *file, const FileEntry *newfile) { const FileEntry *FileRemapper::getOriginalFile(StringRef filePath) { const FileEntry *file = FileMgr->getFile(filePath); - // If we are updating a file that overriden an original file, + // If we are updating a file that overridden an original file, // actually update the original file. llvm::DenseMap::iterator I = ToFromMappings.find(file); diff --git a/tools/clang/lib/AST/DeclObjC.cpp b/tools/clang/lib/AST/DeclObjC.cpp index 280c412ae8..a1d7c34135 100644 --- a/tools/clang/lib/AST/DeclObjC.cpp +++ b/tools/clang/lib/AST/DeclObjC.cpp @@ -1051,8 +1051,8 @@ static void CollectOverriddenMethodsRecurse(const ObjCContainerDecl *Container, if (!Container) return; - // In categories look for overriden methods from protocols. A method from - // category is not "overriden" since it is considered as the "same" method + // In categories look for overridden methods from protocols. A method from + // category is not "overridden" since it is considered as the "same" method // (same USR) as the one from the interface. if (const ObjCCategoryDecl * Category = dyn_cast(Container)) { diff --git a/tools/clang/lib/AST/VTableBuilder.cpp b/tools/clang/lib/AST/VTableBuilder.cpp index ca5f0aad00..3e9fde1ff4 100644 --- a/tools/clang/lib/AST/VTableBuilder.cpp +++ b/tools/clang/lib/AST/VTableBuilder.cpp @@ -3065,7 +3065,7 @@ void VFTableBuilder::AddMethods(BaseSubobject Base, unsigned BaseDepth, } // In case we need a return adjustment, we'll add a new slot for - // the overrider. Mark the overriden method as shadowed by the new slot. + // the overrider. Mark the overridden method as shadowed by the new slot. OverriddenMethodInfo.Shadowed = true; // Force a special name mangling for a return-adjusting thunk diff --git a/tools/clang/lib/CodeGen/CGHLSLMS.cpp b/tools/clang/lib/CodeGen/CGHLSLMS.cpp index 6b2d84d24e..1b806933e6 100644 --- a/tools/clang/lib/CodeGen/CGHLSLMS.cpp +++ b/tools/clang/lib/CodeGen/CGHLSLMS.cpp @@ -2450,7 +2450,7 @@ void CGMSHLSLRuntime::AddHLSLFunctionInfo(Function *F, const FunctionDecl *FD) { parmDecl->getLocation(), Diags.getCustomDiagID(DiagnosticsEngine::Error, "MaxRecordsSharedWith must reference a valid " - "ouput parameter name.")); + "output parameter name.")); } else if (ix == (int)outputNo) { Diags.Report( parmDecl->getLocation(), diff --git a/tools/clang/lib/SPIRV/DeclResultIdMapper.cpp b/tools/clang/lib/SPIRV/DeclResultIdMapper.cpp index 9fed57b41b..3356fb2570 100644 --- a/tools/clang/lib/SPIRV/DeclResultIdMapper.cpp +++ b/tools/clang/lib/SPIRV/DeclResultIdMapper.cpp @@ -3089,7 +3089,7 @@ void DeclResultIdMapper::storeToShaderOutputVariable( ptr->setStorageClass(spv::StorageClass::Output); spvBuilder.createStore(ptr, value, stageVarData.decl->getLocation()); } - // Special handling of HS ouput, for which we write to only one + // Special handling of HS output, for which we write to only one // element in the per-vertex data array: the one indexed by // SV_ControlPointID. else if (stageVarData.invocationId.hasValue() && diff --git a/tools/clang/lib/SPIRV/DeclResultIdMapper.h b/tools/clang/lib/SPIRV/DeclResultIdMapper.h index c942280a54..492372f3e7 100644 --- a/tools/clang/lib/SPIRV/DeclResultIdMapper.h +++ b/tools/clang/lib/SPIRV/DeclResultIdMapper.h @@ -232,7 +232,7 @@ class DeclResultIdMapper { /// by the other overload. bool createStageOutputVar(const DeclaratorDecl *decl, SpirvInstruction *storedValue, bool forPCF); - /// \brief Overload for handling HS control point stage ouput variable. + /// \brief Overload for handling HS control point stage output variable. bool createStageOutputVar(const DeclaratorDecl *decl, uint32_t arraySize, SpirvInstruction *invocationId, SpirvInstruction *storedValue); @@ -508,7 +508,7 @@ class DeclResultIdMapper { /// buffers. Returns nullptr if it does not. const CounterVarFields *getCounterVarFields(const DeclaratorDecl *decl); - /// \brief Returns all defined stage (builtin/input/ouput) variables for the + /// \brief Returns all defined stage (builtin/input/output) variables for the /// entry point function entryPoint in this mapper. std::vector collectStageVars(SpirvFunction *entryPoint) const; diff --git a/tools/clang/lib/SPIRV/GlPerVertex.h b/tools/clang/lib/SPIRV/GlPerVertex.h index 86136f056a..6522067d3c 100644 --- a/tools/clang/lib/SPIRV/GlPerVertex.h +++ b/tools/clang/lib/SPIRV/GlPerVertex.h @@ -52,7 +52,7 @@ class GlPerVertex { /// Calculates the layout for ClipDistance/CullDistance arrays. void calculateClipCullDistanceArraySize(); - /// Emits SPIR-V code for the input and/or ouput ClipDistance/CullDistance + /// Emits SPIR-V code for the input and/or output ClipDistance/CullDistance /// builtin variables. If inputArrayLength is not zero, the input variable /// will have an additional arrayness of the given size. Similarly for /// outputArrayLength. diff --git a/tools/clang/lib/SPIRV/InitListHandler.cpp b/tools/clang/lib/SPIRV/InitListHandler.cpp index 0d476dd060..5faffec4eb 100644 --- a/tools/clang/lib/SPIRV/InitListHandler.cpp +++ b/tools/clang/lib/SPIRV/InitListHandler.cpp @@ -6,7 +6,7 @@ // License. See LICENSE.TXT for details. //===----------------------------------------------------------------------===// // -// This file implements an initalizer list handler that takes in an +// This file implements an initializer list handler that takes in an // InitListExpr and emits the corresponding SPIR-V instructions for it. // //===----------------------------------------------------------------------===// diff --git a/tools/clang/lib/SPIRV/InitListHandler.h b/tools/clang/lib/SPIRV/InitListHandler.h index 4ee21662a0..da0af46189 100644 --- a/tools/clang/lib/SPIRV/InitListHandler.h +++ b/tools/clang/lib/SPIRV/InitListHandler.h @@ -6,7 +6,7 @@ // License. See LICENSE.TXT for details. //===----------------------------------------------------------------------===// // -// This file defines an initalizer list handler that takes in an InitListExpr +// This file defines an initializer list handler that takes in an InitListExpr // and emits the corresponding SPIR-V instructions for it. // //===----------------------------------------------------------------------===// @@ -41,14 +41,14 @@ namespace spirv { /// The AST is designed to omit the composite extraction and construction. It /// also does not have casts to the expected types and from lvalues to rvalues. /// -/// Resulting from the above reasons, the logic for handling initalizer lists +/// Resulting from the above reasons, the logic for handling initializer lists /// are complicated. So we have this dedicated class for it. It is built on /// top of the SpirvEmitter class and calls into SPIRVEmitter for normal /// translation tasks. This gives better code structure. /// -/// The logic for handling initalizer lists is largely the following: +/// The logic for handling initializer lists is largely the following: /// -/// First we flatten() the given initalizer list recursively and put all +/// First we flatten() the given initializer list recursively and put all /// SPIR-V instructions for non-nitializer-list AST Exprs into the initializers /// queue. This handles curly braces of even wired forms like /// float2x2 mat = {{1.}, {2., {{3.}}}, 4.}; diff --git a/tools/clang/lib/Sema/SemaDecl.cpp b/tools/clang/lib/Sema/SemaDecl.cpp index a772054960..19d6cbacbc 100644 --- a/tools/clang/lib/Sema/SemaDecl.cpp +++ b/tools/clang/lib/Sema/SemaDecl.cpp @@ -6634,7 +6634,7 @@ namespace { enum OverrideErrorKind { OEK_All, OEK_NonDeleted, OEK_Deleted }; } /// \brief Report an error regarding overriding, along with any relevant -/// overriden methods. +/// overridden methods. /// /// \param DiagID the primary error to report. /// \param MD the overriding method. @@ -9324,7 +9324,7 @@ void Sema::AddInitializerToDecl(Decl *RealDecl, Expr *Init, // C++11 [class.static.data]p3: // If a non-volatile const static data member is of integral or // enumeration type, its declaration in the class definition can - // specify a brace-or-equal-initializer in which every initalizer-clause + // specify a brace-or-equal-initializer in which every initializer-clause // that is an assignment-expression is a constant expression. A static // data member of literal type can be declared in the class definition // with the constexpr specifier; if so, its declaration shall specify a diff --git a/tools/clang/lib/Sema/SemaDeclCXX.cpp b/tools/clang/lib/Sema/SemaDeclCXX.cpp index 3cd892f49e..e7bde3cfaf 100644 --- a/tools/clang/lib/Sema/SemaDeclCXX.cpp +++ b/tools/clang/lib/Sema/SemaDeclCXX.cpp @@ -6315,7 +6315,7 @@ namespace { }; } -/// \brief Check whether any most overriden method from MD in Methods +/// \brief Check whether any most overridden method from MD in Methods static bool CheckMostOverridenMethods(const CXXMethodDecl *MD, const llvm::SmallPtrSetImpl& Methods) { if (MD->size_overridden_methods() == 0) @@ -6377,7 +6377,7 @@ static bool FindHiddenVirtualMethod(const CXXBaseSpecifier *Specifier, return foundSameNameMethod; } -/// \brief Add the most overriden methods from MD to Methods +/// \brief Add the most overridden methods from MD to Methods static void AddMostOverridenMethods(const CXXMethodDecl *MD, llvm::SmallPtrSetImpl& Methods) { if (MD->size_overridden_methods() == 0) @@ -6402,7 +6402,7 @@ void Sema::FindHiddenVirtualMethods(CXXMethodDecl *MD, Data.Method = MD; Data.S = this; - // Keep the base methods that were overriden or introduced in the subclass + // Keep the base methods that were overridden or introduced in the subclass // by 'using' in a set. A base method not in this set is hidden. CXXRecordDecl *DC = MD->getParent(); DeclContext::lookup_result R = DC->lookup(MD->getDeclName()); diff --git a/tools/clang/lib/Sema/SemaHLSL.cpp b/tools/clang/lib/Sema/SemaHLSL.cpp index 6c95fdfa1e..31e2261929 100644 --- a/tools/clang/lib/Sema/SemaHLSL.cpp +++ b/tools/clang/lib/Sema/SemaHLSL.cpp @@ -7214,7 +7214,7 @@ bool HLSLExternalSource::MatchArguments( if (pArgument->uRows && pArgument->uCols) { UINT uRows, uCols = 0; - // if type is overriden, use new type size, for + // if type is overridden, use new type size, for // now it only supports scalars if (pArgument->uRows >= IA_SPECIAL_BASE) { UINT uSpecialId = pArgument->uRows - IA_SPECIAL_BASE; @@ -9596,7 +9596,7 @@ void HLSLExternalSource::GetConversionForm(QualType type, } break; default: - // Only convertable shapekinds are relevant. + // Only convertible shapekinds are relevant. break; } } @@ -9745,7 +9745,7 @@ static bool ConvertDimensions(ArTypeInfo TargetInfo, ArTypeInfo SourceInfo, // - same number of components // - one target component (truncate to scalar) // - matrix has one row or one column, and fewer components (truncation) - // Other cases disallowed even if implicitly convertable in two steps + // Other cases disallowed even if implicitly convertible in two steps // (truncation+conversion). if (1 == SourceInfo.uCols && TargetComponents != 1) { // splat: vector<[..], 1> -> matrix<[..], M, N> @@ -16256,7 +16256,7 @@ bool Sema::DiagnoseHLSLDecl(Declarator &D, DeclContext *DC, Expr *BitWidth, } } - // Validate that stream-ouput objects are marked as inout + // Validate that stream-output objects are marked as inout if (isParameter && !(usageIn && usageOut) && (basicKind == ArBasicKind::AR_OBJECT_LINESTREAM || basicKind == ArBasicKind::AR_OBJECT_POINTSTREAM || diff --git a/tools/clang/test/CodeGenSPIRV/spirv.storage-class.hlsl b/tools/clang/test/CodeGenSPIRV/spirv.storage-class.hlsl index a7ecddd721..3a3845c445 100644 --- a/tools/clang/test/CodeGenSPIRV/spirv.storage-class.hlsl +++ b/tools/clang/test/CodeGenSPIRV/spirv.storage-class.hlsl @@ -9,7 +9,7 @@ static float4 sgVar; // Privte // Note: The entry function in the source code is treated as a normal function. // Another wrapper function take care of handling stage input/output variables. -// and calling the source code entry function. So there are no Input/Ouput +// and calling the source code entry function. So there are no Input/Output // storage class involved in the following. VSOut main(float4 input: A /* Function */, uint index: B /* Function */) { diff --git a/tools/clang/test/CodeGenSPIRV/var.init.struct.hlsl b/tools/clang/test/CodeGenSPIRV/var.init.struct.hlsl index 5c2b4333a7..f7d7044194 100644 --- a/tools/clang/test/CodeGenSPIRV/var.init.struct.hlsl +++ b/tools/clang/test/CodeGenSPIRV/var.init.struct.hlsl @@ -79,13 +79,13 @@ void main() { // CHECK-NEXT: OpStore %s2 [[s2]] S s2 = {{1, 2}, 3, {{42}, {{1.}}}, {2., {3., 4.}}}; - // Flat initalizer list for nested structs + // Flat initializer list for nested structs // CHECK: [[y:%[0-9]+]] = OpCompositeConstruct %O %int_1 // CHECK-NEXT: [[p:%[0-9]+]] = OpCompositeConstruct %P [[y]] %float_2 // CHECK-NEXT: OpStore %p [[p]] P p = {1, 2.}; - // Initalizer list for struct with inheritance. + // Initializer list for struct with inheritance. // CHECK: [[y:%[0-9]+]] = OpCompositeConstruct %O %int_1 // CHECK-NEXT: [[q:%[0-9]+]] = OpCompositeConstruct %Q [[y]] %float_2 // CHECK-NEXT: OpStore %q [[q]] diff --git a/tools/clang/test/SemaCXX/warn-range-loop-analysis.cpp b/tools/clang/test/SemaCXX/warn-range-loop-analysis.cpp index 91756b970e..98c4a18776 100644 --- a/tools/clang/test/SemaCXX/warn-range-loop-analysis.cpp +++ b/tools/clang/test/SemaCXX/warn-range-loop-analysis.cpp @@ -29,7 +29,7 @@ struct Bar { // test1-6 are set in pairs, the odd numbers are the non-reference returning // versions of the even numbers. // test7-9 use an array instead of a range object -// tests use all four versions of the loop varaible, const &T, const T, T&, and +// tests use all four versions of the loop variable, const &T, const T, T&, and // T. Versions producing errors and are commented out. // // Conversion chart: diff --git a/tools/clang/test/SemaHLSL/max_output_records_invalidref.hlsl b/tools/clang/test/SemaHLSL/max_output_records_invalidref.hlsl index f632d0a44e..fd6e72ddac 100644 --- a/tools/clang/test/SemaHLSL/max_output_records_invalidref.hlsl +++ b/tools/clang/test/SemaHLSL/max_output_records_invalidref.hlsl @@ -20,9 +20,9 @@ struct rec1 void InvalidRef( RWThreadNodeInputRecord InputyMcInputFace, // MaxRecordsSharedWith referencing non-existant parameter - [MaxRecordsSharedWith(Output7)] NodeOutput Output1, /* expected-error {{attribute MaxRecordsSharedWith must reference a valid ouput parameter name.}} */ + [MaxRecordsSharedWith(Output7)] NodeOutput Output1, /* expected-error {{attribute MaxRecordsSharedWith must reference a valid output parameter name.}} */ // MaxRecordsSharedWith referencing an input parameter - [MaxRecordsSharedWith(InputyMcInputFace)] NodeOutput Output2, /* expected-error {{attribute MaxRecordsSharedWith must reference a valid ouput parameter name.}} */ + [MaxRecordsSharedWith(InputyMcInputFace)] NodeOutput Output2, /* expected-error {{attribute MaxRecordsSharedWith must reference a valid output parameter name.}} */ // MaxRecordsSharedWith referencing its own parameter [MaxRecordsSharedWith(Output3)] NodeOutput Output3) /* expected-error {{attribute MaxRecordsSharedWith must not reference the same parameter it is applied to.}} */ { diff --git a/tools/clang/test/SemaHLSL/vector-conditional.hlsl b/tools/clang/test/SemaHLSL/vector-conditional.hlsl index aa4b1d23f6..004b7da20e 100644 --- a/tools/clang/test/SemaHLSL/vector-conditional.hlsl +++ b/tools/clang/test/SemaHLSL/vector-conditional.hlsl @@ -212,7 +212,7 @@ float4 main(float4 v0 : TEXCOORD) : SV_Target acc += T.Sample(S, v0.xy); // Texture object as condition - acc += T ? v0 : (v0 + 1.0F); /* expected-error {{conditional operator only supports condition with scalar, vector, or matrix types convertable to bool.}} fxc-error {{X3020: conditional must be numeric}} */ + acc += T ? v0 : (v0 + 1.0F); /* expected-error {{conditional operator only supports condition with scalar, vector, or matrix types convertible to bool.}} fxc-error {{X3020: conditional must be numeric}} */ Texture2D TOut1 = T1; Texture2D TOut2 = T2; diff --git a/tools/clang/tools/libclang/CXCursor.cpp b/tools/clang/tools/libclang/CXCursor.cpp index b8f1866ba6..07468df816 100644 --- a/tools/clang/tools/libclang/CXCursor.cpp +++ b/tools/clang/tools/libclang/CXCursor.cpp @@ -1390,17 +1390,17 @@ void clang_getOverriddenCursors(CXCursor cursor, assert(cxcursor::getCursorTU(backRefCursor) == TU); Vec->push_back(backRefCursor); - // Get the overriden cursors. + // Get the overridden cursors. cxcursor::getOverriddenCursors(cursor, *Vec); - // Did we get any overriden cursors? If not, return Vec to the pool + // Did we get any overridden cursors? If not, return Vec to the pool // of available cursor vectors. if (Vec->size() == 1) { pool.AvailableCursors.push_back(Vec); return; } - // Now tell the caller about the overriden cursors. + // Now tell the caller about the overridden cursors. assert(Vec->size() > 1); *overridden = &((*Vec)[1]); *num_overridden = Vec->size() - 1; diff --git a/tools/clang/tools/libclang/CXCursor.h b/tools/clang/tools/libclang/CXCursor.h index 083b86934d..dbbb1bbb4e 100644 --- a/tools/clang/tools/libclang/CXCursor.h +++ b/tools/clang/tools/libclang/CXCursor.h @@ -251,11 +251,11 @@ CXTranslationUnit getCursorTU(CXCursor Cursor); void getOverriddenCursors(CXCursor cursor, SmallVectorImpl &overridden); -/// \brief Create an opaque pool used for fast generation of overriden +/// \brief Create an opaque pool used for fast generation of overridden /// CXCursor arrays. void *createOverridenCXCursorsPool(); -/// \brief Dispose of the overriden CXCursors pool. +/// \brief Dispose of the overridden CXCursors pool. void disposeOverridenCXCursorsPool(void *pool); /// \brief Returns a index/location pair for a selector identifier if the cursor diff --git a/tools/clang/unittests/StaticAnalyzer/AnalyzerOptionsTest.cpp b/tools/clang/unittests/StaticAnalyzer/AnalyzerOptionsTest.cpp index 33f1740bea..061e8d8eb2 100644 --- a/tools/clang/unittests/StaticAnalyzer/AnalyzerOptionsTest.cpp +++ b/tools/clang/unittests/StaticAnalyzer/AnalyzerOptionsTest.cpp @@ -36,9 +36,9 @@ TEST(StaticAnalyzerOptions, SearchInParentPackageTests) { // search mode. CheckerOneMock CheckerOne; EXPECT_TRUE(Opts.getBooleanOption("Option", false, &CheckerOne)); - // The package option is overriden with a checker option. + // The package option is overridden with a checker option. EXPECT_TRUE(Opts.getBooleanOption("Option", false, &CheckerOne, true)); - // The Outer package option is overriden by the Inner package option. No + // The Outer package option is overridden by the Inner package option. No // package option is specified. EXPECT_TRUE(Opts.getBooleanOption("Option2", false, &CheckerOne, true)); // No package option is specified and search in packages is turned off. The diff --git a/utils/TableGen/CodeGenSchedule.cpp b/utils/TableGen/CodeGenSchedule.cpp index bc27481869..141c364760 100644 --- a/utils/TableGen/CodeGenSchedule.cpp +++ b/utils/TableGen/CodeGenSchedule.cpp @@ -1439,7 +1439,7 @@ void CodeGenSchedModels::collectProcResources() { if (SCI->ItinClassDef) collectItinProcResources(SCI->ItinClassDef); else { - // This class may have a default ReadWrite list which can be overriden by + // This class may have a default ReadWrite list which can be overridden by // InstRW definitions. if (!SCI->InstRWs.empty()) { for (RecIter RWI = SCI->InstRWs.begin(), RWE = SCI->InstRWs.end(); diff --git a/utils/TableGen/SubtargetEmitter.cpp b/utils/TableGen/SubtargetEmitter.cpp index 03d7f4e868..6e12426c6d 100644 --- a/utils/TableGen/SubtargetEmitter.cpp +++ b/utils/TableGen/SubtargetEmitter.cpp @@ -865,7 +865,7 @@ void SubtargetEmitter::GenSchedClassTables(const CodeGenProcModel &ProcModel, IdxVec Writes = SCI->Writes; IdxVec Reads = SCI->Reads; if (!SCI->InstRWs.empty()) { - // This class has a default ReadWrite list which can be overriden by + // This class has a default ReadWrite list which can be overridden by // InstRW definitions. Record *RWDef = nullptr; for (RecIter RWI = SCI->InstRWs.begin(), RWE = SCI->InstRWs.end(); diff --git a/utils/version/gen_version.py b/utils/version/gen_version.py index 97856d42bf..27939f7e16 100644 --- a/utils/version/gen_version.py +++ b/utils/version/gen_version.py @@ -17,7 +17,7 @@ # 3. **Fixed version build** # Build by using `hctbuild -fv`. Enables overriding of the version information. The fixed version is -# read from `utils\version\version.inc`. Location of the version file can be overriden by `-fvloc` option +# read from `utils\version\version.inc`. Location of the version file can be overridden by `-fvloc` option # on `hctbuild`. # In addition to the numbered version the product version string on the binaries will also include branch From f4421e8a32531636353def8c83e91baf859c59df Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 10 Mar 2026 18:11:26 +0000 Subject: [PATCH 3/4] Fix remaining convertable typos in docs and test comments Co-authored-by: damyanp <8118402+damyanp@users.noreply.github.com> --- docs/YamlIO.rst | 2 +- test/Transforms/SROA/basictest.ll | 2 +- tools/clang/test/SemaCXX/vector.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/YamlIO.rst b/docs/YamlIO.rst index f0baeb4c69..a11717c573 100644 --- a/docs/YamlIO.rst +++ b/docs/YamlIO.rst @@ -730,7 +730,7 @@ it is parsed. This allows dynamic types of nodes. But the YAML I/O model uses static typing, so there are limits to how you can use tags with the YAML I/O model. Recently, we added support to YAML I/O for checking/setting the optional tag on a map. Using this functionality it is even possbile to support different -mappings, as long as they are convertable. +mappings, as long as they are convertible. To check a tag, inside your mapping() method you can use io.mapTag() to specify what the tag should be. This will also add that tag when writing yaml. diff --git a/test/Transforms/SROA/basictest.ll b/test/Transforms/SROA/basictest.ll index ad2794167a..195b1246f2 100644 --- a/test/Transforms/SROA/basictest.ll +++ b/test/Transforms/SROA/basictest.ll @@ -1270,7 +1270,7 @@ define void @PR15674(i8* %data, i8* %src, i32 %size) { ; Arrange (via control flow) to have unmerged stores of a particular width to ; an alloca where we incrementally store from the end of the array toward the ; beginning of the array. Ensure that the final integer store, despite being -; convertable to the integer type that we end up promoting this alloca toward, +; convertible to the integer type that we end up promoting this alloca toward, ; doesn't get widened to a full alloca store. ; CHECK-LABEL: @PR15674( diff --git a/tools/clang/test/SemaCXX/vector.cpp b/tools/clang/test/SemaCXX/vector.cpp index bcd7fedb4d..fdacfb119f 100644 --- a/tools/clang/test/SemaCXX/vector.cpp +++ b/tools/clang/test/SemaCXX/vector.cpp @@ -184,7 +184,7 @@ void test_implicit_conversions(bool Cond, char16 c16, longlong16 ll16, (void)(Cond? to_c16 : to_c16e); (void)(Cond? to_ll16e : to_ll16); - // These 2 are convertable with -flax-vector-conversions (default) + // These 2 are convertible with -flax-vector-conversions (default) (void)(Cond? to_c16 : to_ll16); (void)(Cond? to_c16e : to_ll16e); } From 696092f0b9cb96242e50d67e9d7e979edc76fef0 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 10 Mar 2026 18:46:51 +0000 Subject: [PATCH 4/4] Limit typo fixes to DXC-specific files that impact generated binaries and SPIR-V.rst Co-authored-by: damyanp <8118402+damyanp@users.noreply.github.com> --- docs/LangRef.rst | 2 +- docs/YamlIO.rst | 2 +- include/dxc/dxcapi.internal.h | 2 +- include/llvm/CodeGen/MachineScheduler.h | 2 +- include/llvm/CodeGen/Passes.h | 8 ++++---- include/llvm/ExecutionEngine/Orc/ExecutionUtils.h | 2 +- include/llvm/IR/LegacyPassNameParser.h | 2 +- include/llvm/MC/MCSchedule.h | 4 ++-- include/llvm/Pass.h | 14 +++++++------- include/llvm/Support/CommandLine.h | 2 +- include/llvm/Target/TargetLoweringObjectFile.h | 2 +- include/llvm/Target/TargetOptions.h | 2 +- include/llvm/Target/TargetRegisterInfo.h | 2 +- include/llvm/Target/TargetSchedule.td | 2 +- lib/AsmParser/LLParser.cpp | 2 +- lib/CodeGen/Passes.cpp | 4 ++-- lib/CodeGen/RegAllocPBQP.cpp | 2 +- lib/CodeGen/TargetInstrInfo.cpp | 2 +- lib/IR/Constants.cpp | 4 ++-- lib/IR/Verifier.cpp | 4 ++-- lib/TableGen/TGParser.cpp | 2 +- lib/Transforms/Scalar/RewriteStatepointsForGC.cpp | 2 +- lib/Transforms/Scalar/SROA.cpp | 2 +- test/Transforms/MergeFunc/fold-weak.ll | 2 +- test/Transforms/SROA/basictest.ll | 2 +- test/Verifier/llvm.used-invalid-init.ll | 2 +- test/lit.cfg | 2 +- tools/clang/docs/analyzer/IPA.txt | 2 +- tools/clang/include/clang/Driver/Options.td | 2 +- tools/clang/include/clang/SPIRV/SpirvBuilder.h | 2 +- tools/clang/include/clang/Sema/TypoCorrection.h | 2 +- .../clang/include/clang/Serialization/ASTWriter.h | 2 +- .../include/clang/Serialization/ModuleManager.h | 2 +- tools/clang/lib/ARCMigrate/FileRemapper.cpp | 2 +- tools/clang/lib/AST/DeclObjC.cpp | 4 ++-- tools/clang/lib/AST/VTableBuilder.cpp | 2 +- tools/clang/lib/SPIRV/DeclResultIdMapper.cpp | 2 +- tools/clang/lib/SPIRV/DeclResultIdMapper.h | 4 ++-- tools/clang/lib/SPIRV/GlPerVertex.h | 2 +- tools/clang/lib/SPIRV/InitListHandler.cpp | 2 +- tools/clang/lib/SPIRV/InitListHandler.h | 8 ++++---- tools/clang/lib/Sema/SemaDecl.cpp | 4 ++-- tools/clang/lib/Sema/SemaDeclCXX.cpp | 6 +++--- tools/clang/lib/Sema/SemaHLSL.cpp | 8 ++++---- .../test/CodeGenSPIRV/spirv.storage-class.hlsl | 2 +- tools/clang/test/CodeGenSPIRV/var.init.struct.hlsl | 4 ++-- tools/clang/test/SemaCXX/vector.cpp | 2 +- .../test/SemaCXX/warn-range-loop-analysis.cpp | 2 +- tools/clang/tools/libclang/CXCursor.cpp | 6 +++--- tools/clang/tools/libclang/CXCursor.h | 4 ++-- .../StaticAnalyzer/AnalyzerOptionsTest.cpp | 4 ++-- utils/TableGen/CodeGenSchedule.cpp | 2 +- utils/TableGen/SubtargetEmitter.cpp | 2 +- utils/version/gen_version.py | 2 +- 54 files changed, 83 insertions(+), 83 deletions(-) diff --git a/docs/LangRef.rst b/docs/LangRef.rst index 69eccb464e..0039d01427 100644 --- a/docs/LangRef.rst +++ b/docs/LangRef.rst @@ -2927,7 +2927,7 @@ the same register to an output and an input. If this is not safe (e.g. if the assembly contains two instructions, where the first writes to one output, and the second reads an input and writes to a second output), then the "``&``" modifier must be used (e.g. "``=&r``") to specify that the output is an -"early-clobber" output. Marking an output as "early-clobber" ensures that LLVM +"early-clobber" output. Marking an ouput as "early-clobber" ensures that LLVM will not use the same register for any inputs (other than an input tied to this output). diff --git a/docs/YamlIO.rst b/docs/YamlIO.rst index a11717c573..f0baeb4c69 100644 --- a/docs/YamlIO.rst +++ b/docs/YamlIO.rst @@ -730,7 +730,7 @@ it is parsed. This allows dynamic types of nodes. But the YAML I/O model uses static typing, so there are limits to how you can use tags with the YAML I/O model. Recently, we added support to YAML I/O for checking/setting the optional tag on a map. Using this functionality it is even possbile to support different -mappings, as long as they are convertible. +mappings, as long as they are convertable. To check a tag, inside your mapping() method you can use io.mapTag() to specify what the tag should be. This will also add that tag when writing yaml. diff --git a/include/dxc/dxcapi.internal.h b/include/dxc/dxcapi.internal.h index a76d1983f8..ca4b892748 100644 --- a/include/dxc/dxcapi.internal.h +++ b/include/dxc/dxcapi.internal.h @@ -276,7 +276,7 @@ CROSS_PLATFORM_UUIDOF(IDxcLangExtensions3, "A1B19880-FB1F-4920-9BC5-50356483BAC1") struct IDxcLangExtensions3 : public IDxcLangExtensions2 { public: - /// Registers a semantic define which cannot be overridden using the flag + /// Registers a semantic define which cannot be overriden using the flag /// -override-opt-semdefs virtual HRESULT STDMETHODCALLTYPE RegisterNonOptSemanticDefine(LPCWSTR name) = 0; diff --git a/include/llvm/CodeGen/MachineScheduler.h b/include/llvm/CodeGen/MachineScheduler.h index c98fd735ca..9506023560 100644 --- a/include/llvm/CodeGen/MachineScheduler.h +++ b/include/llvm/CodeGen/MachineScheduler.h @@ -148,7 +148,7 @@ class MachineSchedRegistry class ScheduleDAGMI; /// Define a generic scheduling policy for targets that don't provide their own -/// MachineSchedStrategy. This can be overridden for each scheduling region +/// MachineSchedStrategy. This can be overriden for each scheduling region /// before building the DAG. struct MachineSchedPolicy { // Allow the scheduler to disable register pressure tracking. diff --git a/include/llvm/CodeGen/Passes.h b/include/llvm/CodeGen/Passes.h index e2e581b9e5..5d82921744 100644 --- a/include/llvm/CodeGen/Passes.h +++ b/include/llvm/CodeGen/Passes.h @@ -42,7 +42,7 @@ using legacy::PassManagerBase; /// /// The PassConfig API prefers dealing with IDs because they are safer and more /// efficient. IDs decouple configuration from instantiation. This way, when a -/// pass is overridden, it isn't unnecessarily instantiated. It is also unsafe to +/// pass is overriden, it isn't unnecessarily instantiated. It is also unsafe to /// refer to a Pass pointer after adding it to a pass manager, which deletes /// redundant pass instances. /// @@ -194,7 +194,7 @@ class TargetPassConfig : public ImmutablePass { bool getEnableShrinkWrap() const; /// Return true if the default global register allocator is in use and - /// has not be overridden on the command line with '-regalloc=...' + /// has not be overriden on the command line with '-regalloc=...' bool usingDefaultRegAlloc() const; /// Add common target configurable passes that perform LLVM IR to IR @@ -251,7 +251,7 @@ class TargetPassConfig : public ImmutablePass { /// codegen pass pipeline where targets may insert passes. Methods with /// out-of-line standard implementations are major CodeGen stages called by /// addMachinePasses. Some targets may override major stages when inserting - /// passes is insufficient, but maintaining overridden stages is more work. + /// passes is insufficient, but maintaining overriden stages is more work. /// /// addPreISelPasses - This method should add any "last minute" LLVM->LLVM @@ -346,7 +346,7 @@ class TargetPassConfig : public ImmutablePass { /// machine verification pass afterwards. void addPass(Pass *P, bool verifyAfter = true, bool printAfter = true); - /// addMachinePasses helper to create the target-selected or overridden + /// addMachinePasses helper to create the target-selected or overriden /// regalloc pass. FunctionPass *createRegAllocPass(bool Optimized); diff --git a/include/llvm/ExecutionEngine/Orc/ExecutionUtils.h b/include/llvm/ExecutionEngine/Orc/ExecutionUtils.h index 4a7ca57f09..c10508cc8a 100644 --- a/include/llvm/ExecutionEngine/Orc/ExecutionUtils.h +++ b/include/llvm/ExecutionEngine/Orc/ExecutionUtils.h @@ -151,7 +151,7 @@ class LocalCXXRuntimeOverrides { return nullptr; } - /// Run any destructors recorded by the overridden __cxa_atexit function + /// Run any destructors recorded by the overriden __cxa_atexit function /// (CXAAtExitOverride). void runDestructors(); diff --git a/include/llvm/IR/LegacyPassNameParser.h b/include/llvm/IR/LegacyPassNameParser.h index cde85abd15..8d6647bd86 100644 --- a/include/llvm/IR/LegacyPassNameParser.h +++ b/include/llvm/IR/LegacyPassNameParser.h @@ -52,7 +52,7 @@ class PassNameParser : public PassRegistrationListener, enumeratePasses(); } - // ignorablePassImpl - Can be overridden in subclasses to refine the list of + // ignorablePassImpl - Can be overriden in subclasses to refine the list of // which passes we want to include. // virtual bool ignorablePassImpl(const PassInfo *P) const { return false; } diff --git a/include/llvm/MC/MCSchedule.h b/include/llvm/MC/MCSchedule.h index 7d912ef83d..c097916310 100644 --- a/include/llvm/MC/MCSchedule.h +++ b/include/llvm/MC/MCSchedule.h @@ -166,7 +166,7 @@ struct MCSchedModel { // LoadLatency is the expected latency of load instructions. // - // If MinLatency >= 0, this may be overridden for individual load opcodes by + // If MinLatency >= 0, this may be overriden for individual load opcodes by // InstrItinerary OperandCycles. unsigned LoadLatency; static const unsigned DefaultLoadLatency = 4; @@ -175,7 +175,7 @@ struct MCSchedModel { // See TargetInstrInfo::isHighLatencyDef(). // By default, this is set to an arbitrarily high number of cycles // likely to have some impact on scheduling heuristics. - // If MinLatency >= 0, this may be overridden by InstrItinData OperandCycles. + // If MinLatency >= 0, this may be overriden by InstrItinData OperandCycles. unsigned HighLatency; static const unsigned DefaultHighLatency = 10; diff --git a/include/llvm/Pass.h b/include/llvm/Pass.h index 7d866d822f..a948cb9afa 100644 --- a/include/llvm/Pass.h +++ b/include/llvm/Pass.h @@ -149,7 +149,7 @@ protected: raw_ostream *OSOverride; // HLSL Change /// virtual bool doInitialization(Module &) { return false; } - /// doFinalization - Virtual method overridden by subclasses to do any + /// doFinalization - Virtual method overriden by subclasses to do any /// necessary clean up after all passes have run. /// virtual bool doFinalization(Module &) { return false; } @@ -183,7 +183,7 @@ protected: raw_ostream *OSOverride; // HLSL Change void setResolver(AnalysisResolver *AR); AnalysisResolver *getResolver() const { return Resolver; } - /// getAnalysisUsage - This function should be overridden by passes that need + /// getAnalysisUsage - This function should be overriden by passes that need /// analysis information to do their job. If a pass specifies that it uses a /// particular analysis result to this function, it can then use the /// getAnalysis() function, below. @@ -278,7 +278,7 @@ class ModulePass : public Pass { Pass *createPrinterPass(raw_ostream &O, const std::string &Banner) const override; - /// runOnModule - Virtual method overridden by subclasses to process the module + /// runOnModule - Virtual method overriden by subclasses to process the module /// being operated on. virtual bool runOnModule(Module &M) = 0; @@ -300,7 +300,7 @@ class ModulePass : public Pass { /// class ImmutablePass : public ModulePass { public: - /// initializePass - This method may be overridden by immutable passes to allow + /// initializePass - This method may be overriden by immutable passes to allow /// them to perform various initialization actions they require. This is /// primarily because an ImmutablePass can "require" another ImmutablePass, /// and if it does, the overloaded version of initializePass may get access to @@ -338,7 +338,7 @@ class FunctionPass : public Pass { Pass *createPrinterPass(raw_ostream &O, const std::string &Banner) const override; - /// runOnFunction - Virtual method overridden by subclasses to do the + /// runOnFunction - Virtual method overriden by subclasses to do the /// per-function processing of the pass. /// virtual bool runOnFunction(Function &F) = 0; @@ -380,12 +380,12 @@ class BasicBlockPass : public Pass { /// virtual bool doInitialization(Function &); - /// runOnBasicBlock - Virtual method overridden by subclasses to do the + /// runOnBasicBlock - Virtual method overriden by subclasses to do the /// per-basicblock processing of the pass. /// virtual bool runOnBasicBlock(BasicBlock &BB) = 0; - /// doFinalization - Virtual method overridden by BasicBlockPass subclasses to + /// doFinalization - Virtual method overriden by BasicBlockPass subclasses to /// do any post processing needed after all passes have run. /// virtual bool doFinalization(Function &); diff --git a/include/llvm/Support/CommandLine.h b/include/llvm/Support/CommandLine.h index 6864ef291d..db955337c1 100644 --- a/include/llvm/Support/CommandLine.h +++ b/include/llvm/Support/CommandLine.h @@ -178,7 +178,7 @@ class alias; class Option { friend class alias; - // handleOccurrences - Overridden by subclasses to handle the value passed into + // handleOccurrences - Overriden by subclasses to handle the value passed into // an argument. Should return true if there was an error processing the // argument and the program should exit. // diff --git a/include/llvm/Target/TargetLoweringObjectFile.h b/include/llvm/Target/TargetLoweringObjectFile.h index a717e8ab24..5b626c244b 100644 --- a/include/llvm/Target/TargetLoweringObjectFile.h +++ b/include/llvm/Target/TargetLoweringObjectFile.h @@ -105,7 +105,7 @@ class TargetLoweringObjectFile : public MCObjectFileInfo { const Function &F) const; /// Targets should implement this method to assign a section to globals with - /// an explicit section specified. The implementation of this method can + /// an explicit section specfied. The implementation of this method can /// assume that GV->hasSection() is true. virtual MCSection * getExplicitSectionGlobal(const GlobalValue *GV, SectionKind Kind, diff --git a/include/llvm/Target/TargetOptions.h b/include/llvm/Target/TargetOptions.h index e295de0fb9..d52cb60cf1 100644 --- a/include/llvm/Target/TargetOptions.h +++ b/include/llvm/Target/TargetOptions.h @@ -172,7 +172,7 @@ namespace llvm { /// Emit target-specific trap instruction for 'unreachable' IR instructions. unsigned TrapUnreachable : 1; - /// FloatABIType - This setting is set by -float-abi=xxx option is specified + /// FloatABIType - This setting is set by -float-abi=xxx option is specfied /// on the command line. This setting may either be Default, Soft, or Hard. /// Default selects the target's default behavior. Soft selects the ABI for /// software floating point, but does not indicate that FP hardware may not diff --git a/include/llvm/Target/TargetRegisterInfo.h b/include/llvm/Target/TargetRegisterInfo.h index e8f33c0681..f4189899e2 100644 --- a/include/llvm/Target/TargetRegisterInfo.h +++ b/include/llvm/Target/TargetRegisterInfo.h @@ -840,7 +840,7 @@ class TargetRegisterInfo : public MCRegisterInfo { return false; } - /// eliminateFrameIndex - This method must be overridden to eliminate abstract + /// eliminateFrameIndex - This method must be overriden to eliminate abstract /// frame indices from instructions which may use them. The instruction /// referenced by the iterator contains an MO_FrameIndex operand which must be /// eliminated by this method. This method may modify or replace the diff --git a/include/llvm/Target/TargetSchedule.td b/include/llvm/Target/TargetSchedule.td index e29d9118d8..c0a1e17238 100644 --- a/include/llvm/Target/TargetSchedule.td +++ b/include/llvm/Target/TargetSchedule.td @@ -67,7 +67,7 @@ def instregex; // coarse grained instruction cost model. Default values for the // properties are defined in MCSchedModel. A value of "-1" in the // target description's SchedMachineModel indicates that the property -// is not overridden by the target. +// is not overriden by the target. // // Target hooks allow subtargets to associate LoadLatency and // HighLatency with groups of opcodes. diff --git a/lib/AsmParser/LLParser.cpp b/lib/AsmParser/LLParser.cpp index bf84f3cbf9..1c6e7bd18d 100644 --- a/lib/AsmParser/LLParser.cpp +++ b/lib/AsmParser/LLParser.cpp @@ -2880,7 +2880,7 @@ bool LLParser::ParseValID(ValID &ID, PerFunctionState *PFS) { if (!ValTy->getScalarType()->isIntegerTy()) return Error(ID.Loc, "getelementptr index must be an integer"); if (ValTy->isVectorTy() != BaseType->isVectorTy()) - return Error(ID.Loc, "getelementptr index type mismatch"); + return Error(ID.Loc, "getelementptr index type missmatch"); if (ValTy->isVectorTy()) { unsigned ValNumEl = ValTy->getVectorNumElements(); unsigned PtrNumEl = BaseType->getVectorNumElements(); diff --git a/lib/CodeGen/Passes.cpp b/lib/CodeGen/Passes.cpp index 02142786bd..3159fbd5a0 100644 --- a/lib/CodeGen/Passes.cpp +++ b/lib/CodeGen/Passes.cpp @@ -480,7 +480,7 @@ void TargetPassConfig::addISelPrepare() { /// with nontrivial configuration or multiple passes are broken out below in /// add%Stage routines. /// -/// Any TargetPassConfig::addXX routine may be overridden by the Target. The +/// Any TargetPassConfig::addXX routine may be overriden by the Target. The /// addPre/Post methods with empty header implementations allow injecting /// target-specific fixups just before or after major stages. Additionally, /// targets have the flexibility to change pass order within a stage by @@ -707,7 +707,7 @@ FunctionPass *TargetPassConfig::createRegAllocPass(bool Optimized) { } /// Return true if the default global register allocator is in use and -/// has not be overridden on the command line with '-regalloc=...' +/// has not be overriden on the command line with '-regalloc=...' bool TargetPassConfig::usingDefaultRegAlloc() const { return RegAlloc.getNumOccurrences() == 0; } diff --git a/lib/CodeGen/RegAllocPBQP.cpp b/lib/CodeGen/RegAllocPBQP.cpp index c9b46c8dfc..eeff73d0f2 100644 --- a/lib/CodeGen/RegAllocPBQP.cpp +++ b/lib/CodeGen/RegAllocPBQP.cpp @@ -301,7 +301,7 @@ class Interference : public PBQPRAConstraint { } while (!Inactive.empty()) { - // Tentatively grab the "next" interval - this choice may be overridden + // Tentatively grab the "next" interval - this choice may be overriden // below. IntervalInfo Cur = Inactive.top(); diff --git a/lib/CodeGen/TargetInstrInfo.cpp b/lib/CodeGen/TargetInstrInfo.cpp index ed53d3c876..97ca0253d3 100644 --- a/lib/CodeGen/TargetInstrInfo.cpp +++ b/lib/CodeGen/TargetInstrInfo.cpp @@ -815,7 +815,7 @@ bool TargetInstrInfo::hasLowDefLatency(const TargetSchedModel &SchedModel, } /// Both DefMI and UseMI must be valid. By default, call directly to the -/// itinerary. This may be overridden by the target. +/// itinerary. This may be overriden by the target. int TargetInstrInfo:: getOperandLatency(const InstrItineraryData *ItinData, const MachineInstr *DefMI, unsigned DefIdx, diff --git a/lib/IR/Constants.cpp b/lib/IR/Constants.cpp index e0e0a1147f..308e6bde3d 100644 --- a/lib/IR/Constants.cpp +++ b/lib/IR/Constants.cpp @@ -2056,11 +2056,11 @@ Constant *ConstantExpr::getGetElementPtr(Type *Ty, Constant *C, ArgVec.push_back(C); for (unsigned i = 0, e = Idxs.size(); i != e; ++i) { assert(Idxs[i]->getType()->isVectorTy() == ReqTy->isVectorTy() && - "getelementptr index type mismatch"); + "getelementptr index type missmatch"); assert((!Idxs[i]->getType()->isVectorTy() || ReqTy->getVectorNumElements() == Idxs[i]->getType()->getVectorNumElements()) && - "getelementptr index type mismatch"); + "getelementptr index type missmatch"); ArgVec.push_back(cast(Idxs[i])); } const ConstantExprKeyType Key(Instruction::GetElementPtr, ArgVec, 0, diff --git a/lib/IR/Verifier.cpp b/lib/IR/Verifier.cpp index 7f0d4f7ec2..d53b848924 100644 --- a/lib/IR/Verifier.cpp +++ b/lib/IR/Verifier.cpp @@ -502,7 +502,7 @@ void Verifier::visitGlobalVariable(const GlobalVariable &GV) { if (GV.hasInitializer()) { const Constant *Init = GV.getInitializer(); const ConstantArray *InitArray = dyn_cast(Init); - Assert(InitArray, "wrong initializer for intrinsic global variable", + Assert(InitArray, "wrong initalizer for intrinsic global variable", Init); for (unsigned i = 0, e = InitArray->getNumOperands(); i != e; ++i) { Value *V = Init->getOperand(i)->stripPointerCastsNoFollowAliases(); @@ -1065,7 +1065,7 @@ void Verifier::visitDIGlobalVariable(const DIGlobalVariable &N) { if (auto *V = N.getRawVariable()) { Assert(isa(V) && !isa(cast(V)->getValue()), - "invalid global variable ref", &N, V); + "invalid global varaible ref", &N, V); } if (auto *Member = N.getRawStaticDataMemberDeclaration()) { Assert(isa(Member), "invalid static data member declaration", diff --git a/lib/TableGen/TGParser.cpp b/lib/TableGen/TGParser.cpp index 6a5594ff32..5c36fda2e1 100644 --- a/lib/TableGen/TGParser.cpp +++ b/lib/TableGen/TGParser.cpp @@ -1296,7 +1296,7 @@ Init *TGParser::ParseSimpleValue(Record *CurRec, RecTy *ItemType, Init *Bit = Vals[i]->convertInitializerTo(BitRecTy::get()); if (!Bit) { Error(BraceLoc, "Element #" + Twine(i) + " (" + Vals[i]->getAsString() + - ") is not convertible to a bit"); + ") is not convertable to a bit"); return nullptr; } NewBits.push_back(Bit); diff --git a/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp b/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp index 1fede480ea..ae2ae3af0c 100644 --- a/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp +++ b/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp @@ -2599,7 +2599,7 @@ static void computeLiveInValues(DominatorTree &DT, Function &F, } // while( !worklist.empty() ) #ifndef NDEBUG - // Sanity check our output against SSA properties. This helps catch any + // Sanity check our ouput against SSA properties. This helps catch any // missing kills during the above iteration. for (BasicBlock &BB : F) { checkBasicSSA(DT, Data, BB); diff --git a/lib/Transforms/Scalar/SROA.cpp b/lib/Transforms/Scalar/SROA.cpp index 9d17217c75..0c598b9563 100644 --- a/lib/Transforms/Scalar/SROA.cpp +++ b/lib/Transforms/Scalar/SROA.cpp @@ -1932,7 +1932,7 @@ static bool canConvertValue(const DataLayout &DL, Type *OldTy, Type *NewTy) { static Value *convertValue(const DataLayout &DL, IRBuilderTy &IRB, Value *V, Type *NewTy) { Type *OldTy = V->getType(); - assert(canConvertValue(DL, OldTy, NewTy) && "Value not convertible to type"); + assert(canConvertValue(DL, OldTy, NewTy) && "Value not convertable to type"); if (OldTy == NewTy) return V; diff --git a/test/Transforms/MergeFunc/fold-weak.ll b/test/Transforms/MergeFunc/fold-weak.ll index 7b9c5c17fd..f8a1888789 100644 --- a/test/Transforms/MergeFunc/fold-weak.ll +++ b/test/Transforms/MergeFunc/fold-weak.ll @@ -17,7 +17,7 @@ define weak i32 @add(i32 %x, i32 %y) { ; Don't replace a weak function use by another equivalent function. We don't ; know whether the symbol that will ulitmately be linked is equivalent - we ; don't know that the weak definition is the definitive definition or whether it -; will be overridden by a stronger definition). +; will be overriden by a stronger definition). ; CHECK-LABEL: define private i32 @0 ; CHECK: add i32 diff --git a/test/Transforms/SROA/basictest.ll b/test/Transforms/SROA/basictest.ll index 195b1246f2..ad2794167a 100644 --- a/test/Transforms/SROA/basictest.ll +++ b/test/Transforms/SROA/basictest.ll @@ -1270,7 +1270,7 @@ define void @PR15674(i8* %data, i8* %src, i32 %size) { ; Arrange (via control flow) to have unmerged stores of a particular width to ; an alloca where we incrementally store from the end of the array toward the ; beginning of the array. Ensure that the final integer store, despite being -; convertible to the integer type that we end up promoting this alloca toward, +; convertable to the integer type that we end up promoting this alloca toward, ; doesn't get widened to a full alloca store. ; CHECK-LABEL: @PR15674( diff --git a/test/Verifier/llvm.used-invalid-init.ll b/test/Verifier/llvm.used-invalid-init.ll index 0b21e4840b..b0887c994e 100644 --- a/test/Verifier/llvm.used-invalid-init.ll +++ b/test/Verifier/llvm.used-invalid-init.ll @@ -2,5 +2,5 @@ @llvm.used = appending global [1 x i8*] zeroinitializer, section "llvm.metadata" -; CHECK: wrong initializer for intrinsic global variable +; CHECK: wrong initalizer for intrinsic global variable ; CHECK-NEXT: [1 x i8*] zeroinitializer diff --git a/test/lit.cfg b/test/lit.cfg index 7b7c5aa0e0..5f29b02034 100644 --- a/test/lit.cfg +++ b/test/lit.cfg @@ -39,7 +39,7 @@ else: # testFormat: The test format to use to interpret tests. config.test_format = lit.formats.ShTest(execute_external) -# suffixes: A list of file extensions to treat as test files. This is overridden +# suffixes: A list of file extensions to treat as test files. This is overriden # by individual lit.local.cfg files in the test subdirectories. # HLSL Change Start - use just a subset of LLVM tests config.suffixes = ['.ll', '.txt', '.td', '.test'] diff --git a/tools/clang/docs/analyzer/IPA.txt b/tools/clang/docs/analyzer/IPA.txt index 73e8e90e8f..d628473fce 100644 --- a/tools/clang/docs/analyzer/IPA.txt +++ b/tools/clang/docs/analyzer/IPA.txt @@ -306,7 +306,7 @@ Currently, there are 2 modes: DynamicDispatchModeConservative - Models the case where the dynamic type information is assumed to be incorrect, for example, implies that the method - definition is overridden in a subclass. In such cases, ExprEngine does not + definition is overriden in a subclass. In such cases, ExprEngine does not inline the methods sent to the receiver (MemoryRegion), even if a candidate definition is available. This mode is conservative about simulating the effects of a call. diff --git a/tools/clang/include/clang/Driver/Options.td b/tools/clang/include/clang/Driver/Options.td index fcaac8caf5..dac6a47ef9 100644 --- a/tools/clang/include/clang/Driver/Options.td +++ b/tools/clang/include/clang/Driver/Options.td @@ -423,7 +423,7 @@ def fauto_profile_EQ : Joined<["-"], "fauto-profile=">, Alias; def fprofile_instr_generate : Flag<["-"], "fprofile-instr-generate">, Group, Flags<[CC1Option]>, - HelpText<"Generate instrumented code to collect execution counts into default.profraw file (overridden by '=' form of option or LLVM_PROFILE_FILE env var)">; + HelpText<"Generate instrumented code to collect execution counts into default.profraw file (overriden by '=' form of option or LLVM_PROFILE_FILE env var)">; def fprofile_instr_generate_EQ : Joined<["-"], "fprofile-instr-generate=">, Group, Flags<[CC1Option]>, MetaVarName<"">, HelpText<"Generate instrumented code to collect execution counts into (overridden by LLVM_PROFILE_FILE env var)">; diff --git a/tools/clang/include/clang/SPIRV/SpirvBuilder.h b/tools/clang/include/clang/SPIRV/SpirvBuilder.h index a1ceb89631..6d02c07866 100644 --- a/tools/clang/include/clang/SPIRV/SpirvBuilder.h +++ b/tools/clang/include/clang/SPIRV/SpirvBuilder.h @@ -664,7 +664,7 @@ class SpirvBuilder { /// Returns the imported instruction set. SpirvExtInstImport *getDebugInfoExtInstSet(bool vulkanDebugInfo); - /// \brief Adds a stage input/output variable whose value is of the given type. + /// \brief Adds a stage input/ouput variable whose value is of the given type. /// /// Note: the corresponding pointer type of the given type will not be /// constructed in this method. diff --git a/tools/clang/include/clang/Sema/TypoCorrection.h b/tools/clang/include/clang/Sema/TypoCorrection.h index 47b38bc4ed..958aab0fce 100644 --- a/tools/clang/include/clang/Sema/TypoCorrection.h +++ b/tools/clang/include/clang/Sema/TypoCorrection.h @@ -261,7 +261,7 @@ class CorrectionCandidateCallback { /// determine whether to return an edit distance of 0 or InvalidDistance. /// This can be overrided by validators that only need to determine if a /// candidate is viable, without ranking potentially viable candidates. - /// Only ValidateCandidate or RankCandidate need to be overridden by a + /// Only ValidateCandidate or RankCandidate need to be overriden by a /// callback wishing to check the viability of correction candidates. /// The default predicate always returns true if the candidate is not a type /// name or keyword, true for types if WantTypeSpecifiers is true, and true diff --git a/tools/clang/include/clang/Serialization/ASTWriter.h b/tools/clang/include/clang/Serialization/ASTWriter.h index a49fec8839..e830fdcf8f 100644 --- a/tools/clang/include/clang/Serialization/ASTWriter.h +++ b/tools/clang/include/clang/Serialization/ASTWriter.h @@ -405,7 +405,7 @@ class ASTWriter : public ASTDeserializationListener, SmallVector StmtsToEmit; /// \brief Statements collection to use for ASTWriter::AddStmt(). - /// It will point to StmtsToEmit unless it is overridden. + /// It will point to StmtsToEmit unless it is overriden. SmallVector *CollectedStmts; /// \brief Mapping from SwitchCase statements to IDs. diff --git a/tools/clang/include/clang/Serialization/ModuleManager.h b/tools/clang/include/clang/Serialization/ModuleManager.h index 018ebc2b43..ab39aefa94 100644 --- a/tools/clang/include/clang/Serialization/ModuleManager.h +++ b/tools/clang/include/clang/Serialization/ModuleManager.h @@ -293,7 +293,7 @@ class ModuleManager { /// module before visiting its imports. The visitor can control how to /// continue the visitation through its return value. /// - /// \param PostorderVisitor A visitor function that will be invoked with each + /// \param PostorderVisitor A visitor function taht will be invoked with each /// module after visiting its imports. The visitor may return true at any time /// to abort the depth-first visitation. /// diff --git a/tools/clang/lib/ARCMigrate/FileRemapper.cpp b/tools/clang/lib/ARCMigrate/FileRemapper.cpp index dd432c1a0f..72a55da5d5 100644 --- a/tools/clang/lib/ARCMigrate/FileRemapper.cpp +++ b/tools/clang/lib/ARCMigrate/FileRemapper.cpp @@ -226,7 +226,7 @@ void FileRemapper::remap(const FileEntry *file, const FileEntry *newfile) { const FileEntry *FileRemapper::getOriginalFile(StringRef filePath) { const FileEntry *file = FileMgr->getFile(filePath); - // If we are updating a file that overridden an original file, + // If we are updating a file that overriden an original file, // actually update the original file. llvm::DenseMap::iterator I = ToFromMappings.find(file); diff --git a/tools/clang/lib/AST/DeclObjC.cpp b/tools/clang/lib/AST/DeclObjC.cpp index a1d7c34135..280c412ae8 100644 --- a/tools/clang/lib/AST/DeclObjC.cpp +++ b/tools/clang/lib/AST/DeclObjC.cpp @@ -1051,8 +1051,8 @@ static void CollectOverriddenMethodsRecurse(const ObjCContainerDecl *Container, if (!Container) return; - // In categories look for overridden methods from protocols. A method from - // category is not "overridden" since it is considered as the "same" method + // In categories look for overriden methods from protocols. A method from + // category is not "overriden" since it is considered as the "same" method // (same USR) as the one from the interface. if (const ObjCCategoryDecl * Category = dyn_cast(Container)) { diff --git a/tools/clang/lib/AST/VTableBuilder.cpp b/tools/clang/lib/AST/VTableBuilder.cpp index 3e9fde1ff4..ca5f0aad00 100644 --- a/tools/clang/lib/AST/VTableBuilder.cpp +++ b/tools/clang/lib/AST/VTableBuilder.cpp @@ -3065,7 +3065,7 @@ void VFTableBuilder::AddMethods(BaseSubobject Base, unsigned BaseDepth, } // In case we need a return adjustment, we'll add a new slot for - // the overrider. Mark the overridden method as shadowed by the new slot. + // the overrider. Mark the overriden method as shadowed by the new slot. OverriddenMethodInfo.Shadowed = true; // Force a special name mangling for a return-adjusting thunk diff --git a/tools/clang/lib/SPIRV/DeclResultIdMapper.cpp b/tools/clang/lib/SPIRV/DeclResultIdMapper.cpp index 3356fb2570..9fed57b41b 100644 --- a/tools/clang/lib/SPIRV/DeclResultIdMapper.cpp +++ b/tools/clang/lib/SPIRV/DeclResultIdMapper.cpp @@ -3089,7 +3089,7 @@ void DeclResultIdMapper::storeToShaderOutputVariable( ptr->setStorageClass(spv::StorageClass::Output); spvBuilder.createStore(ptr, value, stageVarData.decl->getLocation()); } - // Special handling of HS output, for which we write to only one + // Special handling of HS ouput, for which we write to only one // element in the per-vertex data array: the one indexed by // SV_ControlPointID. else if (stageVarData.invocationId.hasValue() && diff --git a/tools/clang/lib/SPIRV/DeclResultIdMapper.h b/tools/clang/lib/SPIRV/DeclResultIdMapper.h index 492372f3e7..c942280a54 100644 --- a/tools/clang/lib/SPIRV/DeclResultIdMapper.h +++ b/tools/clang/lib/SPIRV/DeclResultIdMapper.h @@ -232,7 +232,7 @@ class DeclResultIdMapper { /// by the other overload. bool createStageOutputVar(const DeclaratorDecl *decl, SpirvInstruction *storedValue, bool forPCF); - /// \brief Overload for handling HS control point stage output variable. + /// \brief Overload for handling HS control point stage ouput variable. bool createStageOutputVar(const DeclaratorDecl *decl, uint32_t arraySize, SpirvInstruction *invocationId, SpirvInstruction *storedValue); @@ -508,7 +508,7 @@ class DeclResultIdMapper { /// buffers. Returns nullptr if it does not. const CounterVarFields *getCounterVarFields(const DeclaratorDecl *decl); - /// \brief Returns all defined stage (builtin/input/output) variables for the + /// \brief Returns all defined stage (builtin/input/ouput) variables for the /// entry point function entryPoint in this mapper. std::vector collectStageVars(SpirvFunction *entryPoint) const; diff --git a/tools/clang/lib/SPIRV/GlPerVertex.h b/tools/clang/lib/SPIRV/GlPerVertex.h index 6522067d3c..86136f056a 100644 --- a/tools/clang/lib/SPIRV/GlPerVertex.h +++ b/tools/clang/lib/SPIRV/GlPerVertex.h @@ -52,7 +52,7 @@ class GlPerVertex { /// Calculates the layout for ClipDistance/CullDistance arrays. void calculateClipCullDistanceArraySize(); - /// Emits SPIR-V code for the input and/or output ClipDistance/CullDistance + /// Emits SPIR-V code for the input and/or ouput ClipDistance/CullDistance /// builtin variables. If inputArrayLength is not zero, the input variable /// will have an additional arrayness of the given size. Similarly for /// outputArrayLength. diff --git a/tools/clang/lib/SPIRV/InitListHandler.cpp b/tools/clang/lib/SPIRV/InitListHandler.cpp index 5faffec4eb..0d476dd060 100644 --- a/tools/clang/lib/SPIRV/InitListHandler.cpp +++ b/tools/clang/lib/SPIRV/InitListHandler.cpp @@ -6,7 +6,7 @@ // License. See LICENSE.TXT for details. //===----------------------------------------------------------------------===// // -// This file implements an initializer list handler that takes in an +// This file implements an initalizer list handler that takes in an // InitListExpr and emits the corresponding SPIR-V instructions for it. // //===----------------------------------------------------------------------===// diff --git a/tools/clang/lib/SPIRV/InitListHandler.h b/tools/clang/lib/SPIRV/InitListHandler.h index da0af46189..4ee21662a0 100644 --- a/tools/clang/lib/SPIRV/InitListHandler.h +++ b/tools/clang/lib/SPIRV/InitListHandler.h @@ -6,7 +6,7 @@ // License. See LICENSE.TXT for details. //===----------------------------------------------------------------------===// // -// This file defines an initializer list handler that takes in an InitListExpr +// This file defines an initalizer list handler that takes in an InitListExpr // and emits the corresponding SPIR-V instructions for it. // //===----------------------------------------------------------------------===// @@ -41,14 +41,14 @@ namespace spirv { /// The AST is designed to omit the composite extraction and construction. It /// also does not have casts to the expected types and from lvalues to rvalues. /// -/// Resulting from the above reasons, the logic for handling initializer lists +/// Resulting from the above reasons, the logic for handling initalizer lists /// are complicated. So we have this dedicated class for it. It is built on /// top of the SpirvEmitter class and calls into SPIRVEmitter for normal /// translation tasks. This gives better code structure. /// -/// The logic for handling initializer lists is largely the following: +/// The logic for handling initalizer lists is largely the following: /// -/// First we flatten() the given initializer list recursively and put all +/// First we flatten() the given initalizer list recursively and put all /// SPIR-V instructions for non-nitializer-list AST Exprs into the initializers /// queue. This handles curly braces of even wired forms like /// float2x2 mat = {{1.}, {2., {{3.}}}, 4.}; diff --git a/tools/clang/lib/Sema/SemaDecl.cpp b/tools/clang/lib/Sema/SemaDecl.cpp index 19d6cbacbc..a772054960 100644 --- a/tools/clang/lib/Sema/SemaDecl.cpp +++ b/tools/clang/lib/Sema/SemaDecl.cpp @@ -6634,7 +6634,7 @@ namespace { enum OverrideErrorKind { OEK_All, OEK_NonDeleted, OEK_Deleted }; } /// \brief Report an error regarding overriding, along with any relevant -/// overridden methods. +/// overriden methods. /// /// \param DiagID the primary error to report. /// \param MD the overriding method. @@ -9324,7 +9324,7 @@ void Sema::AddInitializerToDecl(Decl *RealDecl, Expr *Init, // C++11 [class.static.data]p3: // If a non-volatile const static data member is of integral or // enumeration type, its declaration in the class definition can - // specify a brace-or-equal-initializer in which every initializer-clause + // specify a brace-or-equal-initializer in which every initalizer-clause // that is an assignment-expression is a constant expression. A static // data member of literal type can be declared in the class definition // with the constexpr specifier; if so, its declaration shall specify a diff --git a/tools/clang/lib/Sema/SemaDeclCXX.cpp b/tools/clang/lib/Sema/SemaDeclCXX.cpp index e7bde3cfaf..3cd892f49e 100644 --- a/tools/clang/lib/Sema/SemaDeclCXX.cpp +++ b/tools/clang/lib/Sema/SemaDeclCXX.cpp @@ -6315,7 +6315,7 @@ namespace { }; } -/// \brief Check whether any most overridden method from MD in Methods +/// \brief Check whether any most overriden method from MD in Methods static bool CheckMostOverridenMethods(const CXXMethodDecl *MD, const llvm::SmallPtrSetImpl& Methods) { if (MD->size_overridden_methods() == 0) @@ -6377,7 +6377,7 @@ static bool FindHiddenVirtualMethod(const CXXBaseSpecifier *Specifier, return foundSameNameMethod; } -/// \brief Add the most overridden methods from MD to Methods +/// \brief Add the most overriden methods from MD to Methods static void AddMostOverridenMethods(const CXXMethodDecl *MD, llvm::SmallPtrSetImpl& Methods) { if (MD->size_overridden_methods() == 0) @@ -6402,7 +6402,7 @@ void Sema::FindHiddenVirtualMethods(CXXMethodDecl *MD, Data.Method = MD; Data.S = this; - // Keep the base methods that were overridden or introduced in the subclass + // Keep the base methods that were overriden or introduced in the subclass // by 'using' in a set. A base method not in this set is hidden. CXXRecordDecl *DC = MD->getParent(); DeclContext::lookup_result R = DC->lookup(MD->getDeclName()); diff --git a/tools/clang/lib/Sema/SemaHLSL.cpp b/tools/clang/lib/Sema/SemaHLSL.cpp index 31e2261929..6c95fdfa1e 100644 --- a/tools/clang/lib/Sema/SemaHLSL.cpp +++ b/tools/clang/lib/Sema/SemaHLSL.cpp @@ -7214,7 +7214,7 @@ bool HLSLExternalSource::MatchArguments( if (pArgument->uRows && pArgument->uCols) { UINT uRows, uCols = 0; - // if type is overridden, use new type size, for + // if type is overriden, use new type size, for // now it only supports scalars if (pArgument->uRows >= IA_SPECIAL_BASE) { UINT uSpecialId = pArgument->uRows - IA_SPECIAL_BASE; @@ -9596,7 +9596,7 @@ void HLSLExternalSource::GetConversionForm(QualType type, } break; default: - // Only convertible shapekinds are relevant. + // Only convertable shapekinds are relevant. break; } } @@ -9745,7 +9745,7 @@ static bool ConvertDimensions(ArTypeInfo TargetInfo, ArTypeInfo SourceInfo, // - same number of components // - one target component (truncate to scalar) // - matrix has one row or one column, and fewer components (truncation) - // Other cases disallowed even if implicitly convertible in two steps + // Other cases disallowed even if implicitly convertable in two steps // (truncation+conversion). if (1 == SourceInfo.uCols && TargetComponents != 1) { // splat: vector<[..], 1> -> matrix<[..], M, N> @@ -16256,7 +16256,7 @@ bool Sema::DiagnoseHLSLDecl(Declarator &D, DeclContext *DC, Expr *BitWidth, } } - // Validate that stream-output objects are marked as inout + // Validate that stream-ouput objects are marked as inout if (isParameter && !(usageIn && usageOut) && (basicKind == ArBasicKind::AR_OBJECT_LINESTREAM || basicKind == ArBasicKind::AR_OBJECT_POINTSTREAM || diff --git a/tools/clang/test/CodeGenSPIRV/spirv.storage-class.hlsl b/tools/clang/test/CodeGenSPIRV/spirv.storage-class.hlsl index 3a3845c445..a7ecddd721 100644 --- a/tools/clang/test/CodeGenSPIRV/spirv.storage-class.hlsl +++ b/tools/clang/test/CodeGenSPIRV/spirv.storage-class.hlsl @@ -9,7 +9,7 @@ static float4 sgVar; // Privte // Note: The entry function in the source code is treated as a normal function. // Another wrapper function take care of handling stage input/output variables. -// and calling the source code entry function. So there are no Input/Output +// and calling the source code entry function. So there are no Input/Ouput // storage class involved in the following. VSOut main(float4 input: A /* Function */, uint index: B /* Function */) { diff --git a/tools/clang/test/CodeGenSPIRV/var.init.struct.hlsl b/tools/clang/test/CodeGenSPIRV/var.init.struct.hlsl index f7d7044194..5c2b4333a7 100644 --- a/tools/clang/test/CodeGenSPIRV/var.init.struct.hlsl +++ b/tools/clang/test/CodeGenSPIRV/var.init.struct.hlsl @@ -79,13 +79,13 @@ void main() { // CHECK-NEXT: OpStore %s2 [[s2]] S s2 = {{1, 2}, 3, {{42}, {{1.}}}, {2., {3., 4.}}}; - // Flat initializer list for nested structs + // Flat initalizer list for nested structs // CHECK: [[y:%[0-9]+]] = OpCompositeConstruct %O %int_1 // CHECK-NEXT: [[p:%[0-9]+]] = OpCompositeConstruct %P [[y]] %float_2 // CHECK-NEXT: OpStore %p [[p]] P p = {1, 2.}; - // Initializer list for struct with inheritance. + // Initalizer list for struct with inheritance. // CHECK: [[y:%[0-9]+]] = OpCompositeConstruct %O %int_1 // CHECK-NEXT: [[q:%[0-9]+]] = OpCompositeConstruct %Q [[y]] %float_2 // CHECK-NEXT: OpStore %q [[q]] diff --git a/tools/clang/test/SemaCXX/vector.cpp b/tools/clang/test/SemaCXX/vector.cpp index fdacfb119f..bcd7fedb4d 100644 --- a/tools/clang/test/SemaCXX/vector.cpp +++ b/tools/clang/test/SemaCXX/vector.cpp @@ -184,7 +184,7 @@ void test_implicit_conversions(bool Cond, char16 c16, longlong16 ll16, (void)(Cond? to_c16 : to_c16e); (void)(Cond? to_ll16e : to_ll16); - // These 2 are convertible with -flax-vector-conversions (default) + // These 2 are convertable with -flax-vector-conversions (default) (void)(Cond? to_c16 : to_ll16); (void)(Cond? to_c16e : to_ll16e); } diff --git a/tools/clang/test/SemaCXX/warn-range-loop-analysis.cpp b/tools/clang/test/SemaCXX/warn-range-loop-analysis.cpp index 98c4a18776..91756b970e 100644 --- a/tools/clang/test/SemaCXX/warn-range-loop-analysis.cpp +++ b/tools/clang/test/SemaCXX/warn-range-loop-analysis.cpp @@ -29,7 +29,7 @@ struct Bar { // test1-6 are set in pairs, the odd numbers are the non-reference returning // versions of the even numbers. // test7-9 use an array instead of a range object -// tests use all four versions of the loop variable, const &T, const T, T&, and +// tests use all four versions of the loop varaible, const &T, const T, T&, and // T. Versions producing errors and are commented out. // // Conversion chart: diff --git a/tools/clang/tools/libclang/CXCursor.cpp b/tools/clang/tools/libclang/CXCursor.cpp index 07468df816..b8f1866ba6 100644 --- a/tools/clang/tools/libclang/CXCursor.cpp +++ b/tools/clang/tools/libclang/CXCursor.cpp @@ -1390,17 +1390,17 @@ void clang_getOverriddenCursors(CXCursor cursor, assert(cxcursor::getCursorTU(backRefCursor) == TU); Vec->push_back(backRefCursor); - // Get the overridden cursors. + // Get the overriden cursors. cxcursor::getOverriddenCursors(cursor, *Vec); - // Did we get any overridden cursors? If not, return Vec to the pool + // Did we get any overriden cursors? If not, return Vec to the pool // of available cursor vectors. if (Vec->size() == 1) { pool.AvailableCursors.push_back(Vec); return; } - // Now tell the caller about the overridden cursors. + // Now tell the caller about the overriden cursors. assert(Vec->size() > 1); *overridden = &((*Vec)[1]); *num_overridden = Vec->size() - 1; diff --git a/tools/clang/tools/libclang/CXCursor.h b/tools/clang/tools/libclang/CXCursor.h index dbbb1bbb4e..083b86934d 100644 --- a/tools/clang/tools/libclang/CXCursor.h +++ b/tools/clang/tools/libclang/CXCursor.h @@ -251,11 +251,11 @@ CXTranslationUnit getCursorTU(CXCursor Cursor); void getOverriddenCursors(CXCursor cursor, SmallVectorImpl &overridden); -/// \brief Create an opaque pool used for fast generation of overridden +/// \brief Create an opaque pool used for fast generation of overriden /// CXCursor arrays. void *createOverridenCXCursorsPool(); -/// \brief Dispose of the overridden CXCursors pool. +/// \brief Dispose of the overriden CXCursors pool. void disposeOverridenCXCursorsPool(void *pool); /// \brief Returns a index/location pair for a selector identifier if the cursor diff --git a/tools/clang/unittests/StaticAnalyzer/AnalyzerOptionsTest.cpp b/tools/clang/unittests/StaticAnalyzer/AnalyzerOptionsTest.cpp index 061e8d8eb2..33f1740bea 100644 --- a/tools/clang/unittests/StaticAnalyzer/AnalyzerOptionsTest.cpp +++ b/tools/clang/unittests/StaticAnalyzer/AnalyzerOptionsTest.cpp @@ -36,9 +36,9 @@ TEST(StaticAnalyzerOptions, SearchInParentPackageTests) { // search mode. CheckerOneMock CheckerOne; EXPECT_TRUE(Opts.getBooleanOption("Option", false, &CheckerOne)); - // The package option is overridden with a checker option. + // The package option is overriden with a checker option. EXPECT_TRUE(Opts.getBooleanOption("Option", false, &CheckerOne, true)); - // The Outer package option is overridden by the Inner package option. No + // The Outer package option is overriden by the Inner package option. No // package option is specified. EXPECT_TRUE(Opts.getBooleanOption("Option2", false, &CheckerOne, true)); // No package option is specified and search in packages is turned off. The diff --git a/utils/TableGen/CodeGenSchedule.cpp b/utils/TableGen/CodeGenSchedule.cpp index 141c364760..bc27481869 100644 --- a/utils/TableGen/CodeGenSchedule.cpp +++ b/utils/TableGen/CodeGenSchedule.cpp @@ -1439,7 +1439,7 @@ void CodeGenSchedModels::collectProcResources() { if (SCI->ItinClassDef) collectItinProcResources(SCI->ItinClassDef); else { - // This class may have a default ReadWrite list which can be overridden by + // This class may have a default ReadWrite list which can be overriden by // InstRW definitions. if (!SCI->InstRWs.empty()) { for (RecIter RWI = SCI->InstRWs.begin(), RWE = SCI->InstRWs.end(); diff --git a/utils/TableGen/SubtargetEmitter.cpp b/utils/TableGen/SubtargetEmitter.cpp index 6e12426c6d..03d7f4e868 100644 --- a/utils/TableGen/SubtargetEmitter.cpp +++ b/utils/TableGen/SubtargetEmitter.cpp @@ -865,7 +865,7 @@ void SubtargetEmitter::GenSchedClassTables(const CodeGenProcModel &ProcModel, IdxVec Writes = SCI->Writes; IdxVec Reads = SCI->Reads; if (!SCI->InstRWs.empty()) { - // This class has a default ReadWrite list which can be overridden by + // This class has a default ReadWrite list which can be overriden by // InstRW definitions. Record *RWDef = nullptr; for (RecIter RWI = SCI->InstRWs.begin(), RWE = SCI->InstRWs.end(); diff --git a/utils/version/gen_version.py b/utils/version/gen_version.py index 27939f7e16..97856d42bf 100644 --- a/utils/version/gen_version.py +++ b/utils/version/gen_version.py @@ -17,7 +17,7 @@ # 3. **Fixed version build** # Build by using `hctbuild -fv`. Enables overriding of the version information. The fixed version is -# read from `utils\version\version.inc`. Location of the version file can be overridden by `-fvloc` option +# read from `utils\version\version.inc`. Location of the version file can be overriden by `-fvloc` option # on `hctbuild`. # In addition to the numbered version the product version string on the binaries will also include branch