diff options
author | shadchin <shadchin@yandex-team.ru> | 2022-02-10 16:44:30 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:44:30 +0300 |
commit | 2598ef1d0aee359b4b6d5fdd1758916d5907d04f (patch) | |
tree | 012bb94d777798f1f56ac1cec429509766d05181 /contrib/libs/llvm12/lib/Target/NVPTX/NVPTXLowerArgs.cpp | |
parent | 6751af0b0c1b952fede40b19b71da8025b5d8bcf (diff) | |
download | ydb-2598ef1d0aee359b4b6d5fdd1758916d5907d04f.tar.gz |
Restoring authorship annotation for <shadchin@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'contrib/libs/llvm12/lib/Target/NVPTX/NVPTXLowerArgs.cpp')
-rw-r--r-- | contrib/libs/llvm12/lib/Target/NVPTX/NVPTXLowerArgs.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/contrib/libs/llvm12/lib/Target/NVPTX/NVPTXLowerArgs.cpp b/contrib/libs/llvm12/lib/Target/NVPTX/NVPTXLowerArgs.cpp index fd58ff1378..0048984968 100644 --- a/contrib/libs/llvm12/lib/Target/NVPTX/NVPTXLowerArgs.cpp +++ b/contrib/libs/llvm12/lib/Target/NVPTX/NVPTXLowerArgs.cpp @@ -172,12 +172,12 @@ void NVPTXLowerArgs::handleByValParam(Argument *Arg) { Value *ArgInParam = new AddrSpaceCastInst( Arg, PointerType::get(StructType, ADDRESS_SPACE_PARAM), Arg->getName(), FirstInst); - // Be sure to propagate alignment to this load; LLVM doesn't know that NVPTX - // addrspacecast preserves alignment. Since params are constant, this load is - // definitely not volatile. + // Be sure to propagate alignment to this load; LLVM doesn't know that NVPTX + // addrspacecast preserves alignment. Since params are constant, this load is + // definitely not volatile. LoadInst *LI = - new LoadInst(StructType, ArgInParam, Arg->getName(), - /*isVolatile=*/false, AllocA->getAlign(), FirstInst); + new LoadInst(StructType, ArgInParam, Arg->getName(), + /*isVolatile=*/false, AllocA->getAlign(), FirstInst); new StoreInst(LI, AllocA, FirstInst); } @@ -218,7 +218,7 @@ bool NVPTXLowerArgs::runOnKernelFunction(Function &F) { for (auto &I : B) { if (LoadInst *LI = dyn_cast<LoadInst>(&I)) { if (LI->getType()->isPointerTy()) { - Value *UO = getUnderlyingObject(LI->getPointerOperand()); + Value *UO = getUnderlyingObject(LI->getPointerOperand()); if (Argument *Arg = dyn_cast<Argument>(UO)) { if (Arg->hasByValAttr()) { // LI is a load from a pointer within a byval kernel parameter. |