/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Scalar/ |
D | SROA.cpp | 2270 AllocaInst &OldAI, &NewAI; member in llvm::sroa::AllocaSliceRewriter 2318 AllocaInst &OldAI, AllocaInst &NewAI, in AllocaSliceRewriter() argument 2324 : DL(DL), AS(AS), Pass(Pass), OldAI(OldAI), NewAI(NewAI), in AllocaSliceRewriter() 2327 NewAllocaTy(NewAI.getAllocatedType()), in AllocaSliceRewriter() 2330 NewAI.getContext(), in AllocaSliceRewriter() 2331 DL.getTypeSizeInBits(NewAI.getAllocatedType())) in AllocaSliceRewriter() 2337 IRB(NewAI.getContext(), ConstantFolder()) { in AllocaSliceRewriter() 2371 IRB.SetNamePrefix(Twine(NewAI.getName()) + "." + Twine(BeginOffset) + "."); in visit() 2416 return getAdjustedPtr(IRB, DL, &NewAI, in getNewAllocaSlicePtr() 2434 MaybeAlign(NewAI.getAlignment()), NewAI.getAllocatedType()); in getSliceAlign() [all …]
|
/external/llvm-project/llvm/lib/Transforms/Scalar/ |
D | SROA.cpp | 2290 AllocaInst &OldAI, &NewAI; member in llvm::sroa::AllocaSliceRewriter 2338 AllocaInst &OldAI, AllocaInst &NewAI, in AllocaSliceRewriter() argument 2344 : DL(DL), AS(AS), Pass(Pass), OldAI(OldAI), NewAI(NewAI), in AllocaSliceRewriter() 2347 NewAllocaTy(NewAI.getAllocatedType()), in AllocaSliceRewriter() 2350 ? Type::getIntNTy(NewAI.getContext(), in AllocaSliceRewriter() 2351 DL.getTypeSizeInBits(NewAI.getAllocatedType()) in AllocaSliceRewriter() 2359 IRB(NewAI.getContext(), ConstantFolder()) { in AllocaSliceRewriter() 2394 Twine(NewAI.getName()) + "." + Twine(BeginOffset) + "."); in visit() 2439 return getAdjustedPtr(IRB, DL, &NewAI, in getNewAllocaSlicePtr() 2456 return commonAlignment(NewAI.getAlign(), in getSliceAlign() [all …]
|
/external/llvm/lib/Transforms/Scalar/ |
D | SROA.cpp | 2154 AllocaInst &OldAI, &NewAI; member in llvm::sroa::AllocaSliceRewriter 2200 AllocaInst &OldAI, AllocaInst &NewAI, in AllocaSliceRewriter() argument 2206 : DL(DL), AS(AS), Pass(Pass), OldAI(OldAI), NewAI(NewAI), in AllocaSliceRewriter() 2209 NewAllocaTy(NewAI.getAllocatedType()), in AllocaSliceRewriter() 2212 NewAI.getContext(), in AllocaSliceRewriter() 2213 DL.getTypeSizeInBits(NewAI.getAllocatedType())) in AllocaSliceRewriter() 2220 IRB(NewAI.getContext(), ConstantFolder()) { in AllocaSliceRewriter() 2254 IRB.SetNamePrefix(Twine(NewAI.getName()) + "." + Twine(BeginOffset) + "."); in visit() 2299 return getAdjustedPtr(IRB, DL, &NewAI, in getNewAllocaSlicePtr() 2315 unsigned NewAIAlign = NewAI.getAlignment(); in getSliceAlign() [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AArch64/ |
D | AArch64StackTagging.cpp | 482 auto *NewAI = new AllocaInst( in alignAndPadAlloca() local 484 NewAI->takeName(Info.AI); in alignAndPadAlloca() 485 NewAI->setAlignment(MaybeAlign(Info.AI->getAlignment())); in alignAndPadAlloca() 486 NewAI->setUsedWithInAlloca(Info.AI->isUsedWithInAlloca()); in alignAndPadAlloca() 487 NewAI->setSwiftError(Info.AI->isSwiftError()); in alignAndPadAlloca() 488 NewAI->copyMetadata(*Info.AI); in alignAndPadAlloca() 490 auto *NewPtr = new BitCastInst(NewAI, Info.AI->getType(), "", Info.AI); in alignAndPadAlloca() 493 Info.AI = NewAI; in alignAndPadAlloca()
|
/external/llvm-project/llvm/lib/Target/AArch64/ |
D | AArch64StackTagging.cpp | 506 auto *NewAI = new AllocaInst( in alignAndPadAlloca() local 508 NewAI->takeName(Info.AI); in alignAndPadAlloca() 509 NewAI->setAlignment(Info.AI->getAlign()); in alignAndPadAlloca() 510 NewAI->setUsedWithInAlloca(Info.AI->isUsedWithInAlloca()); in alignAndPadAlloca() 511 NewAI->setSwiftError(Info.AI->isSwiftError()); in alignAndPadAlloca() 512 NewAI->copyMetadata(*Info.AI); in alignAndPadAlloca() 514 auto *NewPtr = new BitCastInst(NewAI, Info.AI->getType(), "", Info.AI); in alignAndPadAlloca() 517 Info.AI = NewAI; in alignAndPadAlloca()
|
/external/llvm/lib/CodeGen/ |
D | SafeStack.cpp | 582 Value *NewAI = in moveStaticAllocasToUnsafeStack() local 586 StackGuardSlot->replaceAllUsesWith(NewAI); in moveStaticAllocasToUnsafeStack() 706 Value *NewAI = IRB.CreatePointerCast(NewTop, AI->getType()); in moveDynamicAllocasToUnsafeStack() local 707 if (AI->hasName() && isa<Instruction>(NewAI)) in moveDynamicAllocasToUnsafeStack() 708 NewAI->takeName(AI); in moveDynamicAllocasToUnsafeStack() 710 replaceDbgDeclareForAlloca(AI, NewAI, DIB, /*Deref=*/true); in moveDynamicAllocasToUnsafeStack() 711 AI->replaceAllUsesWith(NewAI); in moveDynamicAllocasToUnsafeStack()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/ |
D | SafeStack.cpp | 556 Value *NewAI = in moveStaticAllocasToUnsafeStack() local 560 StackGuardSlot->replaceAllUsesWith(NewAI); in moveStaticAllocasToUnsafeStack() 675 Value *NewAI = IRB.CreatePointerCast(NewTop, AI->getType()); in moveDynamicAllocasToUnsafeStack() local 676 if (AI->hasName() && isa<Instruction>(NewAI)) in moveDynamicAllocasToUnsafeStack() 677 NewAI->takeName(AI); in moveDynamicAllocasToUnsafeStack() 679 replaceDbgDeclareForAlloca(AI, NewAI, DIB, DIExpression::ApplyOffset, 0); in moveDynamicAllocasToUnsafeStack() 680 AI->replaceAllUsesWith(NewAI); in moveDynamicAllocasToUnsafeStack()
|
D | AtomicExpandPass.cpp | 800 AtomicRMWInst *NewAI = Builder.CreateAtomicRMW(Op, PMV.AlignedAddr, in widenPartwordAtomicRMW() local 804 Builder.CreateLShr(NewAI, PMV.ShiftAmt), PMV.ValueType); in widenPartwordAtomicRMW() 807 return NewAI; in widenPartwordAtomicRMW()
|
/external/llvm-project/llvm/lib/CodeGen/ |
D | SafeStack.cpp | 571 Value *NewAI = in moveStaticAllocasToUnsafeStack() local 575 StackGuardSlot->replaceAllUsesWith(NewAI); in moveStaticAllocasToUnsafeStack() 689 Value *NewAI = IRB.CreatePointerCast(NewTop, AI->getType()); in moveDynamicAllocasToUnsafeStack() local 690 if (AI->hasName() && isa<Instruction>(NewAI)) in moveDynamicAllocasToUnsafeStack() 691 NewAI->takeName(AI); in moveDynamicAllocasToUnsafeStack() 693 replaceDbgDeclare(AI, NewAI, DIB, DIExpression::ApplyOffset, 0); in moveDynamicAllocasToUnsafeStack() 694 AI->replaceAllUsesWith(NewAI); in moveDynamicAllocasToUnsafeStack()
|
D | AtomicExpandPass.cpp | 820 AtomicRMWInst *NewAI = Builder.CreateAtomicRMW(Op, PMV.AlignedAddr, in widenPartwordAtomicRMW() local 823 Value *FinalOldResult = extractMaskedValue(Builder, NewAI, PMV); in widenPartwordAtomicRMW() 826 return NewAI; in widenPartwordAtomicRMW()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Instrumentation/ |
D | HWAddressSanitizer.cpp | 1178 auto *NewAI = new AllocaInst( in sanitizeFunction() local 1180 NewAI->takeName(AI); in sanitizeFunction() 1181 NewAI->setAlignment(MaybeAlign(AI->getAlignment())); in sanitizeFunction() 1182 NewAI->setUsedWithInAlloca(AI->isUsedWithInAlloca()); in sanitizeFunction() 1183 NewAI->setSwiftError(AI->isSwiftError()); in sanitizeFunction() 1184 NewAI->copyMetadata(*AI); in sanitizeFunction() 1185 auto *Bitcast = new BitCastInst(NewAI, AI->getType(), "", AI); in sanitizeFunction() 1187 AllocaToPaddedAllocaMap[AI] = NewAI; in sanitizeFunction() 1197 if (auto *NewAI = AllocaToPaddedAllocaMap.lookup(AI)) in sanitizeFunction() local 1199 0, MetadataAsValue::get(*C, LocalAsMetadata::get(NewAI))); in sanitizeFunction()
|
/external/llvm-project/llvm/lib/Transforms/Instrumentation/ |
D | HWAddressSanitizer.cpp | 1283 auto *NewAI = new AllocaInst( in sanitizeFunction() local 1285 NewAI->takeName(AI); in sanitizeFunction() 1286 NewAI->setAlignment(AI->getAlign()); in sanitizeFunction() 1287 NewAI->setUsedWithInAlloca(AI->isUsedWithInAlloca()); in sanitizeFunction() 1288 NewAI->setSwiftError(AI->isSwiftError()); in sanitizeFunction() 1289 NewAI->copyMetadata(*AI); in sanitizeFunction() 1290 auto *Bitcast = new BitCastInst(NewAI, AI->getType(), "", AI); in sanitizeFunction() 1292 AllocaToPaddedAllocaMap[AI] = NewAI; in sanitizeFunction() 1302 if (auto *NewAI = AllocaToPaddedAllocaMap.lookup(AI)) in sanitizeFunction() local 1304 0, MetadataAsValue::get(*C, LocalAsMetadata::get(NewAI))); in sanitizeFunction()
|