Home
last modified time | relevance | path

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

1234

/freebsd/contrib/llvm-project/llvm/lib/Transforms/Coroutines/
H A DCoroFrame.cpp67 Defs.push_back(A.Alloca); in getAllDefs()
152 A.Alloca->dump(); in dumpAllocas()
332 Updater(A.Alloca); in updateLayoutIndex()
348 for (auto *Alloca : AllocaList) in addFieldForAllocas() local
349 FrameData.setFieldIndex(Alloca, Id); in addFieldForAllocas()
355 AllocaInst *Alloca = A.Alloca; in addFieldForAllocas() local
356 NonOverlapedAllocas.emplace_back(AllocaSetType(1, Alloca)); in addFieldForAllocas()
388 Allocas.push_back(A.Alloca); in addFieldForAllocas()
399 std::optional<TypeSize> RetSize = A.Alloca->getAllocationSize(DL); in addFieldForAllocas()
412 AllocaInst *Alloca = A.Alloca; in addFieldForAllocas() local
[all …]
H A DCoroSplit.cpp585 auto Alloca = Builder.CreateAlloca(ValueTy); in replaceSwiftErrorOps() local
586 Alloca->setSwiftError(true); in replaceSwiftErrorOps()
588 CachedSlot = Alloca; in replaceSwiftErrorOps()
589 return Alloca; in replaceSwiftErrorOps()
734 auto *Alloca = dyn_cast<AllocaInst>(&I); in replaceEntryBlock() local
735 if (!Alloca || I.use_empty()) in replaceEntryBlock()
738 !isa<ConstantInt>(Alloca->getArraySize())) in replaceEntryBlock()
/freebsd/contrib/llvm-project/llvm/include/llvm/Transforms/Coroutines/
H A DSpillUtils.h23 AllocaInst *Alloca; member
26 AllocaInfo(AllocaInst *Alloca, in AllocaInfo()
29 : Alloca(Alloca), Aliases(std::move(Aliases)), in AllocaInfo()
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DKernelInfo.cpp104 const AllocaInst &Alloca, in remarkAlloca() argument
110 auto DVRs = findDVRDeclares(&const_cast<AllocaInst &>(Alloca)); in remarkAlloca()
118 Alloca.getParent()); in remarkAlloca()
126 Alloca.printAsOperand(OS, /*PrintType=*/false, Caller.getParent()); in remarkAlloca()
183 if (const AllocaInst *Alloca = dyn_cast<AllocaInst>(&I)) { in updateForBB() local
186 if (std::optional<TypeSize> Size = Alloca->getAllocationSize(DL)) { in updateForBB()
194 remarkAlloca(ORE, F, *Alloca, StaticSize); in updateForBB()
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUPromoteAlloca.cpp118 bool binaryOpIsDerivedFromSameAlloca(Value *Alloca, Value *Val,
239 static void collectAllocaUses(AllocaInst &Alloca, in collectAllocaUses() argument
241 SmallVector<Instruction *, 4> WorkList({&Alloca}); in collectAllocaUses()
257 for (auto *Alloca : Allocas) { in sortAllocasToPromote() local
258 LLVM_DEBUG(dbgs() << "Scoring: " << *Alloca << "\n"); in sortAllocasToPromote()
259 unsigned &Score = Scores[Alloca]; in sortAllocasToPromote()
262 collectAllocaUses(*Alloca, Uses); in sortAllocasToPromote()
400 static Value *GEPToVectorIndex(GetElementPtrInst *GEP, AllocaInst *Alloca, in GEPToVectorIndex() argument
435 assert(CurPtr == Alloca && "GEP not based on alloca"); in GEPToVectorIndex()
790 bool AMDGPUPromoteAllocaImpl::tryPromoteAllocaToVector(AllocaInst &Alloca) { in tryPromoteAllocaToVector() argument
[all …]
H A DAMDGPUTargetTransformInfo.cpp204 const AllocaInst *Alloca = in getUnrollingPreferences() local
206 if (!Alloca || !Alloca->isStaticAlloca()) in getUnrollingPreferences()
208 Type *Ty = Alloca->getAllocatedType(); in getUnrollingPreferences()
/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/
H A DMachineFrameInfo.h166 const AllocaInst *Alloca; member
187 bool IsImmutable, bool IsSpillSlot, const AllocaInst *Alloca,
191 Alloca(Alloca), isAliased(IsAliased) {} in SPOffset()
517 return Objects[ObjectIdx+NumFixedObjects].Alloca; in getObjectAllocation()
525 Objects[ObjectIdx + NumFixedObjects].Alloca = nullptr; in clearObjectAllocation()
791 const AllocaInst *Alloca = nullptr,
808 const AllocaInst *Alloca);
H A DWinEHFuncInfo.h65 const AllocaInst *Alloca; member
/freebsd/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()
/freebsd/contrib/llvm-project/llvm/lib/FuzzMutate/
H A DRandomIRBuilder.cpp70 AllocaInst *Alloca = new AllocaInst(Ty, DL.getAllocaAddrSpace(), "A", in createStackMemory() local
73 new StoreInst(Init, Alloca, std::next(Alloca->getIterator())); in createStackMemory()
74 return Alloca; in createStackMemory()
282 AllocaInst *Alloca = createStackMemory(F, Ty, newSrc); in newSource() local
284 newSrc = new LoadInst(Ty, Alloca, /*ArrLen,*/ "L", in newSource()
287 newSrc = new LoadInst(Ty, Alloca, /*ArrLen,*/ "L", &BB); in newSource()
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCGGPUBuiltin.cpp93 llvm::Value *Alloca = CGF->CreateTempAlloca(AllocaTy); in packArgsIntoNVPTXFormatBuffer() local
96 llvm::Value *P = Builder.CreateStructGEP(AllocaTy, Alloca, I - 1); in packArgsIntoNVPTXFormatBuffer()
101 Builder.CreatePointerCast(Alloca, llvm::PointerType::getUnqual(Ctx)); in packArgsIntoNVPTXFormatBuffer()
H A DCGCleanup.h284 void Add(llvm::AllocaInst *Alloca) { AuxAllocas.push_back(Alloca); }
373 for (auto *Alloca : Allocas)
374 getAuxillaryAllocas().Add(Alloca);
H A DCGExpr.cpp94 auto Alloca = CreateTempAlloca(Ty, Name, ArraySize); in CreateTempAllocaWithoutCast() local
95 Alloca->setAlignment(Align.getAsAlign()); in CreateTempAllocaWithoutCast()
96 return RawAddress(Alloca, Ty, Align, KnownNonNull); in CreateTempAllocaWithoutCast()
103 RawAddress Alloca = CreateTempAllocaWithoutCast(Ty, Align, Name, ArraySize); in CreateTempAlloca() local
105 *AllocaAddr = Alloca; in CreateTempAlloca()
106 llvm::Value *V = Alloca.getPointer(); in CreateTempAlloca()
113 if (DestAddrSpace != Alloca.getAddressSpace()) { in CreateTempAlloca()
134 llvm::AllocaInst *Alloca; in CreateTempAlloca() local
136 Alloca = Builder.CreateAlloca(Ty, ArraySize, Name); in CreateTempAlloca()
138 Alloca = in CreateTempAlloca()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/DirectX/
H A DDXILLegalizePass.cpp357 if (auto *Alloca = dyn_cast<AllocaInst>(Val)) in emitMemcpyExpansion() local
358 return dyn_cast<ArrayType>(Alloca->getAllocatedType()); in emitMemcpyExpansion()
411 AllocaInst *Alloca = dyn_cast<AllocaInst>(Dst); in emitMemsetExpansion() local
413 assert(Alloca && "Expected memset on an Alloca"); in emitMemsetExpansion()
414 assert(OrigSize == Alloca->getAllocationSize(DL)->getFixedValue() && in emitMemsetExpansion()
417 Type *AllocatedTy = Alloca->getAllocatedType(); in emitMemsetExpansion()
H A DDXILDataScalarization.cpp313 } else if (AllocaInst *Alloca = dyn_cast<AllocaInst>(PtrOperand)) { in visitGetElementPtrInst() local
314 Type *AllocatedType = Alloca->getAllocatedType(); in visitGetElementPtrInst()
H A DDXILFlattenArrays.cpp286 } else if (auto *Alloca = dyn_cast<AllocaInst>(PtrOperand)) in visitGetElementPtrInst() local
287 RootTy = Alloca->getAllocatedType(); in visitGetElementPtrInst()
/freebsd/contrib/llvm-project/llvm/include/llvm/SandboxIR/
H A DValues.def114 DEF_INSTR(Alloca, OP(Alloca), AllocaInst)
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DRewriteStatepointsForGC.cpp1981 Value *Alloca = AllocaMap[OriginalValue]; in insertRelocationStores() local
1986 new StoreInst(Relocate, Alloca, std::next(Relocate->getIterator())); in insertRelocationStores()
2006 Value *Alloca = AllocaMap[OriginalValue]; in insertRematerializationStores() local
2008 new StoreInst(RematerializedValue, Alloca, in insertRematerializationStores()
2041 AllocaInst *Alloca = in relocationViaAlloca() local
2044 AllocaMap[LiveValue] = Alloca; in relocationViaAlloca()
2045 PromotableAllocas.push_back(Alloca); in relocationViaAlloca()
2101 AllocaInst *Alloca = Pair.second; in relocationViaAlloca() local
2107 ToClobber.push_back(Alloca); in relocationViaAlloca()
2137 AllocaInst *Alloca = Pair.second; in relocationViaAlloca() local
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Transforms/IPO/
H A DFunctionSpecialization.cpp519 Constant *FunctionSpecializer::getPromotableAlloca(AllocaInst *Alloca, in getPromotableAlloca() argument
522 for (auto *User : Alloca->users()) { in getPromotableAlloca()
555 auto *Alloca = dyn_cast<AllocaInst>(Val); in getConstantStackValue() local
556 if (!Alloca || !Alloca->getAllocatedType()->isIntegerTy()) in getConstantStackValue()
558 return getPromotableAlloca(Alloca, Call); in getConstantStackValue()
H A DGlobalOpt.cpp1493 AllocaInst *Alloca = new AllocaInst(ElemTy, DL.getAllocaAddrSpace(), in processInternalGlobal() local
1495 Alloca->setDebugLoc(DebugLoc::getCompilerGenerated()); in processInternalGlobal()
1497 auto *SI = new StoreInst(GV->getInitializer(), Alloca, FirstI); in processInternalGlobal()
1504 GV->replaceAllUsesWith(Alloca); in processInternalGlobal()
1907 auto *Alloca = in RemovePreallocated() local
1909 ArgAllocas[AllocArgIndex] = Alloca; in RemovePreallocated()
1910 AllocaReplacement = Alloca; in RemovePreallocated()
/freebsd/contrib/llvm-project/llvm/include/llvm/Transforms/Vectorize/SandboxVectorizer/
H A DDependencyGraph.h199 AllocaInst *Alloca; in isMemDepNodeCandidate() local
201 ((Alloca = dyn_cast<AllocaInst>(I)) && in isMemDepNodeCandidate()
202 Alloca->isUsedWithInAlloca()) || in isMemDepNodeCandidate()
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86WinEHState.cpp811 if (auto *Alloca = dyn_cast<AllocaInst>(&I)) { in updateEspForInAllocas() local
812 if (Alloca->isStaticAlloca()) in updateEspForInAllocas()
814 IRBuilder<> Builder(Alloca->getNextNonDebugInstruction()); in updateEspForInAllocas()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/MIRParser/
H A DMIRParser.cpp924 const AllocaInst *Alloca = nullptr; in initializeFrameInfo() local
927 Alloca = dyn_cast_or_null<AllocaInst>( in initializeFrameInfo()
929 if (!Alloca) in initializeFrameInfo()
940 MFI.CreateVariableSizedObject(Object.Alignment.valueOrOne(), Alloca); in initializeFrameInfo()
944 Object.Type == yaml::MachineStackObject::SpillSlot, Alloca, in initializeFrameInfo()
/freebsd/contrib/llvm-project/llvm/include/llvm/Transforms/IPO/
H A DFunctionSpecialization.h274 Constant *getPromotableAlloca(AllocaInst *Alloca, CallInst *Call);

1234