Home
last modified time | relevance | path

Searched refs:Alloca (Results 1 – 25 of 71) sorted by relevance

123

/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Coroutines/
H A DCoroFrame.cpp456 AllocaInst *Alloca; member
462 : Alloca(Alloca), Aliases(std::move(Aliases)), in AllocaInfo()
572 A.Alloca->dump(); in dumpAllocas()
752 Updater(A.Alloca); in updateLayoutIndex()
774 AllocaInst *Alloca = A.Alloca; in addFieldForAllocas() local
831 AllocaInst *Alloca = A.Alloca; in addFieldForAllocas() local
1946 AllocaInst *Alloca = P.Alloca; in insertSpills() local
1967 AllocaInst *Alloca = A.Alloca; in insertSpills() local
2001 AllocaInst *Alloca = A.Alloca; in insertSpills() local
2009 auto *Value = Builder.CreateLoad(Alloca->getAllocatedType(), Alloca); in insertSpills()
[all …]
H A DCoroSplit.cpp691 auto Alloca = Builder.CreateAlloca(ValueTy); in replaceSwiftErrorOps() local
692 Alloca->setSwiftError(true); in replaceSwiftErrorOps()
694 CachedSlot = Alloca; in replaceSwiftErrorOps()
695 return Alloca; in replaceSwiftErrorOps()
841 auto *Alloca = dyn_cast<AllocaInst>(&I); in replaceEntryBlock() local
842 if (!Alloca || I.use_empty()) in replaceEntryBlock()
845 !isa<ConstantInt>(Alloca->getArraySize())) in replaceEntryBlock()
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/CodeGen/
H A DMachineFrameInfo.h164 const AllocaInst *Alloca; member
185 bool IsImmutable, bool IsSpillSlot, const AllocaInst *Alloca,
189 Alloca(Alloca), isAliased(IsAliased) {} in SPOffset()
513 return Objects[ObjectIdx+NumFixedObjects].Alloca; in getObjectAllocation()
521 Objects[ObjectIdx + NumFixedObjects].Alloca = nullptr; in clearObjectAllocation()
776 const AllocaInst *Alloca = nullptr, uint8_t ID = 0);
791 int CreateVariableSizedObject(Align Alignment, const AllocaInst *Alloca);
H A DWinEHFuncInfo.h65 const AllocaInst *Alloca; member
/freebsd-14.2/contrib/llvm-project/llvm/lib/FuzzMutate/
H A DRandomIRBuilder.cpp71 AllocaInst *Alloca = new AllocaInst(Ty, DL.getAllocaAddrSpace(), "A", in createStackMemory() local
74 new StoreInst(Init, Alloca, Alloca->getNextNode()); in createStackMemory()
75 return Alloca; in createStackMemory()
232 AllocaInst *Alloca = createStackMemory(F, Ty, newSrc); in newSource() local
234 newSrc = new LoadInst(Ty, Alloca, /*ArrLen,*/ "L", BB.getTerminator()); in newSource()
236 newSrc = new LoadInst(Ty, Alloca, /*ArrLen,*/ "L", &BB); in newSource()
/freebsd-14.2/contrib/llvm-project/llvm/lib/CodeGen/
H A DMachineFrameInfo.cpp53 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()
H A DSwiftErrorValueTracking.cpp109 if (const AllocaInst *Alloca = dyn_cast<AllocaInst>(&Inst)) in setFunction() local
110 if (Alloca->isSwiftError()) in setFunction()
111 SwiftErrorVals.push_back(Alloca); in setFunction()
H A DMIRPrinter.cpp444 if (const auto *Alloca = MFI.getObjectAllocation(I)) in convertStackObjects() local
446 Alloca->hasName() ? Alloca->getName() : ""); in convertStackObjects()
H A DMachineOperand.cpp560 if (const AllocaInst *Alloca = MFI->getObjectAllocation(FrameIndex)) in printFrameIndex() local
561 if (Alloca->hasName()) in printFrameIndex()
562 Name = Alloca->getName(); in printFrameIndex()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUPromoteAlloca.cpp94 bool binaryOpIsDerivedFromSameAlloca(Value *Alloca, Value *Val,
300 static Value *GEPToVectorIndex(GetElementPtrInst *GEP, AllocaInst *Alloca, in GEPToVectorIndex() argument
307 if (GEP->getPointerOperand()->stripPointerCasts() != Alloca || in GEPToVectorIndex()
631 Type *AllocaTy = Alloca.getAllocatedType(); in tryPromoteAllocaToVector()
679 for (Use &U : Alloca.uses()) in tryPromoteAllocaToVector()
710 if (Ptr == &Alloca && DL->getTypeStoreSize(Alloca.getAllocatedType()) == in tryPromoteAllocaToVector()
734 Value *Index = GEPToVectorIndex(GEP, &Alloca, VecEltTy, *DL); in tryPromoteAllocaToVector()
746 MSI && isSupportedMemset(MSI, &Alloca, *DL)) { in tryPromoteAllocaToVector()
768 if (Ptr != &Alloca && !GEPVectorIdx.count(GEP)) in tryPromoteAllocaToVector()
883 assert(Alloca.use_empty()); in tryPromoteAllocaToVector()
[all …]
H A DAMDGPUTargetTransformInfo.cpp197 const AllocaInst *Alloca = in getUnrollingPreferences() local
199 if (!Alloca || !Alloca->isStaticAlloca()) in getUnrollingPreferences()
201 Type *Ty = Alloca->getAllocatedType(); in getUnrollingPreferences()
/freebsd-14.2/contrib/llvm-project/clang/lib/CodeGen/
H A DCGGPUBuiltin.cpp116 llvm::Value *Alloca = CGF->CreateTempAlloca(AllocaTy); in packArgsIntoNVPTXFormatBuffer() local
119 llvm::Value *P = Builder.CreateStructGEP(AllocaTy, Alloca, I - 1); in packArgsIntoNVPTXFormatBuffer()
124 Builder.CreatePointerCast(Alloca, llvm::PointerType::getUnqual(Ctx)); in packArgsIntoNVPTXFormatBuffer()
H A DCGExpr.cpp72 auto Alloca = CreateTempAlloca(Ty, Name, ArraySize); in CreateTempAllocaWithoutCast() local
73 Alloca->setAlignment(Align.getAsAlign()); in CreateTempAllocaWithoutCast()
74 return Address(Alloca, Ty, Align, KnownNonNull); in CreateTempAllocaWithoutCast()
85 *AllocaAddr = Alloca; in CreateTempAlloca()
86 llvm::Value *V = Alloca.getPointer(); in CreateTempAlloca()
136 Address *Alloca) { in CreateMemTemp() argument
421 return CGF.CreateMemTemp(Ty, "ref.tmp", Alloca); in createReferenceTemporary()
505 Address Alloca = Address::invalid(); in EmitMaterializeTemporaryExpr() local
523 Alloca.getPointer())) { in EmitMaterializeTemporaryExpr()
525 Alloca, Size); in EmitMaterializeTemporaryExpr()
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DRewriteStatepointsForGC.cpp1974 Value *Alloca = AllocaMap[OriginalValue]; in insertRelocationStores() local
1999 Value *Alloca = AllocaMap[OriginalValue]; in insertRematerializationStores() local
2001 new StoreInst(RematerializedValue, Alloca, in insertRematerializationStores()
2037 AllocaMap[LiveValue] = Alloca; in relocationViaAlloca()
2038 PromotableAllocas.push_back(Alloca); in relocationViaAlloca()
2094 AllocaInst *Alloca = Pair.second; in relocationViaAlloca() local
2100 ToClobber.push_back(Alloca); in relocationViaAlloca()
2129 AllocaInst *Alloca = Pair.second; in relocationViaAlloca() local
2158 new LoadInst(Alloca->getAllocatedType(), Alloca, "", in relocationViaAlloca()
2165 new LoadInst(Alloca->getAllocatedType(), Alloca, "", Use); in relocationViaAlloca()
[all …]
H A DMemCpyOptimizer.cpp1339 if (auto *Alloca = dyn_cast<AllocaInst>(getUnderlyingObject(V))) { in hasUndefContents() local
1340 if (getUnderlyingObject(II->getArgOperand(1)) == Alloca) { in hasUndefContents()
1341 const DataLayout &DL = Alloca->getModule()->getDataLayout(); in hasUndefContents()
1343 Alloca->getAllocationSize(DL)) in hasUndefContents()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/IPO/
H A DFunctionSpecialization.cpp476 Constant *FunctionSpecializer::getPromotableAlloca(AllocaInst *Alloca, in getPromotableAlloca() argument
479 for (auto *User : Alloca->users()) { in getPromotableAlloca()
517 auto *Alloca = dyn_cast<AllocaInst>(Val); in getConstantStackValue() local
518 if (!Alloca || !Alloca->getAllocatedType()->isIntegerTy()) in getConstantStackValue()
520 return getPromotableAlloca(Alloca, Call); in getConstantStackValue()
H A DGlobalOpt.cpp1467 AllocaInst *Alloca = new AllocaInst(ElemTy, DL.getAllocaAddrSpace(), nullptr, in processInternalGlobal() local
1470 new StoreInst(GV->getInitializer(), Alloca, &FirstI); in processInternalGlobal()
1472 GV->replaceAllUsesWith(Alloca); in processInternalGlobal()
1893 auto *Alloca = in RemovePreallocated() local
1895 ArgAllocas[AllocArgIndex] = Alloca; in RemovePreallocated()
1896 AllocaReplacement = Alloca; in RemovePreallocated()
/freebsd-14.2/contrib/llvm-project/llvm/lib/CodeGen/MIRParser/
H A DMIRParser.cpp826 const AllocaInst *Alloca = nullptr; in initializeFrameInfo() local
829 Alloca = dyn_cast_or_null<AllocaInst>( in initializeFrameInfo()
831 if (!Alloca) in initializeFrameInfo()
842 MFI.CreateVariableSizedObject(Object.Alignment.valueOrOne(), Alloca); in initializeFrameInfo()
846 Object.Type == yaml::MachineStackObject::SpillSlot, Alloca, in initializeFrameInfo()
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/Transforms/IPO/
H A DFunctionSpecialization.h292 Constant *getPromotableAlloca(AllocaInst *Alloca, CallInst *Call);
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Vectorize/
H A DVPlanAnalysis.cpp163 case Instruction::Alloca: in inferScalarTypeForRecipe()
/freebsd-14.2/contrib/llvm-project/llvm/lib/IR/
H A DDebugInfo.cpp2038 if (const auto *Alloca = dyn_cast<AllocaInst>(Base)) in getAssignmentInfoImpl() local
2039 return AssignmentInfo(DL, Alloca, OffsetInBytes * 8, SizeInBits); in getAssignmentInfoImpl()
2239 if (AllocaInst *Alloca = in runOnFunction() local
2242 if (!Alloca->isStaticAlloca()) in runOnFunction()
2245 if (auto Sz = Alloca->getAllocationSize(*DL); Sz && Sz->isScalable()) in runOnFunction()
2247 DeclareList[Alloca].insert(Declare); in runOnFunction()
2248 Vars[Alloca].insert(VarRecord(Declare)); in runOnFunction()
H A DValue.cpp1099 auto *Alloca = dyn_cast<AllocaInst>(this); in isSwiftError() local
1100 if (!Alloca) in isSwiftError()
1102 return Alloca->isSwiftError(); in isSwiftError()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/
H A DAddressSanitizer.cpp3188 AllocaInst *Alloca; in createAllocaForLayout() local
3190 Alloca = IRB.CreateAlloca(IRB.getInt8Ty(), in createAllocaForLayout()
3194 Alloca = IRB.CreateAlloca(ArrayType::get(IRB.getInt8Ty(), L.FrameSize), in createAllocaForLayout()
3196 assert(Alloca->isStaticAlloca()); in createAllocaForLayout()
3200 Alloca->setAlignment(Align(FrameAlignment)); in createAllocaForLayout()
3201 return IRB.CreatePointerCast(Alloca, IntptrTy); in createAllocaForLayout()
3264 auto *Alloca = dyn_cast<AllocaInst>(Store->getPointerOperand()); in findStoresToUninstrumentedArgAllocas() local
3265 if (!Alloca || ASan.isInterestingAlloca(*Alloca)) in findStoresToUninstrumentedArgAllocas()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/ObjCARC/
H A DObjCARCOpts.cpp2200 if (AllocaInst *Alloca = dyn_cast<AllocaInst>(Arg)) { in OptimizeWeakCalls() local
2201 for (User *U : Alloca->users()) { in OptimizeWeakCalls()
2213 for (User *U : llvm::make_early_inc_range(Alloca->users())) { in OptimizeWeakCalls()
2229 Alloca->eraseFromParent(); in OptimizeWeakCalls()
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/IR/
H A DInstruction.def171 HANDLE_MEMORY_INST(31, Alloca, AllocaInst) // Stack management

123