| /freebsd-12-stable/contrib/llvm-project/llvm/lib/Transforms/Coroutines/ |
| D | CoroFrame.cpp | 309 AllocaInst *Alloca; member 312 AllocaInfo(AllocaInst *Alloca, in AllocaInfo() 315 : Alloca(Alloca), Aliases(std::move(Aliases)), in AllocaInfo() 331 Defs.push_back(A.Alloca); in getAllDefs() 404 A.Alloca->dump(); in dumpAllocas() 569 Updater(A.Alloca); in updateLayoutIndex() 589 for (auto *Alloca : AllocaList) in addFieldForAllocas() local 590 FrameData.setFieldIndex(Alloca, Id); in addFieldForAllocas() 596 AllocaInst *Alloca = A.Alloca; in addFieldForAllocas() local 597 NonOverlapedAllocas.emplace_back(AllocaSetType(1, Alloca)); in addFieldForAllocas() [all …]
|
| D | CoroSplit.cpp | 612 auto Alloca = Builder.CreateAlloca(ValueTy); in replaceSwiftErrorOps() local 613 Alloca->setSwiftError(true); in replaceSwiftErrorOps() 615 CachedSlot = Alloca; in replaceSwiftErrorOps() 616 return Alloca; in replaceSwiftErrorOps() 743 auto *Alloca = dyn_cast<AllocaInst>(&I); in replaceEntryBlock() local 744 if (!Alloca || I.use_empty()) in replaceEntryBlock() 747 !isa<ConstantInt>(Alloca->getArraySize())) in replaceEntryBlock()
|
| /freebsd-12-stable/contrib/llvm-project/llvm/include/llvm/CodeGen/ |
| D | MachineFrameInfo.h | 165 const AllocaInst *Alloca; member 186 bool IsImmutable, bool IsSpillSlot, const AllocaInst *Alloca, 190 Alloca(Alloca), isAliased(IsAliased), SSPLayout(SSPLK_None) {} in SPOffset() 487 return Objects[ObjectIdx+NumFixedObjects].Alloca; in getObjectAllocation() 735 const AllocaInst *Alloca = nullptr, uint8_t ID = 0); 750 int CreateVariableSizedObject(Align Alignment, const AllocaInst *Alloca);
|
| D | WinEHFuncInfo.h | 65 const AllocaInst *Alloca; member
|
| /freebsd-12-stable/contrib/llvm-project/llvm/lib/CodeGen/ |
| D | MachineFrameInfo.cpp | 53 const AllocaInst *Alloca, in CreateStackObject() argument 57 Objects.push_back(StackObject(Size, Alignment, 0, false, IsSpillSlot, Alloca, in CreateStackObject() 75 const AllocaInst *Alloca) { in CreateVariableSizedObject() argument 78 Objects.push_back(StackObject(0, Alignment, 0, false, false, Alloca, true)); in CreateVariableSizedObject()
|
| D | SwiftErrorValueTracking.cpp | 109 if (const AllocaInst *Alloca = dyn_cast<AllocaInst>(&Inst)) in setFunction() local 110 if (Alloca->isSwiftError()) in setFunction() 111 SwiftErrorVals.push_back(Alloca); in setFunction()
|
| D | MIRPrinter.cpp | 429 if (const auto *Alloca = MFI.getObjectAllocation(I)) in convertStackObjects() local 431 Alloca->hasName() ? Alloca->getName() : ""); in convertStackObjects()
|
| D | MachineOperand.cpp | 507 if (const AllocaInst *Alloca = MFI->getObjectAllocation(FrameIndex)) in printFrameIndex() local 508 if (Alloca->hasName()) in printFrameIndex() 509 Name = Alloca->getName(); in printFrameIndex()
|
| D | WinEHPrepare.cpp | 160 HT.CatchObj.Alloca = AI; in addTryBlockMapEntry() 162 HT.CatchObj.Alloca = nullptr; in addTryBlockMapEntry()
|
| /freebsd-12-stable/contrib/llvm-project/clang/lib/CodeGen/ |
| D | CGGPUBuiltin.cpp | 109 llvm::Value *Alloca = CreateTempAlloca(AllocaTy); in EmitNVPTXDevicePrintfCallExpr() local 112 llvm::Value *P = Builder.CreateStructGEP(AllocaTy, Alloca, I - 1); in EmitNVPTXDevicePrintfCallExpr() 116 BufferPtr = Builder.CreatePointerCast(Alloca, llvm::Type::getInt8PtrTy(Ctx)); in EmitNVPTXDevicePrintfCallExpr()
|
| D | CGExpr.cpp | 71 auto Alloca = CreateTempAlloca(Ty, Name, ArraySize); in CreateTempAllocaWithoutCast() local 72 Alloca->setAlignment(Align.getAsAlign()); in CreateTempAllocaWithoutCast() 73 return Address(Alloca, Align); in CreateTempAllocaWithoutCast() 82 auto Alloca = CreateTempAllocaWithoutCast(Ty, Align, Name, ArraySize); in CreateTempAlloca() local 84 *AllocaAddr = Alloca; in CreateTempAlloca() 85 llvm::Value *V = Alloca.getPointer(); in CreateTempAlloca() 130 auto *Alloca = Var.getPointer(); in InitTempAlloca() local 131 assert(isa<llvm::AllocaInst>(Alloca) || in InitTempAlloca() 132 (isa<llvm::AddrSpaceCastInst>(Alloca) && in InitTempAlloca() 134 cast<llvm::AddrSpaceCastInst>(Alloca)->getPointerOperand()))); in InitTempAlloca() [all …]
|
| D | CGCall.cpp | 2885 Address Alloca = CreateMemTemp(Ty, getContext().getDeclAlign(Arg), in EmitFunctionProlog() local 2889 Address Ptr = emitAddressAtOffset(*this, Alloca, ArgI); in EmitFunctionProlog() 2905 CreateTempAlloca(STy, Alloca.getAlignment(), "coerce"); in EmitFunctionProlog() 2931 EmitLoadOfScalar(Alloca, false, Ty, Arg->getBeginLoc()); in EmitFunctionProlog() 2936 ArgVals.push_back(ParamValue::forIndirect(Alloca)); in EmitFunctionProlog() 2967 Address Alloca = CreateMemTemp(Ty, getContext().getDeclAlign(Arg)); in EmitFunctionProlog() local 2968 LValue LV = MakeAddrLValue(Alloca, Ty); in EmitFunctionProlog() 2969 ArgVals.push_back(ParamValue::forIndirect(Alloca)); in EmitFunctionProlog()
|
| /freebsd-12-stable/contrib/llvm-project/llvm/lib/Transforms/Scalar/ |
| D | RewriteStatepointsForGC.cpp | 1870 Value *Alloca = AllocaMap[OriginalValue]; in insertRelocationStores() local 1880 cast<AllocaInst>(Alloca)->getAllocatedType(), in insertRelocationStores() 1883 new StoreInst(CastedRelocatedValue, Alloca, in insertRelocationStores() 1904 Value *Alloca = AllocaMap[OriginalValue]; in insertRematerializationStores() local 1906 new StoreInst(RematerializedValue, Alloca, in insertRematerializationStores() 1939 AllocaInst *Alloca = new AllocaInst(LiveValue->getType(), in relocationViaAlloca() local 1942 AllocaMap[LiveValue] = Alloca; in relocationViaAlloca() 1943 PromotableAllocas.push_back(Alloca); in relocationViaAlloca() 1999 AllocaInst *Alloca = Pair.second; in relocationViaAlloca() local 2005 ToClobber.push_back(Alloca); in relocationViaAlloca() [all …]
|
| D | MemCpyOptimizer.cpp | 1299 AllocaInst *Alloca = dyn_cast<AllocaInst>(getUnderlyingObject(V)); in hasUndefContentsMSSA() local 1300 if (getUnderlyingObject(II->getArgOperand(1)) == Alloca) { in hasUndefContentsMSSA() 1301 const DataLayout &DL = Alloca->getModule()->getDataLayout(); in hasUndefContentsMSSA() 1302 if (Optional<TypeSize> AllocaSize = Alloca->getAllocationSizeInBits(DL)) in hasUndefContentsMSSA()
|
| /freebsd-12-stable/contrib/llvm-project/llvm/lib/Target/AMDGPU/ |
| D | AMDGPUPromoteAlloca.cpp | 92 bool binaryOpIsDerivedFromSameAlloca(Value *Alloca, Value *Val, 407 static bool tryPromoteAllocaToVector(AllocaInst *Alloca, const DataLayout &DL, in tryPromoteAllocaToVector() argument 415 Type *AllocaTy = Alloca->getAllocatedType(); in tryPromoteAllocaToVector() 447 SmallVector<User *, 8> Users(Alloca->users()); in tryPromoteAllocaToVector() 448 SmallVector<User *, 8> UseUsers(Users.size(), Alloca); in tryPromoteAllocaToVector() 513 Value *BitCast = Builder.CreateBitCast(Alloca, VecPtrTy); in tryPromoteAllocaToVector() 534 Value *BitCast = Builder.CreateBitCast(Alloca, VecPtrTy); in tryPromoteAllocaToVector()
|
| D | AMDGPUTargetTransformInfo.cpp | 192 const AllocaInst *Alloca = in getUnrollingPreferences() local 194 if (!Alloca || !Alloca->isStaticAlloca()) in getUnrollingPreferences() 196 Type *Ty = Alloca->getAllocatedType(); in getUnrollingPreferences()
|
| D | AMDGPUAttributor.cpp | 398 A.checkForAllInstructions(CheckAlloca, *this, {Instruction::Alloca}, in updateImpl()
|
| /freebsd-12-stable/contrib/llvm-project/llvm/lib/CodeGen/MIRParser/ |
| D | MIRParser.cpp | 759 const AllocaInst *Alloca = nullptr; in initializeFrameInfo() local 762 Alloca = dyn_cast_or_null<AllocaInst>( in initializeFrameInfo() 764 if (!Alloca) in initializeFrameInfo() 775 MFI.CreateVariableSizedObject(Object.Alignment.valueOrOne(), Alloca); in initializeFrameInfo() 779 Object.Type == yaml::MachineStackObject::SpillSlot, Alloca, in initializeFrameInfo()
|
| /freebsd-12-stable/contrib/llvm-project/llvm/lib/IR/ |
| D | Value.cpp | 1004 auto *Alloca = dyn_cast<AllocaInst>(this); in isSwiftError() local 1005 if (!Alloca) in isSwiftError() 1007 return Alloca->isSwiftError(); in isSwiftError()
|
| /freebsd-12-stable/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/ |
| D | AddressSanitizer.cpp | 3104 AllocaInst *Alloca; in createAllocaForLayout() local 3106 Alloca = IRB.CreateAlloca(IRB.getInt8Ty(), in createAllocaForLayout() 3110 Alloca = IRB.CreateAlloca(ArrayType::get(IRB.getInt8Ty(), L.FrameSize), in createAllocaForLayout() 3112 assert(Alloca->isStaticAlloca()); in createAllocaForLayout() 3116 Alloca->setAlignment(Align(FrameAlignment)); in createAllocaForLayout() 3117 return IRB.CreatePointerCast(Alloca, IntptrTy); in createAllocaForLayout() 3180 auto *Alloca = dyn_cast<AllocaInst>(Store->getPointerOperand()); in findStoresToUninstrumentedArgAllocas() local 3181 if (!Alloca || ASan.isInterestingAlloca(*Alloca)) in findStoresToUninstrumentedArgAllocas()
|
| D | HWAddressSanitizer.cpp | 1333 if (auto *Alloca = dyn_cast_or_null<AllocaInst>(V)) in sanitizeFunction() local 1334 if (!AllocaDbgMap.count(Alloca) || in sanitizeFunction() 1335 AllocaDbgMap[Alloca].back() != DVI) in sanitizeFunction() 1336 AllocaDbgMap[Alloca].push_back(DVI); in sanitizeFunction()
|
| /freebsd-12-stable/contrib/llvm-project/llvm/lib/Transforms/ObjCARC/ |
| D | ObjCARCOpts.cpp | 2240 if (AllocaInst *Alloca = dyn_cast<AllocaInst>(Arg)) { in OptimizeWeakCalls() local 2241 for (User *U : Alloca->users()) { in OptimizeWeakCalls() 2253 for (auto UI = Alloca->user_begin(), UE = Alloca->user_end(); UI != UE;) { in OptimizeWeakCalls() 2269 Alloca->eraseFromParent(); in OptimizeWeakCalls()
|
| /freebsd-12-stable/contrib/llvm-project/llvm/lib/Transforms/IPO/ |
| D | GlobalOpt.cpp | 1486 AllocaInst *Alloca = new AllocaInst(ElemTy, DL.getAllocaAddrSpace(), nullptr, in processInternalGlobal() local 1489 new StoreInst(GV->getInitializer(), Alloca, &FirstI); in processInternalGlobal() 1493 GV->replaceAllUsesWith(Alloca); in processInternalGlobal() 1873 auto *Alloca = in RemovePreallocated() local 1876 Alloca, Type::getInt8PtrTy(M->getContext()), UseCall->getName()); in RemovePreallocated()
|
| /freebsd-12-stable/contrib/llvm-project/llvm/include/llvm/IR/ |
| D | Instruction.def | 171 HANDLE_MEMORY_INST(31, Alloca, AllocaInst) // Stack management
|
| /freebsd-12-stable/contrib/llvm-project/llvm/lib/Target/ARM/ |
| D | ARMFastISel.cpp | 784 case Instruction::Alloca: { in ARMComputeAddress() 1017 if (const AllocaInst *Alloca = dyn_cast<AllocaInst>(SV)) { in SelectLoad() local 1018 if (Alloca->isSwiftError()) in SelectLoad() 1149 if (const AllocaInst *Alloca = dyn_cast<AllocaInst>(PtrV)) { in SelectStore() local 1150 if (Alloca->isSwiftError()) in SelectStore()
|