Home
last modified time | relevance | path

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

/freebsd-12-stable/contrib/llvm-project/llvm/lib/Transforms/Utils/
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()
DPromoteMemoryToRegister.cpp224 std::vector<AllocaInst *> Allocas; member
265 PromoteMem2Reg(ArrayRef<AllocaInst *> Allocas, DominatorTree &DT, in PromoteMem2Reg()
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()
554 for (unsigned AllocaNum = 0; AllocaNum != Allocas.size(); ++AllocaNum) { in run()
555 AllocaInst *AI = Allocas[AllocaNum]; in run()
610 AllocaLookup[Allocas[AllocaNum]] = AllocaNum; in run()
638 if (Allocas.empty()) in run()
[all …]
DCodeExtractor.cpp315 Allocas.push_back(AI); in CodeExtractorAnalysisCache()
/freebsd-12-stable/contrib/llvm-project/llvm/lib/Analysis/
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()
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()
449 SmallVector<AllocaInst *, 64> Allocas; in run() local
452 Allocas.push_back(AI); in run()
453 StackLifetime SL(F, Allocas, StackLifetime::LivenessType::Must); in run()
456 for (auto *AI : Allocas) { in run()
457 auto &UI = Info.Allocas.emplace(AI, PointerSize).first->second; in run()
753 for (auto &KV : FI.Allocas) { in createGlobalStackSafetyInfo()
761 A.Calls = SrcF.Allocas.find(KV.first)->second.Calls; in createGlobalStackSafetyInfo()
[all …]
/freebsd-12-stable/contrib/llvm-project/llvm/lib/Target/AArch64/
DAArch64StackTagging.cpp321 insertBaseTaggedPointer(const MapVector<AllocaInst *, AllocaInfo> &Allocas,
464 const MapVector<AllocaInst *, AllocaInfo> &Allocas, in insertBaseTaggedPointer() argument
468 for (auto &I : Allocas) { in insertBaseTaggedPointer()
536 MapVector<AllocaInst *, AllocaInfo> Allocas; // need stable iteration order in runOnFunction() local
544 Allocas[AI].AI = AI; in runOnFunction()
545 Allocas[AI].OldAI = AI; in runOnFunction()
552 if (Allocas[AI].DbgVariableIntrinsics.empty() || in runOnFunction()
553 Allocas[AI].DbgVariableIntrinsics.back() != DVI) in runOnFunction()
554 Allocas[AI].DbgVariableIntrinsics.push_back(DVI); in runOnFunction()
567 Allocas[AI].LifetimeStart.push_back(II); in runOnFunction()
[all …]
/freebsd-12-stable/contrib/llvm-project/llvm/include/llvm/Transforms/Utils/
DCodeExtractor.h48 SmallVector<AllocaInst *, 16> Allocas; variable
65 ArrayRef<AllocaInst *> getAllocas() const { return Allocas; } in getAllocas()
167 const ValueSet &Allocas) const;
DPromoteMemToReg.h39 void PromoteMemToReg(ArrayRef<AllocaInst *> Allocas, DominatorTree &DT,
/freebsd-12-stable/contrib/llvm-project/llvm/lib/Transforms/Coroutines/
DCoroFrame.cpp324 SmallVector<AllocaInfo, 8> Allocas; member
330 for (const auto &A : Allocas) in getAllDefs()
401 static void dumpAllocas(const SmallVectorImpl<AllocaInfo> &Allocas) { in dumpAllocas() argument
403 for (const auto &A : Allocas) { in dumpAllocas()
568 for (const auto &A : Allocas) in updateLayoutIndex()
595 for (const auto &A : FrameData.Allocas) { in addFieldForAllocas()
626 AllocaSetType Allocas; in addFieldForAllocas() local
627 Allocas.reserve(FrameData.Allocas.size()); in addFieldForAllocas()
628 for (const auto &A : FrameData.Allocas) in addFieldForAllocas()
629 Allocas.push_back(A.Alloca); in addFieldForAllocas()
[all …]
/freebsd-12-stable/contrib/llvm-project/llvm/include/llvm/Analysis/
DStackLifetime.h105 ArrayRef<const AllocaInst *> Allocas; variable
136 StackLifetime(const Function &F, ArrayRef<const AllocaInst *> Allocas,
/freebsd-12-stable/contrib/llvm-project/llvm/lib/Target/AMDGPU/
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()
/freebsd-12-stable/contrib/llvm-project/llvm/lib/CodeGen/
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()
/freebsd-12-stable/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/
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()
DSelectionDAGBuilder.cpp6811 SmallVector<const Value *, 4> Allocas; in visitIntrinsicCall() local
6812 getUnderlyingObjects(ObjectPtr, Allocas); in visitIntrinsicCall()
6814 for (const Value *Alloca : Allocas) { in visitIntrinsicCall()
/freebsd-12-stable/contrib/llvm-project/llvm/lib/ExecutionEngine/Interpreter/
DInterpreter.h67 AllocaHolder Allocas; // Track memory allocated by alloca member
DExecution.cpp1043 ECStack.back().Allocas.add(Memory); in visitAllocaInst()
/freebsd-12-stable/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/
DHWAddressSanitizer.cpp267 SmallVectorImpl<AllocaInst *> &Allocas,
1235 SmallVectorImpl<AllocaInst *> &Allocas, in instrumentStack() argument
1243 for (unsigned N = 0; N < Allocas.size(); ++N) { in instrumentStack()
1244 auto *AI = Allocas[N]; in instrumentStack()
/freebsd-12-stable/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/
DIRTranslator.cpp1867 SmallVector<const Value *, 4> Allocas; in translateKnownIntrinsic() local
1868 getUnderlyingObjects(CI.getArgOperand(1), Allocas); in translateKnownIntrinsic()
1872 for (const Value *V : Allocas) { in translateKnownIntrinsic()