| /freebsd/contrib/llvm-project/llvm/lib/Transforms/Coroutines/ |
| H A D | CoroFrame.cpp | 67 Defs.push_back(A.Alloca); in getAllDefs() 152 A.Alloca->dump(); in dumpAllocas() 332 Updater(A.Alloca); in updateLayoutIndex() 348 for (auto *Alloca : AllocaList) in addFieldForAllocas() local 349 FrameData.setFieldIndex(Alloca, Id); in addFieldForAllocas() 355 AllocaInst *Alloca = A.Alloca; in addFieldForAllocas() local 356 NonOverlapedAllocas.emplace_back(AllocaSetType(1, Alloca)); in addFieldForAllocas() 388 Allocas.push_back(A.Alloca); in addFieldForAllocas() 399 std::optional<TypeSize> RetSize = A.Alloca->getAllocationSize(DL); in addFieldForAllocas() 412 AllocaInst *Alloca = A.Alloca; in addFieldForAllocas() local [all …]
|
| H A D | CoroSplit.cpp | 585 auto Alloca = Builder.CreateAlloca(ValueTy); in replaceSwiftErrorOps() local 586 Alloca->setSwiftError(true); in replaceSwiftErrorOps() 588 CachedSlot = Alloca; in replaceSwiftErrorOps() 589 return Alloca; in replaceSwiftErrorOps() 734 auto *Alloca = dyn_cast<AllocaInst>(&I); in replaceEntryBlock() local 735 if (!Alloca || I.use_empty()) in replaceEntryBlock() 738 !isa<ConstantInt>(Alloca->getArraySize())) in replaceEntryBlock()
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/Transforms/Coroutines/ |
| H A D | SpillUtils.h | 23 AllocaInst *Alloca; member 26 AllocaInfo(AllocaInst *Alloca, in AllocaInfo() 29 : Alloca(Alloca), Aliases(std::move(Aliases)), in AllocaInfo()
|
| /freebsd/contrib/llvm-project/llvm/lib/Analysis/ |
| H A D | KernelInfo.cpp | 104 const AllocaInst &Alloca, in remarkAlloca() argument 110 auto DVRs = findDVRDeclares(&const_cast<AllocaInst &>(Alloca)); in remarkAlloca() 118 Alloca.getParent()); in remarkAlloca() 126 Alloca.printAsOperand(OS, /*PrintType=*/false, Caller.getParent()); in remarkAlloca() 183 if (const AllocaInst *Alloca = dyn_cast<AllocaInst>(&I)) { in updateForBB() local 186 if (std::optional<TypeSize> Size = Alloca->getAllocationSize(DL)) { in updateForBB() 194 remarkAlloca(ORE, F, *Alloca, StaticSize); in updateForBB()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/ |
| H A D | AMDGPUPromoteAlloca.cpp | 118 bool binaryOpIsDerivedFromSameAlloca(Value *Alloca, Value *Val, 239 static void collectAllocaUses(AllocaInst &Alloca, in collectAllocaUses() argument 241 SmallVector<Instruction *, 4> WorkList({&Alloca}); in collectAllocaUses() 257 for (auto *Alloca : Allocas) { in sortAllocasToPromote() local 258 LLVM_DEBUG(dbgs() << "Scoring: " << *Alloca << "\n"); in sortAllocasToPromote() 259 unsigned &Score = Scores[Alloca]; in sortAllocasToPromote() 262 collectAllocaUses(*Alloca, Uses); in sortAllocasToPromote() 400 static Value *GEPToVectorIndex(GetElementPtrInst *GEP, AllocaInst *Alloca, in GEPToVectorIndex() argument 435 assert(CurPtr == Alloca && "GEP not based on alloca"); in GEPToVectorIndex() 790 bool AMDGPUPromoteAllocaImpl::tryPromoteAllocaToVector(AllocaInst &Alloca) { in tryPromoteAllocaToVector() argument [all …]
|
| H A D | AMDGPUTargetTransformInfo.cpp | 204 const AllocaInst *Alloca = in getUnrollingPreferences() local 206 if (!Alloca || !Alloca->isStaticAlloca()) in getUnrollingPreferences() 208 Type *Ty = Alloca->getAllocatedType(); in getUnrollingPreferences()
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/ |
| H A D | MachineFrameInfo.h | 166 const AllocaInst *Alloca; member 187 bool IsImmutable, bool IsSpillSlot, const AllocaInst *Alloca, 191 Alloca(Alloca), isAliased(IsAliased) {} in SPOffset() 517 return Objects[ObjectIdx+NumFixedObjects].Alloca; in getObjectAllocation() 525 Objects[ObjectIdx + NumFixedObjects].Alloca = nullptr; in clearObjectAllocation() 791 const AllocaInst *Alloca = nullptr, 808 const AllocaInst *Alloca);
|
| H A D | WinEHFuncInfo.h | 65 const AllocaInst *Alloca; member
|
| /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()
|
| /freebsd/contrib/llvm-project/llvm/lib/FuzzMutate/ |
| H A D | RandomIRBuilder.cpp | 70 AllocaInst *Alloca = new AllocaInst(Ty, DL.getAllocaAddrSpace(), "A", in createStackMemory() local 73 new StoreInst(Init, Alloca, std::next(Alloca->getIterator())); in createStackMemory() 74 return Alloca; in createStackMemory() 282 AllocaInst *Alloca = createStackMemory(F, Ty, newSrc); in newSource() local 284 newSrc = new LoadInst(Ty, Alloca, /*ArrLen,*/ "L", in newSource() 287 newSrc = new LoadInst(Ty, Alloca, /*ArrLen,*/ "L", &BB); in newSource()
|
| /freebsd/contrib/llvm-project/clang/lib/CodeGen/ |
| H A D | CGGPUBuiltin.cpp | 93 llvm::Value *Alloca = CGF->CreateTempAlloca(AllocaTy); in packArgsIntoNVPTXFormatBuffer() local 96 llvm::Value *P = Builder.CreateStructGEP(AllocaTy, Alloca, I - 1); in packArgsIntoNVPTXFormatBuffer() 101 Builder.CreatePointerCast(Alloca, llvm::PointerType::getUnqual(Ctx)); in packArgsIntoNVPTXFormatBuffer()
|
| H A D | CGCleanup.h | 284 void Add(llvm::AllocaInst *Alloca) { AuxAllocas.push_back(Alloca); } 373 for (auto *Alloca : Allocas) 374 getAuxillaryAllocas().Add(Alloca);
|
| H A D | CGExpr.cpp | 94 auto Alloca = CreateTempAlloca(Ty, Name, ArraySize); in CreateTempAllocaWithoutCast() local 95 Alloca->setAlignment(Align.getAsAlign()); in CreateTempAllocaWithoutCast() 96 return RawAddress(Alloca, Ty, Align, KnownNonNull); in CreateTempAllocaWithoutCast() 103 RawAddress Alloca = CreateTempAllocaWithoutCast(Ty, Align, Name, ArraySize); in CreateTempAlloca() local 105 *AllocaAddr = Alloca; in CreateTempAlloca() 106 llvm::Value *V = Alloca.getPointer(); in CreateTempAlloca() 113 if (DestAddrSpace != Alloca.getAddressSpace()) { in CreateTempAlloca() 134 llvm::AllocaInst *Alloca; in CreateTempAlloca() local 136 Alloca = Builder.CreateAlloca(Ty, ArraySize, Name); in CreateTempAlloca() 138 Alloca = in CreateTempAlloca() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/DirectX/ |
| H A D | DXILLegalizePass.cpp | 357 if (auto *Alloca = dyn_cast<AllocaInst>(Val)) in emitMemcpyExpansion() local 358 return dyn_cast<ArrayType>(Alloca->getAllocatedType()); in emitMemcpyExpansion() 411 AllocaInst *Alloca = dyn_cast<AllocaInst>(Dst); in emitMemsetExpansion() local 413 assert(Alloca && "Expected memset on an Alloca"); in emitMemsetExpansion() 414 assert(OrigSize == Alloca->getAllocationSize(DL)->getFixedValue() && in emitMemsetExpansion() 417 Type *AllocatedTy = Alloca->getAllocatedType(); in emitMemsetExpansion()
|
| H A D | DXILDataScalarization.cpp | 313 } else if (AllocaInst *Alloca = dyn_cast<AllocaInst>(PtrOperand)) { in visitGetElementPtrInst() local 314 Type *AllocatedType = Alloca->getAllocatedType(); in visitGetElementPtrInst()
|
| H A D | DXILFlattenArrays.cpp | 286 } else if (auto *Alloca = dyn_cast<AllocaInst>(PtrOperand)) in visitGetElementPtrInst() local 287 RootTy = Alloca->getAllocatedType(); in visitGetElementPtrInst()
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/SandboxIR/ |
| H A D | Values.def | 114 DEF_INSTR(Alloca, OP(Alloca), AllocaInst)
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/ |
| H A D | RewriteStatepointsForGC.cpp | 1981 Value *Alloca = AllocaMap[OriginalValue]; in insertRelocationStores() local 1986 new StoreInst(Relocate, Alloca, std::next(Relocate->getIterator())); in insertRelocationStores() 2006 Value *Alloca = AllocaMap[OriginalValue]; in insertRematerializationStores() local 2008 new StoreInst(RematerializedValue, Alloca, in insertRematerializationStores() 2041 AllocaInst *Alloca = in relocationViaAlloca() local 2044 AllocaMap[LiveValue] = Alloca; in relocationViaAlloca() 2045 PromotableAllocas.push_back(Alloca); in relocationViaAlloca() 2101 AllocaInst *Alloca = Pair.second; in relocationViaAlloca() local 2107 ToClobber.push_back(Alloca); in relocationViaAlloca() 2137 AllocaInst *Alloca = Pair.second; in relocationViaAlloca() local [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/IPO/ |
| H A D | FunctionSpecialization.cpp | 519 Constant *FunctionSpecializer::getPromotableAlloca(AllocaInst *Alloca, in getPromotableAlloca() argument 522 for (auto *User : Alloca->users()) { in getPromotableAlloca() 555 auto *Alloca = dyn_cast<AllocaInst>(Val); in getConstantStackValue() local 556 if (!Alloca || !Alloca->getAllocatedType()->isIntegerTy()) in getConstantStackValue() 558 return getPromotableAlloca(Alloca, Call); in getConstantStackValue()
|
| H A D | GlobalOpt.cpp | 1493 AllocaInst *Alloca = new AllocaInst(ElemTy, DL.getAllocaAddrSpace(), in processInternalGlobal() local 1495 Alloca->setDebugLoc(DebugLoc::getCompilerGenerated()); in processInternalGlobal() 1497 auto *SI = new StoreInst(GV->getInitializer(), Alloca, FirstI); in processInternalGlobal() 1504 GV->replaceAllUsesWith(Alloca); in processInternalGlobal() 1907 auto *Alloca = in RemovePreallocated() local 1909 ArgAllocas[AllocArgIndex] = Alloca; in RemovePreallocated() 1910 AllocaReplacement = Alloca; in RemovePreallocated()
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/Transforms/Vectorize/SandboxVectorizer/ |
| H A D | DependencyGraph.h | 199 AllocaInst *Alloca; in isMemDepNodeCandidate() local 201 ((Alloca = dyn_cast<AllocaInst>(I)) && in isMemDepNodeCandidate() 202 Alloca->isUsedWithInAlloca()) || in isMemDepNodeCandidate()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/X86/ |
| H A D | X86WinEHState.cpp | 811 if (auto *Alloca = dyn_cast<AllocaInst>(&I)) { in updateEspForInAllocas() local 812 if (Alloca->isStaticAlloca()) in updateEspForInAllocas() 814 IRBuilder<> Builder(Alloca->getNextNonDebugInstruction()); in updateEspForInAllocas()
|
| /freebsd/contrib/llvm-project/llvm/lib/CodeGen/MIRParser/ |
| H A D | MIRParser.cpp | 924 const AllocaInst *Alloca = nullptr; in initializeFrameInfo() local 927 Alloca = dyn_cast_or_null<AllocaInst>( in initializeFrameInfo() 929 if (!Alloca) in initializeFrameInfo() 940 MFI.CreateVariableSizedObject(Object.Alignment.valueOrOne(), Alloca); in initializeFrameInfo() 944 Object.Type == yaml::MachineStackObject::SpillSlot, Alloca, in initializeFrameInfo()
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/Transforms/IPO/ |
| H A D | FunctionSpecialization.h | 274 Constant *getPromotableAlloca(AllocaInst *Alloca, CallInst *Call);
|