| /NextBSD/contrib/llvm/lib/Transforms/Instrumentation/ |
| HD | SafeStack.cpp | 66 bool IsSafeStackAlloca(const AllocaInst *AI) { in IsSafeStackAlloca() 185 void findInsts(Function &F, SmallVectorImpl<AllocaInst *> &StaticAllocas, 186 SmallVectorImpl<AllocaInst *> &DynamicAllocas, 197 ArrayRef<AllocaInst *> StaticAllocas, 205 AllocaInst * 214 AllocaInst *DynamicTop, 215 ArrayRef<AllocaInst *> DynamicAllocas); 274 SmallVectorImpl<AllocaInst *> &StaticAllocas, in findInsts() 275 SmallVectorImpl<AllocaInst *> &DynamicAllocas, in findInsts() 279 if (auto AI = dyn_cast<AllocaInst>(&I)) { in findInsts() [all …]
|
| HD | AddressSanitizer.cpp | 403 uint64_t getAllocaSizeInBytes(AllocaInst *AI) const { in getAllocaSizeInBytes() 410 bool isInterestingAlloca(AllocaInst &AI); 413 bool isDynamicAlloca(AllocaInst &AI) const { in isDynamicAlloca() 473 DenseMap<AllocaInst *, bool> ProcessedAllocas; 527 SmallVector<AllocaInst *, 16> AllocaVec; 539 AllocaInst *AI; 545 SmallVector<AllocaInst *, 1> DynamicAllocaVec; 547 AllocaInst *DynamicAllocaLayout = nullptr; 550 typedef DenseMap<Value *, AllocaInst *> AllocaForValueMapTy; 624 void handleDynamicAllocaCall(AllocaInst *AI); [all …]
|
| HD | DataFlowSanitizer.cpp | 284 AllocaInst *LabelReturnAlloca; 286 DenseMap<AllocaInst *, AllocaInst *> AllocaShadowMap; 343 void visitAllocaInst(AllocaInst &I); 846 while (isa<PHINode>(Pos) || isa<AllocaInst>(Pos)) in runOnModule() 1041 if (AllocaInst *AI = dyn_cast<AllocaInst>(Addr)) { in loadShadow() 1042 llvm::DenseMap<AllocaInst *, AllocaInst *>::iterator i = in loadShadow() 1184 if (AllocaInst *AI = dyn_cast<AllocaInst>(Addr)) { in storeShadow() 1185 llvm::DenseMap<AllocaInst *, AllocaInst *>::iterator i = in storeShadow() 1290 void DFSanVisitor::visitAllocaInst(AllocaInst &I) { in visitAllocaInst() 1478 auto *LabelVAAlloca = new AllocaInst(LabelVATy, "labelva", in visitCallSite() [all …]
|
| /NextBSD/contrib/llvm/lib/Transforms/Utils/ |
| HD | 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() 108 AllocaInst *llvm::DemotePHIToStack(PHINode *P, Instruction *AllocaPoint) { in DemotePHIToStack() 115 AllocaInst *Slot; in DemotePHIToStack() 117 Slot = new AllocaInst(P->getType(), nullptr, in DemotePHIToStack() 121 Slot = new AllocaInst(P->getType(), nullptr, P->getName()+".reg2mem", in DemotePHIToStack()
|
| HD | PromoteMemoryToRegister.cpp | 51 bool llvm::isAllocaPromotable(const AllocaInst *AI) { in isAllocaPromotable() 119 void AnalyzeAlloca(AllocaInst *AI) { in AnalyzeAlloca() 189 return (isa<LoadInst>(I) && isa<AllocaInst>(I->getOperand(0))) || in isInterestingInstruction() 190 (isa<StoreInst>(I) && isa<AllocaInst>(I->getOperand(1))); in isInterestingInstruction() 225 std::vector<AllocaInst *> Allocas; 236 DenseMap<AllocaInst *, unsigned> AllocaLookup; 272 PromoteMem2Reg(ArrayRef<AllocaInst *> Allocas, DominatorTree &DT, in PromoteMem2Reg() 294 void ComputeLiveInBlocks(AllocaInst *AI, AllocaInfo &Info, 305 static void removeLifetimeIntrinsicUsers(AllocaInst *AI) { in removeLifetimeIntrinsicUsers() 337 static bool rewriteSingleStoreAlloca(AllocaInst *AI, AllocaInfo &Info, in rewriteSingleStoreAlloca() [all …]
|
| HD | 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()
|
| /NextBSD/contrib/llvm/lib/Transforms/Scalar/ |
| HD | ScalarReplAggregates.cpp | 102 AllocaInst *AI; 127 explicit AllocaInfo(AllocaInst *ai) in AllocaInfo() 152 bool isSafeAllocaToScalarRepl(AllocaInst *AI); 166 void DoScalarReplacement(AllocaInst *AI, 167 std::vector<AllocaInst*> &WorkList); 170 void RewriteForScalarRepl(Instruction *I, AllocaInst *AI, uint64_t Offset, 171 SmallVectorImpl<AllocaInst *> &NewElts); 172 void RewriteBitCast(BitCastInst *BC, AllocaInst *AI, uint64_t Offset, 173 SmallVectorImpl<AllocaInst *> &NewElts); 174 void RewriteGEP(GetElementPtrInst *GEPI, AllocaInst *AI, uint64_t Offset, [all …]
|
| HD | SROA.cpp | 219 AllocaSlices(const DataLayout &DL, AllocaInst &AI); 561 AllocaInst &AI; 640 SliceBuilder(const DataLayout &DL, AllocaInst &AI, AllocaSlices &AS) in SliceBuilder() 999 AllocaSlices::AllocaSlices(const DataLayout &DL, AllocaInst &AI) in AllocaSlices() 1084 AllocaInst &AI; 1093 AllocaInst &AI, DIBuilder &DIB) in AllocaPromoter() 1211 SetVector<AllocaInst *, SmallVector<AllocaInst *, 16>> Worklist; 1226 SetVector<AllocaInst *, SmallVector<AllocaInst *, 16>> PostPromotionWorklist; 1229 std::vector<AllocaInst *> PromotableAllocas; 1262 bool presplitLoadsAndStores(AllocaInst &AI, AllocaSlices &AS); [all …]
|
| HD | TailRecursionElimination.cpp | 147 if (AllocaInst *AI = dyn_cast<AllocaInst>(&I)) { in CanTRE() 264 if (AllocaInst *AI = dyn_cast<AllocaInst>(&I)) in markTails() 699 if (AllocaInst *AI = dyn_cast<AllocaInst>(OEBI++)) in EliminateRecursiveTailCall()
|
| /NextBSD/contrib/llvm/lib/CodeGen/ |
| HD | GCRootLowering.cpp | 138 if (isa<AllocaInst>(I) || isa<GetElementPtrInst>(I) || isa<StoreInst>(I) || in CouldBecomeSafePoint() 152 static bool InsertRootInitializers(Function &F, AllocaInst **Roots, in InsertRootInitializers() 156 while (isa<AllocaInst>(IP)) in InsertRootInitializers() 160 SmallPtrSet<AllocaInst *, 16> InitedRoots; in InsertRootInitializers() 163 if (AllocaInst *AI = in InsertRootInitializers() 164 dyn_cast<AllocaInst>(SI->getOperand(1)->stripPointerCasts())) in InsertRootInitializers() 170 for (AllocaInst **I = Roots, **E = Roots + Count; I != E; ++I) in InsertRootInitializers() 206 SmallVector<AllocaInst *, 32> Roots; in PerformDefaultLowering() 237 cast<AllocaInst>(CI->getArgOperand(0)->stripPointerCasts())); in PerformDefaultLowering()
|
| HD | 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() 213 if (const AllocaInst *AI = dyn_cast<AllocaInst>(&I)) { in RequiresStackProtector() 333 AllocaInst *&AI, Value *&StackGuardVar) { in CreatePrologue() 372 AllocaInst *AI = nullptr; // Place on stack that stores the stack guard. in InsertStackProtectors()
|
| HD | StackColoring.cpp | 258 const AllocaInst *Allocation = MFI->getObjectAllocation(Slot); in collectMarkers() 473 DenseMap<const AllocaInst*, const AllocaInst*> Allocas; in remapInstructions() 475 const AllocaInst *From = MFI->getObjectAllocation(SI.first); in remapInstructions() 476 const AllocaInst *To = MFI->getObjectAllocation(SI.second); in remapInstructions() 486 Instruction *Inst = const_cast<AllocaInst *>(To); in remapInstructions() 500 const_cast<AllocaInst *>(From)->replaceAllUsesWith(Inst); in remapInstructions() 522 const AllocaInst *AI = dyn_cast_or_null<AllocaInst>(MMO->getValue()); in remapInstructions()
|
| HD | SjLjEHPrepare.cpp | 61 AllocaInst *FuncCtx; 200 FuncCtx = new AllocaInst(FunctionContextTy, nullptr, Align, "fn_context", in setupFunctionContext() 250 while (isa<AllocaInst>(AfterAllocaInsPt) && in lowerIncomingArguments() 251 isa<ConstantInt>(cast<AllocaInst>(AfterAllocaInsPt)->getArraySize())) in lowerIncomingArguments() 292 if (AllocaInst *AI = dyn_cast<AllocaInst>(Inst)) in lowerAcrossUnwindEdges() 474 } else if (!isa<AllocaInst>(I)) { in setupEntryBlockAndCallSites()
|
| HD | ShadowStackGCLowering.cpp | 41 std::vector<std::pair<CallInst *, AllocaInst *>> Roots; 328 SmallVector<std::pair<CallInst *, AllocaInst *>, 16> MetaRoots; in CollectRoots() 335 std::pair<CallInst *, AllocaInst *> Pair = std::make_pair( in CollectRoots() 337 cast<AllocaInst>(CI->getArgOperand(0)->stripPointerCasts())); in CollectRoots() 404 while (isa<AllocaInst>(IP)) in runOnFunction() 421 AllocaInst *OriginalAlloca = Roots[I].second; in runOnFunction()
|
| /NextBSD/contrib/llvm/include/llvm/CodeGen/ |
| HD | 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);
|
| HD | MachineFrameInfo.h | 33 class AllocaInst; variable 106 const AllocaInst *Alloca; 119 bool isSS, const AllocaInst *Val, bool A) in StackObject() 411 const AllocaInst* getObjectAllocation(int ObjectIdx) const { in getObjectAllocation() 555 const AllocaInst *Alloca = nullptr); 570 int CreateVariableSizedObject(unsigned Alignment, const AllocaInst *Alloca);
|
| /NextBSD/contrib/llvm/include/llvm/Transforms/Utils/ |
| HD | PromoteMemToReg.h | 22 class AllocaInst; variable 33 bool isAllocaPromotable(const AllocaInst *AI); 44 void PromoteMemToReg(ArrayRef<AllocaInst *> Allocas, DominatorTree &DT,
|
| HD | Local.h | 36 class AllocaInst; variable 160 AllocaInst *DemoteRegToStack(Instruction &X, 167 AllocaInst *DemotePHIToStack(PHINode *P, Instruction *AllocaPoint = nullptr); 277 bool replaceDbgDeclareForAlloca(AllocaInst *AI, Value *NewAllocaAddress,
|
| HD | ASanStackFrameLayout.h | 20 class AllocaInst; variable 34 AllocaInst *AI; // The actual AllocaInst.
|
| /NextBSD/contrib/llvm/lib/Analysis/ |
| HD | Loads.cpp | 83 if (const AllocaInst *AI = dyn_cast<AllocaInst>(Base)) { in isSafeToLoadUnconditionally() 242 if ((isa<AllocaInst>(StrippedPtr) || isa<GlobalVariable>(StrippedPtr)) && in FindAvailableLoadedValue() 243 (isa<AllocaInst>(StorePtr) || isa<GlobalVariable>(StorePtr)) && in FindAvailableLoadedValue()
|
| /NextBSD/contrib/llvm/lib/Target/AMDGPU/ |
| HD | AMDGPUTargetTransformInfo.cpp | 47 const AllocaInst *Alloca = in getUnrollingPreferences() 48 dyn_cast<AllocaInst>(GetUnderlyingObject(Ptr, DL)); in getUnrollingPreferences()
|
| /NextBSD/contrib/llvm/lib/Target/NVPTX/ |
| HD | NVPTXAllocaHoisting.cpp | 50 AllocaInst *allocaInst = dyn_cast<AllocaInst>(BI++); in runOnFunction()
|
| HD | NVPTXLowerKernelArgs.cpp | 117 AllocaInst *AllocA = new AllocaInst(StructType, Arg->getName(), FirstInst); in handleByValParam()
|
| /NextBSD/contrib/llvm/lib/CodeGen/SelectionDAG/ |
| HD | FunctionLoweringInfo.cpp | 105 if (const AllocaInst *AI = dyn_cast<AllocaInst>(I)) { in set() 176 if (!isa<AllocaInst>(I) || in set() 177 !StaticAllocaMap.count(cast<AllocaInst>(I))) in set() 194 if (const AllocaInst *AI = dyn_cast<AllocaInst>(Address)) { in set() 195 DenseMap<const AllocaInst *, int>::iterator SI = in set()
|
| /NextBSD/contrib/llvm/lib/Transforms/InstCombine/ |
| HD | InstCombineLoadStoreAlloca.cpp | 159 isOnlyCopiedFromConstantGlobal(AllocaInst *AI, in isOnlyCopiedFromConstantGlobal() 167 static Instruction *simplifyAllocaArraySize(InstCombiner &IC, AllocaInst &AI) { in simplifyAllocaArraySize() 183 AllocaInst *New = IC.Builder->CreateAlloca(NewTy, nullptr, AI.getName()); in simplifyAllocaArraySize() 190 while (isa<AllocaInst>(*It) || isa<DbgInfoIntrinsic>(*It)) in simplifyAllocaArraySize() 223 Instruction *InstCombiner::visitAllocaInst(AllocaInst &AI) { in visitAllocaInst() 251 AllocaInst *EntryAI = dyn_cast<AllocaInst>(FirstInst); in visitAllocaInst() 578 if (AllocaInst *AI = dyn_cast<AllocaInst>(P)) { in isObjectSizeLessThanOrEq() 981 if (isa<AllocaInst>(Ptr)) in visitStoreInst() 984 if (isa<AllocaInst>(GEP->getOperand(0))) { in visitStoreInst()
|