Home
last modified time | relevance | path

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

/netbsd/external/apache2/llvm/dist/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.cpp224 std::vector<AllocaInst *> Allocas; member
267 : Allocas(Allocas.begin(), Allocas.end()), DT(DT), in PromoteMem2Reg()
276 Allocas[AllocaIdx] = Allocas.back(); in RemoveFromAllocasList()
277 Allocas.pop_back(); in RemoveFromAllocasList()
548 AllocaDbgUsers.resize(Allocas.size()); in run()
555 AllocaInst *AI = Allocas[AllocaNum]; in run()
610 AllocaLookup[Allocas[AllocaNum]] = AllocaNum; in run()
638 if (Allocas.empty()) in run()
670 for (Instruction *A : Allocas) { in run()
1016 if (Allocas.empty()) in PromoteMemToReg()
[all …]
H A DCodeExtractor.cpp315 Allocas.push_back(AI); in CodeExtractorAnalysisCache()
/netbsd/external/apache2/llvm/dist/llvm/lib/Analysis/
H A DStackLifetime.cpp286 dbgs() << " " << AllocaNo << ": " << *Allocas[AllocaNo] << "\n"; in dumpAllocas()
310 ArrayRef<const AllocaInst *> Allocas, in StackLifetime() argument
312 : F(F), Type(Type), Allocas(Allocas), NumAllocas(Allocas.size()) { in StackLifetime()
316 AllocaNumbering[Allocas[I]] = I; in StackLifetime()
394 SmallVector<const AllocaInst *, 8> Allocas; in run() local
397 Allocas.push_back(AI); in run()
398 StackLifetime SL(F, Allocas, Type); in run()
H A DStackSafetyAnalysis.cpp176 std::map<const AllocaInst *, UseInfo<CalleeTy>> Allocas; member
203 auto &AS = Allocas.find(AI)->second; in print()
209 assert(Allocas.empty()); in print()
447 SmallVector<AllocaInst *, 64> Allocas; in run() local
450 Allocas.push_back(AI); in run()
451 StackLifetime SL(F, Allocas, StackLifetime::LivenessType::Must); in run()
454 for (auto *AI : Allocas) { in run()
455 auto &UI = Info.Allocas.emplace(AI, PointerSize).first->second; in run()
751 for (auto &KV : FI.Allocas) { in createGlobalStackSafetyInfo()
759 A.Calls = SrcF.Allocas.find(KV.first)->second.Calls; in createGlobalStackSafetyInfo()
[all …]
/netbsd/external/apache2/llvm/dist/llvm/lib/Target/AArch64/
H A DAArch64StackTagging.cpp462 const MapVector<AllocaInst *, AllocaInfo> &Allocas, in insertBaseTaggedPointer() argument
466 for (auto &I : Allocas) { in insertBaseTaggedPointer()
560 Allocas[AI].AI = AI; in runOnFunction()
561 Allocas[AI].OldAI = AI; in runOnFunction()
568 Allocas[AI].DbgVariableIntrinsics.push_back(DVI); in runOnFunction()
581 Allocas[AI].LifetimeStart.push_back(II); in runOnFunction()
583 Allocas[AI].LifetimeEnd.push_back(II); in runOnFunction()
591 if (Allocas.empty()) in runOnFunction()
596 for (auto &I : Allocas) { in runOnFunction()
638 Instruction *Base = insertBaseTaggedPointer(Allocas, DT); in runOnFunction()
[all …]
/netbsd/external/apache2/llvm/dist/llvm/include/llvm/Transforms/Utils/
H A DCodeExtractor.h48 SmallVector<AllocaInst *, 16> Allocas; variable
65 ArrayRef<AllocaInst *> getAllocas() const { return Allocas; } in getAllocas()
167 const ValueSet &Allocas) const;
H A DPromoteMemToReg.h39 void PromoteMemToReg(ArrayRef<AllocaInst *> Allocas, DominatorTree &DT,
/netbsd/external/apache2/llvm/dist/llvm/lib/Transforms/Coroutines/
H A DCoroFrame.cpp324 SmallVector<AllocaInfo, 8> Allocas; member
330 for (const auto &A : Allocas) in getAllDefs()
403 for (const auto &A : Allocas) { in dumpAllocas()
556 for (const auto &A : Allocas) in updateLayoutIndex()
614 AllocaSetType Allocas; in addFieldForAllocas() local
615 Allocas.reserve(FrameData.Allocas.size()); in addFieldForAllocas()
616 for (const auto &A : FrameData.Allocas) in addFieldForAllocas()
617 Allocas.push_back(A.Alloca); in addFieldForAllocas()
618 return Allocas; in addFieldForAllocas()
640 for (const auto &A : FrameData.Allocas) { in addFieldForAllocas()
[all …]
/netbsd/external/apache2/llvm/dist/llvm/include/llvm/Analysis/
H A DStackLifetime.h105 ArrayRef<const AllocaInst *> Allocas; variable
136 StackLifetime(const Function &F, ArrayRef<const AllocaInst *> Allocas,
/netbsd/external/apache2/llvm/dist/llvm/lib/Target/AMDGPU/
H A DAMDGPUPromoteAlloca.cpp187 SmallVector<AllocaInst *, 16> Allocas; in run() local
190 Allocas.push_back(AI); in run()
193 for (AllocaInst *AI : Allocas) { in run()
1111 SmallVector<AllocaInst *, 16> Allocas; in promoteAllocasToVector() local
1114 Allocas.push_back(AI); in promoteAllocasToVector()
1117 for (AllocaInst *AI : Allocas) { in promoteAllocasToVector()
/netbsd/external/apache2/llvm/dist/llvm/lib/CodeGen/
H A DStackColoring.cpp949 DenseMap<const AllocaInst*, const AllocaInst*> Allocas; in remapInstructions() local
958 Allocas[From] = To; in remapInstructions()
1029 if (!Allocas.count(AI)) in remapInstructions()
1032 MMO->setValue(Allocas[AI]); in remapInstructions()
/netbsd/external/apache2/llvm/dist/llvm/lib/CodeGen/SelectionDAG/
H A DStatepointLowering.cpp692 SmallVector<SDValue, 4> Allocas; in lowerStatepointMetaArgs() local
699 Allocas.push_back(Builder.DAG.getTargetFrameIndex( in lowerStatepointMetaArgs()
707 pushStackMapConstant(Ops, Builder, Allocas.size()); in lowerStatepointMetaArgs()
708 Ops.append(Allocas.begin(), Allocas.end()); in lowerStatepointMetaArgs()
H A DSelectionDAGBuilder.cpp6766 SmallVector<const Value *, 4> Allocas; in visitIntrinsicCall() local
6767 getUnderlyingObjects(ObjectPtr, Allocas); in visitIntrinsicCall()
6769 for (const Value *Alloca : Allocas) { in visitIntrinsicCall()
/netbsd/external/apache2/llvm/dist/llvm/lib/ExecutionEngine/Interpreter/
H A DInterpreter.h67 AllocaHolder Allocas; // Track memory allocated by alloca member
H A DExecution.cpp1043 ECStack.back().Allocas.add(Memory); in visitAllocaInst()
/netbsd/external/apache2/llvm/dist/llvm/docs/
H A DSegmentedStacks.rst63 Variable Sized Allocas
H A DGetElementPtr.rst407 with such a pointer. This includes ``GlobalVariables``, ``Allocas``, and objects
H A DStatepoints.rst283 pointer list. Allocas can be listed with or without additional explicit gc
/netbsd/external/apache2/llvm/dist/llvm/lib/Transforms/Instrumentation/
H A DHWAddressSanitizer.cpp233 SmallVectorImpl<AllocaInst *> &Allocas,
1142 SmallVectorImpl<AllocaInst *> &Allocas, in instrumentStack() argument
1150 for (unsigned N = 0; N < Allocas.size(); ++N) { in instrumentStack()
1151 auto *AI = Allocas[N]; in instrumentStack()
/netbsd/external/apache2/llvm/dist/llvm/lib/CodeGen/GlobalISel/
H A DIRTranslator.cpp1838 SmallVector<const Value *, 4> Allocas; in translateKnownIntrinsic() local
1839 getUnderlyingObjects(CI.getArgOperand(1), Allocas); in translateKnownIntrinsic()
1843 for (const Value *V : Allocas) { in translateKnownIntrinsic()