@@ -281,7 +281,7 @@ class AMDGPULowerModuleLDS {
281281 // immediately used by the kernel must still be allocated by it. An
282282 // equivalent target specific intrinsic which lasts until immediately after
283283 // codegen would suffice for that, but one would still need to ensure that
284- // the variables are allocated in the anticpated order.
284+ // the variables are allocated in the anticipated order.
285285 BasicBlock *Entry = &Func->getEntryBlock ();
286286 IRBuilder<> Builder (Entry, Entry->getFirstNonPHIIt ());
287287
@@ -545,7 +545,7 @@ class AMDGPULowerModuleLDS {
545545 static std::vector<Function *> assignLDSKernelIDToEachKernel (
546546 Module *M, DenseSet<Function *> const &KernelsThatAllocateTableLDS,
547547 DenseSet<Function *> const &KernelsThatIndirectlyAllocateDynamicLDS) {
548- // Associate kernels in the set with an arbirary but reproducible order and
548+ // Associate kernels in the set with an arbitrary but reproducible order and
549549 // annotate them with that order in metadata. This metadata is recognised by
550550 // the backend and lowered to a SGPR which can be read from using
551551 // amdgcn_lds_kernel_id.
@@ -1087,7 +1087,7 @@ class AMDGPULowerModuleLDS {
10871087 raw_string_ostream SS{Buffer};
10881088 SS << format (" %u" , Offset);
10891089
1090- // Instead of explictly marking kernels that access dynamic variables
1090+ // Instead of explicitly marking kernels that access dynamic variables
10911091 // using special case metadata, annotate with min-lds == max-lds, i.e.
10921092 // that there is no more space available for allocating more static
10931093 // LDS variables. That is the right condition to prevent allocating
@@ -1173,7 +1173,7 @@ class AMDGPULowerModuleLDS {
11731173 LayoutFields.reserve (LDSVarsToTransform.size ());
11741174 {
11751175 // The order of fields in this struct depends on the order of
1176- // varables in the argument which varies when changing how they
1176+ // variables in the argument which varies when changing how they
11771177 // are identified, leading to spurious test breakage.
11781178 auto Sorted = sortByName (std::vector<GlobalVariable *>(
11791179 LDSVarsToTransform.begin (), LDSVarsToTransform.end ()));
0 commit comments