From df57677558e14d79a00852808aa47205b385327d Mon Sep 17 00:00:00 2001 From: Akshat Oke <76596238+Akshat-Oke@users.noreply.github.com> Date: Tue, 16 Jul 2024 11:03:42 +0530 Subject: [PATCH] [NFC] Fix typos (#98454) Summary: Co-authored-by: Akshat Oke Test Plan: Reviewers: Subscribers: Tasks: Tags: Differential Revision: https://phabricator.intern.facebook.com/D59822445 --- llvm/lib/Target/AMDGPU/AMDGPULowerModuleLDSPass.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/llvm/lib/Target/AMDGPU/AMDGPULowerModuleLDSPass.cpp b/llvm/lib/Target/AMDGPU/AMDGPULowerModuleLDSPass.cpp index 2bdbf4151dd954e..a295117de6414d5 100644 --- a/llvm/lib/Target/AMDGPU/AMDGPULowerModuleLDSPass.cpp +++ b/llvm/lib/Target/AMDGPU/AMDGPULowerModuleLDSPass.cpp @@ -281,7 +281,7 @@ class AMDGPULowerModuleLDS { // immediately used by the kernel must still be allocated by it. An // equivalent target specific intrinsic which lasts until immediately after // codegen would suffice for that, but one would still need to ensure that - // the variables are allocated in the anticpated order. + // the variables are allocated in the anticipated order. BasicBlock *Entry = &Func->getEntryBlock(); IRBuilder<> Builder(Entry, Entry->getFirstNonPHIIt()); @@ -545,7 +545,7 @@ class AMDGPULowerModuleLDS { static std::vector assignLDSKernelIDToEachKernel( Module *M, DenseSet const &KernelsThatAllocateTableLDS, DenseSet const &KernelsThatIndirectlyAllocateDynamicLDS) { - // Associate kernels in the set with an arbirary but reproducible order and + // Associate kernels in the set with an arbitrary but reproducible order and // annotate them with that order in metadata. This metadata is recognised by // the backend and lowered to a SGPR which can be read from using // amdgcn_lds_kernel_id. @@ -1087,7 +1087,7 @@ class AMDGPULowerModuleLDS { raw_string_ostream SS{Buffer}; SS << format("%u", Offset); - // Instead of explictly marking kernels that access dynamic variables + // Instead of explicitly marking kernels that access dynamic variables // using special case metadata, annotate with min-lds == max-lds, i.e. // that there is no more space available for allocating more static // LDS variables. That is the right condition to prevent allocating @@ -1173,7 +1173,7 @@ class AMDGPULowerModuleLDS { LayoutFields.reserve(LDSVarsToTransform.size()); { // The order of fields in this struct depends on the order of - // varables in the argument which varies when changing how they + // variables in the argument which varies when changing how they // are identified, leading to spurious test breakage. auto Sorted = sortByName(std::vector( LDSVarsToTransform.begin(), LDSVarsToTransform.end()));