diff options
| author | Jay Foad <jay.foad@amd.com> | 2024-10-03 13:07:54 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-10-03 13:07:54 +0100 |
| commit | 8d13e7b8c382499c1cf0c2a3184b483e760f266b (patch) | |
| tree | 51d3b78b088fcf272a7630437818fe1cea0c9b42 /llvm/lib/Target/AMDGPU/AMDGPULowerModuleLDSPass.cpp | |
| parent | 5901463ada16fa54959a7c9c63ccf089dfc085c2 (diff) | |
[AMDGPU] Qualify auto. NFC. (#110878)
Generated automatically with:
$ clang-tidy -fix -checks=-*,llvm-qualified-auto $(find
lib/Target/AMDGPU/ -type f)
Diffstat (limited to 'llvm/lib/Target/AMDGPU/AMDGPULowerModuleLDSPass.cpp')
| -rw-r--r-- | llvm/lib/Target/AMDGPU/AMDGPULowerModuleLDSPass.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/lib/Target/AMDGPU/AMDGPULowerModuleLDSPass.cpp b/llvm/lib/Target/AMDGPU/AMDGPULowerModuleLDSPass.cpp index a166087a5cdc..51a5b7702c00 100644 --- a/llvm/lib/Target/AMDGPU/AMDGPULowerModuleLDSPass.cpp +++ b/llvm/lib/Target/AMDGPU/AMDGPULowerModuleLDSPass.cpp @@ -324,7 +324,7 @@ public: for (GlobalVariable *GV : Variables) { auto ConstantGepIt = LDSVarsToConstantGEP.find(GV); if (ConstantGepIt != LDSVarsToConstantGEP.end()) { - auto elt = ConstantExpr::getPtrToInt(ConstantGepIt->second, I32); + auto *elt = ConstantExpr::getPtrToInt(ConstantGepIt->second, I32); Elements.push_back(elt); } else { Elements.push_back(PoisonValue::get(I32)); @@ -850,7 +850,7 @@ public: } assert(func->hasName()); // Checked by caller - auto emptyCharArray = ArrayType::get(Type::getInt8Ty(Ctx), 0); + auto *emptyCharArray = ArrayType::get(Type::getInt8Ty(Ctx), 0); GlobalVariable *N = new GlobalVariable( M, emptyCharArray, false, GlobalValue::ExternalLinkage, nullptr, Twine("llvm.amdgcn." + func->getName() + ".dynlds"), nullptr, GlobalValue::NotThreadLocal, AMDGPUAS::LOCAL_ADDRESS, @@ -890,8 +890,8 @@ public: markUsedByKernel(func, N); - auto emptyCharArray = ArrayType::get(Type::getInt8Ty(Ctx), 0); - auto GEP = ConstantExpr::getGetElementPtr( + auto *emptyCharArray = ArrayType::get(Type::getInt8Ty(Ctx), 0); + auto *GEP = ConstantExpr::getGetElementPtr( emptyCharArray, N, ConstantInt::get(I32, 0), true); newDynamicLDS.push_back(ConstantExpr::getPtrToInt(GEP, I32)); } else { |
