@@ -281,7 +281,7 @@ class AMDGPULowerModuleLDS {
281
281
// immediately used by the kernel must still be allocated by it. An
282
282
// equivalent target specific intrinsic which lasts until immediately after
283
283
// 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.
285
285
BasicBlock *Entry = &Func->getEntryBlock ();
286
286
IRBuilder<> Builder (Entry, Entry->getFirstNonPHIIt ());
287
287
@@ -545,7 +545,7 @@ class AMDGPULowerModuleLDS {
545
545
static std::vector<Function *> assignLDSKernelIDToEachKernel (
546
546
Module *M, DenseSet<Function *> const &KernelsThatAllocateTableLDS,
547
547
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
549
549
// annotate them with that order in metadata. This metadata is recognised by
550
550
// the backend and lowered to a SGPR which can be read from using
551
551
// amdgcn_lds_kernel_id.
@@ -1087,7 +1087,7 @@ class AMDGPULowerModuleLDS {
1087
1087
raw_string_ostream SS{Buffer};
1088
1088
SS << format (" %u" , Offset);
1089
1089
1090
- // Instead of explictly marking kernels that access dynamic variables
1090
+ // Instead of explicitly marking kernels that access dynamic variables
1091
1091
// using special case metadata, annotate with min-lds == max-lds, i.e.
1092
1092
// that there is no more space available for allocating more static
1093
1093
// LDS variables. That is the right condition to prevent allocating
@@ -1173,7 +1173,7 @@ class AMDGPULowerModuleLDS {
1173
1173
LayoutFields.reserve (LDSVarsToTransform.size ());
1174
1174
{
1175
1175
// 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
1177
1177
// are identified, leading to spurious test breakage.
1178
1178
auto Sorted = sortByName (std::vector<GlobalVariable *>(
1179
1179
LDSVarsToTransform.begin (), LDSVarsToTransform.end ()));
0 commit comments