/minix/external/bsd/llvm/dist/llvm/lib/Transforms/Utils/ |
H A D | DemoteRegToStack.cpp | 24 AllocaInst *llvm::DemoteRegToStack(Instruction &I, bool VolatileLoads, in DemoteRegToStack() 32 AllocaInst *Slot; in DemoteRegToStack() 34 Slot = new AllocaInst(I.getType(), nullptr, in DemoteRegToStack() 38 Slot = new AllocaInst(I.getType(), nullptr, I.getName()+".reg2mem", in DemoteRegToStack() 110 AllocaInst *llvm::DemotePHIToStack(PHINode *P, Instruction *AllocaPoint) { in DemotePHIToStack() 117 AllocaInst *Slot; in DemotePHIToStack() 119 Slot = new AllocaInst(P->getType(), nullptr, in DemotePHIToStack() 123 Slot = new AllocaInst(P->getType(), nullptr, P->getName()+".reg2mem", in DemotePHIToStack()
|
H A D | PromoteMemoryToRegister.cpp | 60 bool llvm::isAllocaPromotable(const AllocaInst *AI) { in isAllocaPromotable() 128 void AnalyzeAlloca(AllocaInst *AI) { in AnalyzeAlloca() 234 std::vector<AllocaInst *> Allocas; 245 DenseMap<AllocaInst *, unsigned> AllocaLookup; 306 void DetermineInsertionPoint(AllocaInst *AI, unsigned AllocaNum, 308 void ComputeLiveInBlocks(AllocaInst *AI, AllocaInfo &Info, 319 static void removeLifetimeIntrinsicUsers(AllocaInst *AI) { in removeLifetimeIntrinsicUsers() 536 AllocaInst *AI = Allocas[AllocaNum]; in run() 774 AllocaInst *AI, AllocaInfo &Info, in ComputeLiveInBlocks() 1017 AllocaInst *Src = dyn_cast<AllocaInst>(LI->getPointerOperand()); in RenamePass() [all …]
|
H A D | Mem2Reg.cpp | 62 std::vector<AllocaInst*> Allocas; in INITIALIZE_PASS_DEPENDENCY() 78 if (AllocaInst *AI = dyn_cast<AllocaInst>(I)) // Is it an alloca? in INITIALIZE_PASS_DEPENDENCY()
|
/minix/external/bsd/llvm/dist/llvm/include/llvm/Transforms/Utils/ |
H A D | PromoteMemToReg.h | 22 class AllocaInst; variable 33 bool isAllocaPromotable(const AllocaInst *AI); 44 void PromoteMemToReg(ArrayRef<AllocaInst *> Allocas, DominatorTree &DT,
|
H A D | ASanStackFrameLayout.h | 20 class AllocaInst; variable 34 AllocaInst *AI; // The actual AllocaInst.
|
H A D | Local.h | 36 class AllocaInst; variable 163 AllocaInst *DemoteRegToStack(Instruction &X, 170 AllocaInst *DemotePHIToStack(PHINode *P, Instruction *AllocaPoint = nullptr); 280 bool replaceDbgDeclareForAlloca(AllocaInst *AI, Value *NewAllocaAddress,
|
H A D | Cloning.h | 45 class AllocaInst; variable 177 SmallVector<AllocaInst*, 4> StaticAllocas;
|
/minix/external/bsd/llvm/dist/llvm/include/llvm/CodeGen/ |
H A D | StackProtector.h | 48 typedef ValueMap<const AllocaInst *, SSPLayoutKind> SSPLayoutMap; 122 SSPLayoutKind getSSPLayout(const AllocaInst *AI) const; 123 void adjustForColoring(const AllocaInst *From, const AllocaInst *To);
|
H A D | MachineFrameInfo.h | 33 class AllocaInst; variable 106 const AllocaInst *Alloca; 119 bool isSS, const AllocaInst *Val, bool A) in StackObject() 418 const AllocaInst* getObjectAllocation(int ObjectIdx) const { in getObjectAllocation() 565 const AllocaInst *Alloca = nullptr); 585 int CreateVariableSizedObject(unsigned Alignment, const AllocaInst *Alloca);
|
/minix/external/bsd/llvm/dist/llvm/lib/Transforms/Scalar/ |
H A D | ScalarReplAggregates.cpp | 103 AllocaInst *AI; 316 AllocaInst *TryConvert(AllocaInst *AI); 338 AllocaInst *ConvertToScalarInfo::TryConvert(AllocaInst *AI) { in TryConvert() 385 AllocaInst *NewAI = new AllocaInst(NewTy, nullptr, "", in TryConvert() 702 AllocaInst *OrigAI = cast<AllocaInst>(GetUnderlyingObject(Ptr, &DL, 0)); in ConvertUsesToScalar() 1059 AllocaInst *AI; 1418 std::vector<AllocaInst*> Allocas; in performPromotion() 1435 if (AllocaInst *AI = dyn_cast<AllocaInst>(I)) // Is it an alloca? in performPromotion() 1486 if (AllocaInst *A = dyn_cast<AllocaInst>(I)) in performScalarRepl() 1558 AllocaInst *NA = new AllocaInst(ST->getContainedType(i), nullptr, in DoScalarReplacement() [all …]
|
H A D | SROA.cpp | 561 AllocaInst &AI; 1080 AllocaInst &AI; 1208 SetVector<AllocaInst *, SmallVector<AllocaInst *, 16>> Worklist; 2414 AllocaInst &OldAI, AllocaInst &NewAI, in AllocaSliceRewriter() 3792 if (AllocaInst *OtherAI = dyn_cast<AllocaInst>(StoreBasePtr)) { in presplitLoadsAndStores() 3795 } else if (AllocaInst *OtherAI = dyn_cast<AllocaInst>( in presplitLoadsAndStores() 3903 if (AllocaInst *OtherAI = dyn_cast<AllocaInst>(LoadBasePtr)) { in presplitLoadsAndStores() 3907 } else if (AllocaInst *OtherAI = dyn_cast<AllocaInst>( in presplitLoadsAndStores() 3999 AllocaInst *NewAI; in rewritePartition() 4261 if (AllocaInst *AI = dyn_cast<AllocaInst>(I)) in deleteDeadInstructions() [all …]
|
H A D | Reg2Mem.cpp | 83 while (isa<AllocaInst>(I)) ++I; in INITIALIZE_PASS_DEPENDENCY() 97 if (!(isa<AllocaInst>(iib) && iib->getParent() == BBEntry) && in INITIALIZE_PASS_DEPENDENCY()
|
/minix/external/bsd/llvm/dist/llvm/lib/CodeGen/ |
H A D | GCStrategy.cpp | 50 AllocaInst **Roots, unsigned Count); 155 bool LowerIntrinsics::InsertRootInitializers(Function &F, AllocaInst **Roots, in InsertRootInitializers() 159 while (isa<AllocaInst>(IP)) ++IP; in InsertRootInitializers() 162 SmallPtrSet<AllocaInst*,16> InitedRoots; in InsertRootInitializers() 165 if (AllocaInst *AI = in InsertRootInitializers() 166 dyn_cast<AllocaInst>(SI->getOperand(1)->stripPointerCasts())) in InsertRootInitializers() 172 for (AllocaInst **I = Roots, **E = Roots + Count; I != E; ++I) in InsertRootInitializers() 213 if (isa<AllocaInst>(I) || isa<GetElementPtrInst>(I) || in CouldBecomeSafePoint() 261 SmallVector<AllocaInst*, 32> Roots; in PerformDefaultLowering() 291 Roots.push_back(cast<AllocaInst>( in PerformDefaultLowering()
|
H A D | StackProtector.cpp | 60 StackProtector::getSSPLayout(const AllocaInst *AI) const { in getSSPLayout() 64 void StackProtector::adjustForColoring(const AllocaInst *From, in adjustForColoring() 65 const AllocaInst *To) { in adjustForColoring() 217 if (const AllocaInst *AI = dyn_cast<AllocaInst>(&I)) { in RequiresStackProtector() 337 AllocaInst *&AI, Value *&StackGuardVar) { in CreatePrologue() 376 AllocaInst *AI = nullptr; // Place on stack that stores the stack guard. in InsertStackProtectors()
|
H A D | StackColoring.cpp | 259 const AllocaInst *Allocation = MFI->getObjectAllocation(Slot); in collectMarkers() 474 DenseMap<const AllocaInst*, const AllocaInst*> Allocas; in remapInstructions() 476 const AllocaInst *From = MFI->getObjectAllocation(SI.first); in remapInstructions() 477 const AllocaInst *To = MFI->getObjectAllocation(SI.second); in remapInstructions() 487 Instruction *Inst = const_cast<AllocaInst *>(To); in remapInstructions() 501 const_cast<AllocaInst *>(From)->replaceAllUsesWith(Inst); in remapInstructions() 523 const AllocaInst *AI = dyn_cast_or_null<AllocaInst>(MMO->getValue()); in remapInstructions()
|
H A D | ShadowStackGC.cpp | 54 std::vector<std::pair<CallInst*,AllocaInst*> > Roots; 329 SmallVector<std::pair<CallInst*, AllocaInst*>, 16> MetaRoots; in CollectRoots() 336 std::pair<CallInst*, AllocaInst*> Pair = std::make_pair( in CollectRoots() 337 CI, cast<AllocaInst>(CI->getArgOperand(0)->stripPointerCasts())); in CollectRoots() 397 while (isa<AllocaInst>(IP)) ++IP; in performCustomLowering() 412 AllocaInst *OriginalAlloca = Roots[I].second; in performCustomLowering()
|
H A D | SjLjEHPrepare.cpp | 60 AllocaInst *FuncCtx; 197 FuncCtx = new AllocaInst(FunctionContextTy, nullptr, Align, "fn_context", in setupFunctionContext() 245 while (isa<AllocaInst>(AfterAllocaInsPt) && in lowerIncomingArguments() 246 isa<ConstantInt>(cast<AllocaInst>(AfterAllocaInsPt)->getArraySize())) in lowerIncomingArguments() 287 if (AllocaInst *AI = dyn_cast<AllocaInst>(Inst)) in lowerAcrossUnwindEdges() 466 } else if (!isa<AllocaInst>(I)) { in setupEntryBlockAndCallSites()
|
/minix/external/bsd/llvm/dist/llvm/lib/Target/NVPTX/ |
H A D | NVPTXAllocaHoisting.cpp | 28 AllocaInst *allocaInst = dyn_cast<AllocaInst>(BI++); in runOnFunction()
|
H A D | NVPTXLowerStructArgs.cpp | 65 AllocaInst *AllocA = new AllocaInst(StructType, Arg->getName(), FirstInst); in handleParam()
|
/minix/external/bsd/llvm/dist/llvm/lib/Analysis/ |
H A D | Loads.cpp | 75 if (const AllocaInst *AI = dyn_cast<AllocaInst>(Base)) { in isSafeToLoadUnconditionally() 232 if ((isa<AllocaInst>(StrippedPtr) || isa<GlobalVariable>(StrippedPtr)) && in FindAvailableLoadedValue() 233 (isa<AllocaInst>(StorePtr) || isa<GlobalVariable>(StorePtr)) && in FindAvailableLoadedValue()
|
/minix/minix/llvm/passes/asr/ |
H A D | ASRPass.cpp | 189 AllocaInst *create_padding_lv(Module &M, Instruction *InsertBefore, int n_bytes){ in create_padding_lv() 192 AllocaInst* ptr_x = new AllocaInst(ArrayTy, "magic_asr_padding_lv", InsertBefore); in create_padding_lv() 232 AllocaInst* ptr_x = new AllocaInst(IntegerType::get(M.getContext(), 32), "x", bb); in create_padding_func() 390 if (AllocaInst *allocaInst = dyn_cast<AllocaInst>(inst)){ in runOnModule() 509 …new AllocaInst(IntegerType::get(M.getContext(), 8), ConstantInt::get(M.getContext(), APInt(64, (ra… in runOnModule() 538 …AllocaInst* allocaInstruction = new AllocaInst(IntegerType::get(M.getContext(), 8), AddOne, "", Ne… in runOnModule() 582 …new AllocaInst(IntegerType::get(M.getContext(), 8), ConstantInt::get(M.getContext(), APInt(64, (ra… in runOnModule()
|
/minix/external/bsd/llvm/dist/llvm/lib/Target/R600/ |
H A D | AMDGPUTargetTransformInfo.cpp | 115 const AllocaInst *Alloca = dyn_cast<AllocaInst>(GetUnderlyingObject(Ptr)); in getUnrollingPreferences()
|
/minix/external/bsd/llvm/dist/llvm/lib/Transforms/InstCombine/ |
H A D | InstCombineLoadStoreAlloca.cpp | 158 isOnlyCopiedFromConstantGlobal(AllocaInst *AI, in isOnlyCopiedFromConstantGlobal() 166 Instruction *InstCombiner::visitAllocaInst(AllocaInst &AI) { in visitAllocaInst() 184 AllocaInst *New = Builder->CreateAlloca(NewTy, nullptr, AI.getName()); in visitAllocaInst() 191 while (isa<AllocaInst>(*It) || isa<DbgInfoIntrinsic>(*It)) ++It; in visitAllocaInst() 237 AllocaInst *EntryAI = dyn_cast<AllocaInst>(FirstInst); in visitAllocaInst() 634 if (isa<AllocaInst>(Ptr)) in visitStoreInst() 637 if (isa<AllocaInst>(GEP->getOperand(0))) { in visitStoreInst()
|
/minix/external/bsd/llvm/dist/llvm/lib/CodeGen/SelectionDAG/ |
H A D | FunctionLoweringInfo.cpp | 101 if (const AllocaInst *AI = dyn_cast<AllocaInst>(I)) { in set() 171 if (!isa<AllocaInst>(I) || in set() 172 !StaticAllocaMap.count(cast<AllocaInst>(I))) in set() 193 if (const AllocaInst *AI = dyn_cast<AllocaInst>(Address)) { in set() 194 DenseMap<const AllocaInst *, int>::iterator SI = in set()
|
/minix/external/bsd/llvm/dist/llvm/lib/Transforms/Instrumentation/ |
H A D | AddressSanitizer.cpp | 481 AllocaInst *AI; 492 AllocaInst *AI; 597 void visitAllocaInst(AllocaInst &AI) { in visitAllocaInst() 1460 if (isa<AllocaInst>(Inst)) in runOnFunction() 1605 if (!isa<AllocaInst>(Inst)) in getFunctionEntryDebugLocation() 1624 AllocaInst *Alloca; in createAllocaForLayout() 1659 for (AllocaInst *AI : AllocaVec) { in poisonStack() 1738 AllocaInst *AI = Desc.AI; in poisonStack() 1855 if (AllocaInst *AI = dyn_cast<AllocaInst>(V)) in findAllocaForValue() 1866 AllocaInst *Res = nullptr; in findAllocaForValue() [all …]
|