Home
last modified time | relevance | path

Searched refs:Allocas (Results 1 – 21 of 21) sorted by relevance

/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DMem2Reg.cpp37 std::vector<AllocaInst *> Allocas; in promoteMemoryToRegister() local
42 Allocas.clear(); in promoteMemoryToRegister()
49 Allocas.push_back(AI); in promoteMemoryToRegister()
51 if (Allocas.empty()) in promoteMemoryToRegister()
54 PromoteMemToReg(Allocas, DT, &AC); in promoteMemoryToRegister()
55 NumPromoted += Allocas.size(); in promoteMemoryToRegister()
H A DPromoteMemoryToRegister.cpp347 std::vector<AllocaInst *> Allocas; member
400 PromoteMem2Reg(ArrayRef<AllocaInst *> Allocas, DominatorTree &DT, in PromoteMem2Reg()
402 : Allocas(Allocas.begin(), Allocas.end()), DT(DT), in PromoteMem2Reg()
411 Allocas[AllocaIdx] = Allocas.back(); in RemoveFromAllocasList()
412 Allocas.pop_back(); in RemoveFromAllocasList()
743 AllocaDbgUsers.resize(Allocas.size()); in run()
744 AllocaATInfo.resize(Allocas.size()); in run()
745 AllocaDPUsers.resize(Allocas.size()); in run()
753 for (unsigned AllocaNum = 0; AllocaNum != Allocas.size(); ++AllocaNum) { in run()
754 AllocaInst *AI = Allocas[AllocaNum]; in run()
[all …]
H A DCodeExtractor.cpp314 Allocas.push_back(AI); in CodeExtractorAnalysisCache()
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DStackLifetime.cpp295 dbgs() << " " << AllocaNo << ": " << *Allocas[AllocaNo] << "\n"; in dumpAllocas()
319 ArrayRef<const AllocaInst *> Allocas, in StackLifetime() argument
321 : F(F), Type(Type), Allocas(Allocas), NumAllocas(Allocas.size()) { in StackLifetime()
325 AllocaNumbering[Allocas[I]] = I; in StackLifetime()
403 SmallVector<const AllocaInst *, 8> Allocas; in run() local
406 Allocas.push_back(AI); in run()
407 StackLifetime SL(F, Allocas, Type); in run()
H A DStackSafetyAnalysis.cpp184 std::map<const AllocaInst *, UseInfo<CalleeTy>> Allocas; member
211 auto &AS = Allocas.find(AI)->second; in print()
217 assert(Allocas.empty()); in print()
560 SmallVector<AllocaInst *, 64> Allocas; in run() local
563 Allocas.push_back(AI); in run()
564 StackLifetime SL(F, Allocas, StackLifetime::LivenessType::Must); in run()
567 for (auto *AI : Allocas) { in run()
568 auto &UI = Info.Allocas.emplace(AI, PointerSize).first->second; in run()
861 for (auto &KV : FI.Allocas) { in createGlobalStackSafetyInfo()
869 A.Calls = SrcF.Allocas in createGlobalStackSafetyInfo()
[all...]
/freebsd/contrib/llvm-project/llvm/include/llvm/Transforms/Utils/
H A DCodeExtractor.h48 SmallVector<AllocaInst *, 16> Allocas; variable
65 ArrayRef<AllocaInst *> getAllocas() const { return Allocas; } in getAllocas()
201 const ValueSet &Allocas) const;
H A DPromoteMemToReg.h39 void PromoteMemToReg(ArrayRef<AllocaInst *> Allocas, DominatorTree &DT,
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Coroutines/
H A DCoroFrame.cpp474 SmallVector<AllocaInfo, 8> Allocas; member
480 for (const auto &A : Allocas) in getAllDefs()
572 static void dumpAllocas(const SmallVectorImpl<AllocaInfo> &Allocas) { in dumpAllocas() argument
574 for (const auto &A : Allocas) { in dumpAllocas()
754 for (const auto &A : Allocas) in updateLayoutIndex()
776 for (const auto &A : FrameData.Allocas) { in addFieldForAllocas()
807 AllocaSetType Allocas; in addFieldForAllocas() local
808 Allocas.reserve(FrameData.Allocas.size()); in addFieldForAllocas()
809 for (const auto &A : FrameData.Allocas) in addFieldForAllocas()
810 Allocas.push_back(A.Alloca); in addFieldForAllocas()
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DStackLifetime.h104 ArrayRef<const AllocaInst *> Allocas; variable
135 StackLifetime(const Function &F, ArrayRef<const AllocaInst *> Allocas,
/freebsd/contrib/llvm-project/llvm/lib/Transforms/IPO/
H A DArgumentPromotion.cpp307 SmallVector<AllocaInst *, 4> Allocas; in doPromotion() local
405 Allocas.push_back(Pair.second); in doPromotion()
409 LLVM_DEBUG(dbgs() << "ARG PROMOTION: " << Allocas.size() in doPromotion()
412 if (!Allocas.empty()) { in doPromotion()
418 PromoteMemToReg(Allocas, DT, &AC); in doPromotion()
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUPromoteAlloca.cpp113 void sortAllocasToPromote(SmallVectorImpl<AllocaInst *> &Allocas);
267 SmallVectorImpl<AllocaInst *> &Allocas) { in sortAllocasToPromote() argument
270 for (auto *Alloca : Allocas) { in sortAllocasToPromote()
288 stable_sort(Allocas, [&](AllocaInst *A, AllocaInst *B) { in sortAllocasToPromote()
295 for (auto *A: Allocas) in sortAllocasToPromote()
320 SmallVector<AllocaInst *, 16> Allocas; in run() local
327 Allocas.push_back(AI); in run()
331 sortAllocasToPromote(Allocas); in run()
334 for (AllocaInst *AI : Allocas) { in run()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DStackColoring.cpp921 DenseMap<const AllocaInst*, const AllocaInst*> Allocas; in remapInstructions() local
930 Allocas[From] = To; in remapInstructions()
1001 if (!Allocas.count(AI)) in remapInstructions()
1004 MMO->setValue(Allocas[AI]); in remapInstructions()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/
H A DStatepointLowering.cpp675 SmallVector<SDValue, 4> Allocas; in lowerStatepointMetaArgs() local
682 Allocas.push_back(Builder.DAG.getTargetFrameIndex( in lowerStatepointMetaArgs()
690 pushStackMapConstant(Ops, Builder, Allocas.size()); in lowerStatepointMetaArgs()
691 Ops.append(Allocas.begin(), Allocas.end()); in lowerStatepointMetaArgs()
H A DSelectionDAGBuilder.cpp7546 SmallVector<const Value *, 4> Allocas; in visitIntrinsicCall() local
7547 getUnderlyingObjects(ObjectPtr, Allocas); in visitIntrinsicCall()
7549 for (const Value *Alloca : Allocas) { in visitIntrinsicCall()
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCGCleanup.h367 void AddAuxAllocas(llvm::SmallVector<llvm::AllocaInst *> Allocas) {
368 for (auto *Alloca : Allocas)
H A DCodeGenFunction.h2766 void Add(llvm::AllocaInst *I) { Allocas.push_back(I); }
2767 llvm::SmallVector<llvm::AllocaInst *> Take() { return std::move(Allocas); }
2770 llvm::SmallVector<llvm::AllocaInst *> Allocas;
2772 AllocaTracker *Allocas = nullptr;
2778 : CGF(CGF), OldTracker(CGF.Allocas) {
2779 CGF.Allocas = &Tracker;
2781 ~AllocaTrackerRAII() { CGF.Allocas = OldTracker; }
H A DCGExpr.cpp125 if (Allocas) { in CreateTempAlloca()
126 Allocas->Add(Alloca); in CreateTempAlloca()
/freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/Interpreter/
H A DInterpreter.h67 AllocaHolder Allocas; // Track memory allocated by alloca member
H A DExecution.cpp1007 ECStack.back().Allocas.add(Memory); in visitAllocaInst()
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/
H A DAArch64StackTagging.cpp335 const MapVector<AllocaInst *, memtag::AllocaInfo> &Allocas,
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/
H A DIRTranslator.cpp2179 SmallVector<const Value *, 4> Allocas; in translateKnownIntrinsic() local
2180 getUnderlyingObjects(CI.getArgOperand(1), Allocas); in translateKnownIntrinsic()
2184 for (const Value *V : Allocas) { in translateKnownIntrinsic()