/freebsd/contrib/llvm-project/llvm/lib/Transforms/Coroutines/ |
H A D | CoroFrame.cpp | 459 AllocaInst *Alloca; member 462 AllocaInfo(AllocaInst *Alloca, in AllocaInfo() 465 : Alloca(Alloca), Aliases(std::move(Aliases)), in AllocaInfo() 481 Defs.push_back(A.Alloca); in getAllDefs() 575 A.Alloca->dump(); in dumpAllocas() 755 Updater(A.Alloca); in updateLayoutIndex() 770 for (auto *Alloca : AllocaList) in addFieldForAllocas() local 771 FrameData.setFieldIndex(Alloca, Id); in addFieldForAllocas() 777 AllocaInst *Alloca = A.Alloca; in addFieldForAllocas() local 778 NonOverlapedAllocas.emplace_back(AllocaSetType(1, Alloca)); in addFieldForAllocas() [all …]
|
H A D | CoroSplit.cpp | 675 auto Alloca = Builder.CreateAlloca(ValueTy); in replaceSwiftErrorOps() local 676 Alloca->setSwiftError(true); in replaceSwiftErrorOps() 678 CachedSlot = Alloca; in replaceSwiftErrorOps() 679 return Alloca; in replaceSwiftErrorOps() 826 auto *Alloca = dyn_cast<AllocaInst>(&I); in replaceEntryBlock() local 827 if (!Alloca || I.use_empty()) in replaceEntryBlock() 830 !isa<ConstantInt>(Alloca->getArraySize())) in replaceEntryBlock()
|
/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/ |
H A D | MachineFrameInfo.h | 164 const AllocaInst *Alloca; member 185 bool IsImmutable, bool IsSpillSlot, const AllocaInst *Alloca, 189 Alloca(Alloca), isAliased(IsAliased) {} in SPOffset() 515 return Objects[ObjectIdx+NumFixedObjects].Alloca; in getObjectAllocation() 523 Objects[ObjectIdx + NumFixedObjects].Alloca = nullptr; in clearObjectAllocation() 788 const AllocaInst *Alloca = nullptr, uint8_t ID = 0); 803 int CreateVariableSizedObject(Align Alignment, const AllocaInst *Alloca);
|
H A D | WinEHFuncInfo.h | 65 const AllocaInst *Alloca; member
|
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/ |
H A D | AMDGPUPromoteAlloca.cpp | 103 bool binaryOpIsDerivedFromSameAlloca(Value *Alloca, Value *Val, 252 static void collectAllocaUses(AllocaInst &Alloca, in collectAllocaUses() argument 254 SmallVector<Instruction *, 4> WorkList({&Alloca}); in collectAllocaUses() 270 for (auto *Alloca : Allocas) { in sortAllocasToPromote() local 271 LLVM_DEBUG(dbgs() << "Scoring: " << *Alloca << "\n"); in sortAllocasToPromote() 272 unsigned &Score = Scores[Alloca]; in sortAllocasToPromote() 275 collectAllocaUses(*Alloca, Uses); in sortAllocasToPromote() 400 static Value *GEPToVectorIndex(GetElementPtrInst *GEP, AllocaInst *Alloca, in GEPToVectorIndex() argument 407 if (GEP->getPointerOperand()->stripPointerCasts() != Alloca || in GEPToVectorIndex() 727 bool AMDGPUPromoteAllocaImpl::tryPromoteAllocaToVector(AllocaInst &Alloca) { in tryPromoteAllocaToVector() argument [all …]
|
H A D | AMDGPUTargetTransformInfo.cpp | 197 const AllocaInst *Alloca = in getUnrollingPreferences() local 199 if (!Alloca || !Alloca->isStaticAlloca()) in getUnrollingPreferences() 201 Type *Ty = Alloca->getAllocatedType(); in getUnrollingPreferences()
|
/freebsd/contrib/llvm-project/llvm/lib/FuzzMutate/ |
H A D | RandomIRBuilder.cpp | 71 AllocaInst *Alloca = new AllocaInst(Ty, DL.getAllocaAddrSpace(), "A", in createStackMemory() local 74 new StoreInst(Init, Alloca, Alloca->getNextNode()); in createStackMemory() 75 return Alloca; in createStackMemory() 232 AllocaInst *Alloca = createStackMemory(F, Ty, newSrc); in newSource() local 234 newSrc = new LoadInst(Ty, Alloca, /*ArrLen,*/ "L", BB.getTerminator()); in newSource() 236 newSrc = new LoadInst(Ty, Alloca, /*ArrLen,*/ "L", &BB); in newSource()
|
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/ |
H A D | MachineFrameInfo.cpp | 53 const AllocaInst *Alloca, in CreateStackObject() argument 57 Objects.push_back(StackObject(Size, Alignment, 0, false, IsSpillSlot, Alloca, in CreateStackObject() 75 const AllocaInst *Alloca) { in CreateVariableSizedObject() argument 78 Objects.push_back(StackObject(0, Alignment, 0, false, false, Alloca, true)); in CreateVariableSizedObject()
|
H A D | SwiftErrorValueTracking.cpp | 109 if (const AllocaInst *Alloca = dyn_cast<AllocaInst>(&Inst)) in setFunction() local 110 if (Alloca->isSwiftError()) in setFunction() 111 SwiftErrorVals.push_back(Alloca); in setFunction()
|
H A D | MachineOperand.cpp | 560 if (const AllocaInst *Alloca = MFI->getObjectAllocation(FrameIndex)) in printFrameIndex() local 561 if (Alloca->hasName()) in printFrameIndex() 562 Name = Alloca->getName(); in printFrameIndex()
|
H A D | MIRPrinter.cpp | 447 if (const auto *Alloca = MFI.getObjectAllocation(I)) in convertStackObjects() local 449 Alloca->hasName() ? Alloca->getName() : ""); in convertStackObjects()
|
/freebsd/contrib/llvm-project/clang/lib/CodeGen/ |
H A D | CGGPUBuiltin.cpp | 116 llvm::Value *Alloca = CGF->CreateTempAlloca(AllocaTy); in packArgsIntoNVPTXFormatBuffer() local 119 llvm::Value *P = Builder.CreateStructGEP(AllocaTy, Alloca, I - 1); in packArgsIntoNVPTXFormatBuffer() 124 Builder.CreatePointerCast(Alloca, llvm::PointerType::getUnqual(Ctx)); in packArgsIntoNVPTXFormatBuffer()
|
H A D | CGCleanup.h | 280 void Add(llvm::AllocaInst *Alloca) { AuxAllocas.push_back(Alloca); } 368 for (auto *Alloca : Allocas) 369 getAuxillaryAllocas().Add(Alloca);
|
H A D | CGExpr.cpp | 78 auto Alloca = CreateTempAlloca(Ty, Name, ArraySize); in CreateTempAllocaWithoutCast() local 79 Alloca->setAlignment(Align.getAsAlign()); in CreateTempAllocaWithoutCast() 80 return RawAddress(Alloca, Ty, Align, KnownNonNull); in CreateTempAllocaWithoutCast() 89 auto Alloca = CreateTempAllocaWithoutCast(Ty, Align, Name, ArraySize); in CreateTempAlloca() local 91 *AllocaAddr = Alloca; in CreateTempAlloca() 92 llvm::Value *V = Alloca.getPointer(); in CreateTempAlloca() 119 llvm::AllocaInst *Alloca; in CreateTempAlloca() local 121 Alloca = Builder.CreateAlloca(Ty, ArraySize, Name); in CreateTempAlloca() 123 Alloca = new llvm::AllocaInst(Ty, CGM.getDataLayout().getAllocaAddrSpace(), in CreateTempAlloca() 126 Allocas->Add(Alloca); in CreateTempAlloca() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/ |
H A D | RewriteStatepointsForGC.cpp | 1975 Value *Alloca = AllocaMap[OriginalValue]; in insertRelocationStores() local 1980 new StoreInst(Relocate, Alloca, std::next(Relocate->getIterator())); in insertRelocationStores() 2000 Value *Alloca = AllocaMap[OriginalValue]; in insertRematerializationStores() local 2002 new StoreInst(RematerializedValue, Alloca, in insertRematerializationStores() 2035 AllocaInst *Alloca = in relocationViaAlloca() local 2038 AllocaMap[LiveValue] = Alloca; in relocationViaAlloca() 2039 PromotableAllocas.push_back(Alloca); in relocationViaAlloca() 2095 AllocaInst *Alloca = Pair.second; in relocationViaAlloca() local 2101 ToClobber.push_back(Alloca); in relocationViaAlloca() 2131 AllocaInst *Alloca = Pair.second; in relocationViaAlloca() local [all …]
|
H A D | MemCpyOptimizer.cpp | 1408 if (auto *Alloca = dyn_cast<AllocaInst>(getUnderlyingObject(V))) { in hasUndefContents() local 1409 if (getUnderlyingObject(II->getArgOperand(1)) == Alloca) { in hasUndefContents() 1410 const DataLayout &DL = Alloca->getDataLayout(); in hasUndefContents() 1412 Alloca->getAllocationSize(DL)) in hasUndefContents()
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/IPO/ |
H A D | FunctionSpecialization.cpp | 476 Constant *FunctionSpecializer::getPromotableAlloca(AllocaInst *Alloca, in getPromotableAlloca() argument 479 for (auto *User : Alloca->users()) { in getPromotableAlloca() 517 auto *Alloca = dyn_cast<AllocaInst>(Val); in getConstantStackValue() local 518 if (!Alloca || !Alloca->getAllocatedType()->isIntegerTy()) in getConstantStackValue() 520 return getPromotableAlloca(Alloca, Call); in getConstantStackValue()
|
H A D | GlobalOpt.cpp | 1479 AllocaInst *Alloca = new AllocaInst(ElemTy, DL.getAllocaAddrSpace(), in processInternalGlobal() local 1482 new StoreInst(GV->getInitializer(), Alloca, FirstI); in processInternalGlobal() 1484 GV->replaceAllUsesWith(Alloca); in processInternalGlobal() 1905 auto *Alloca = in RemovePreallocated() local 1907 ArgAllocas[AllocArgIndex] = Alloca; in RemovePreallocated() 1908 AllocaReplacement = Alloca; in RemovePreallocated()
|
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/MIRParser/ |
H A D | MIRParser.cpp | 846 const AllocaInst *Alloca = nullptr; in initializeFrameInfo() local 849 Alloca = dyn_cast_or_null<AllocaInst>( in initializeFrameInfo() 851 if (!Alloca) in initializeFrameInfo() 862 MFI.CreateVariableSizedObject(Object.Alignment.valueOrOne(), Alloca); in initializeFrameInfo() 866 Object.Type == yaml::MachineStackObject::SpillSlot, Alloca, in initializeFrameInfo()
|
/freebsd/contrib/llvm-project/llvm/include/llvm/Transforms/IPO/ |
H A D | FunctionSpecialization.h | 292 Constant *getPromotableAlloca(AllocaInst *Alloca, CallInst *Call);
|
/freebsd/contrib/llvm-project/llvm/lib/IR/ |
H A D | DebugInfo.cpp | 1964 if (const auto *Alloca = dyn_cast<AllocaInst>(Base)) in getAssignmentInfoImpl() local 1965 return AssignmentInfo(DL, Alloca, OffsetInBytes * 8, SizeInBits); in getAssignmentInfoImpl() 2166 if (AllocaInst *Alloca = in runOnFunction() local 2169 if (!Alloca->isStaticAlloca()) in runOnFunction() 2172 if (auto Sz = Alloca->getAllocationSize(*DL); Sz && Sz->isScalable()) in runOnFunction() 2174 DeclareList[Alloca].insert(Declare); in runOnFunction() 2175 Vars[Alloca].insert(VarRecord(Declare)); in runOnFunction()
|
H A D | Value.cpp | 1100 auto *Alloca = dyn_cast<AllocaInst>(this); in isSwiftError() local 1101 if (!Alloca) in isSwiftError() 1103 return Alloca->isSwiftError(); in isSwiftError()
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/ |
H A D | AddressSanitizer.cpp | 3285 AllocaInst *Alloca; in createAllocaForLayout() local 3287 Alloca = IRB.CreateAlloca(IRB.getInt8Ty(), in createAllocaForLayout() 3291 Alloca = IRB.CreateAlloca(ArrayType::get(IRB.getInt8Ty(), L.FrameSize), in createAllocaForLayout() 3293 assert(Alloca->isStaticAlloca()); in createAllocaForLayout() 3297 Alloca->setAlignment(Align(FrameAlignment)); in createAllocaForLayout() 3298 return IRB.CreatePointerCast(Alloca, IntptrTy); in createAllocaForLayout() 3361 auto *Alloca = dyn_cast<AllocaInst>(Store->getPointerOperand()); in findStoresToUninstrumentedArgAllocas() local 3362 if (!Alloca || ASan.isInterestingAlloca(*Alloca)) in findStoresToUninstrumentedArgAllocas()
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Vectorize/ |
H A D | VPlanAnalysis.cpp | 196 case Instruction::Alloca: in inferScalarTypeForRecipe()
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/ObjCARC/ |
H A D | ObjCARCOpts.cpp | 2208 if (AllocaInst *Alloca = dyn_cast<AllocaInst>(Arg)) { in OptimizeWeakCalls() local 2209 for (User *U : Alloca->users()) { in OptimizeWeakCalls() 2221 for (User *U : llvm::make_early_inc_range(Alloca->users())) { in OptimizeWeakCalls() 2237 Alloca->eraseFromParent(); in OptimizeWeakCalls()
|