Home
last modified time | relevance | path

Searched refs:Alloca (Results 1 – 25 of 59) sorted by relevance

123

/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/CodeGen/
DMachineFrameInfo.h164 const AllocaInst *Alloca; member
185 bool IsImmutable, bool IsSpillSlot, const AllocaInst *Alloca,
189 Alloca(Alloca), isAliased(IsAliased), SSPLayout(SSPLK_None) {} in SPOffset()
486 return Objects[ObjectIdx+NumFixedObjects].Alloca; in getObjectAllocation()
738 const AllocaInst *Alloca = nullptr, uint8_t ID = 0);
742 const AllocaInst *Alloca = nullptr,
745 Alloca, ID);
765 int CreateVariableSizedObject(Align Alignment, const AllocaInst *Alloca);
767 int CreateVariableSizedObject(unsigned Alignment, const AllocaInst *Alloca) { in CreateVariableSizedObject() argument
768 return CreateVariableSizedObject(assumeAligned(Alignment), Alloca); in CreateVariableSizedObject()
DWinEHFuncInfo.h65 const AllocaInst *Alloca; member
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Coroutines/
DCoroFrame.cpp1108 auto Alloca = Builder.CreateAlloca(Builder.getInt8Ty(), AI->getSize()); in lowerLocalAllocas() local
1109 Alloca->setAlignment(MaybeAlign(AI->getAlignment())); in lowerLocalAllocas()
1114 U->replaceAllUsesWith(Alloca); in lowerLocalAllocas()
1197 AllocaInst *Alloca, in emitSetAndGetSwiftErrorValueAround() argument
1199 auto ValueTy = Alloca->getAllocatedType(); in emitSetAndGetSwiftErrorValueAround()
1204 auto ValueBeforeCall = Builder.CreateLoad(ValueTy, Alloca); in emitSetAndGetSwiftErrorValueAround()
1219 Builder.CreateStore(ValueAfterCall, Alloca); in emitSetAndGetSwiftErrorValueAround()
1226 static void eliminateSwiftErrorAlloca(Function &F, AllocaInst *Alloca, in eliminateSwiftErrorAlloca() argument
1228 for (auto UI = Alloca->use_begin(), UE = Alloca->use_end(); UI != UE; ) { in eliminateSwiftErrorAlloca()
1243 auto Addr = emitSetAndGetSwiftErrorValueAround(Call, Alloca, Shape); in eliminateSwiftErrorAlloca()
[all …]
DCoroSplit.cpp521 auto Alloca = Builder.CreateAlloca(ValueTy); in replaceSwiftErrorOps() local
522 Alloca->setSwiftError(true); in replaceSwiftErrorOps()
524 CachedSlot = Alloca; in replaceSwiftErrorOps()
525 return Alloca; in replaceSwiftErrorOps()
/third_party/skia/third_party/externals/swiftshader/third_party/subzero/src/
DIceCfg.cpp619 case Inst::InstKind::Alloca: in findLoopInvariantInstructions()
834 auto *Alloca = llvm::cast<InstAlloca>(Instr); in sortAndCombineAllocas() local
837 uint32_t Alignment = std::max(Alloca->getAlignInBytes(), 1u); in sortAndCombineAllocas()
839 llvm::dyn_cast<ConstantInteger32>(Alloca->getSizeInBytes()); in sortAndCombineAllocas()
870 auto *Alloca = llvm::cast<InstAlloca>(Allocas[i]); in sortAndCombineAllocas() local
874 InstArithmetic::create(this, InstArithmetic::Add, Alloca->getDest(), in sortAndCombineAllocas()
877 Alloca->setDeleted(); in sortAndCombineAllocas()
888 auto *Alloca = llvm::cast<InstAlloca>(Allocas[i]); in sortAndCombineAllocas() local
890 Variable *Dest = Alloca->getDest(); in sortAndCombineAllocas()
897 Alloca->setDeleted(); in sortAndCombineAllocas()
[all …]
DIceInstrumentation.cpp63 case Inst::Alloca: in instrumentInst()
DIceInst.cpp86 X(Alloca, "alloca"); in getInstName()
265 : InstHighLevel(Func, Inst::Alloca, 1, Dest), AlignInBytes(AlignInBytes) { in InstAlloca()
DIceInst.h49 Alloca, enumerator
303 static bool classof(const Inst *Instr) { return Instr->getKind() == Alloca; } in classof()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/
DMachineFrameInfo.cpp52 const AllocaInst *Alloca, in CreateStackObject() argument
56 Objects.push_back(StackObject(Size, Alignment, 0, false, IsSpillSlot, Alloca, in CreateStackObject()
74 const AllocaInst *Alloca) { in CreateVariableSizedObject() argument
77 Objects.push_back(StackObject(0, Alignment, 0, false, false, Alloca, true)); in CreateVariableSizedObject()
DSwiftErrorValueTracking.cpp109 if (const AllocaInst *Alloca = dyn_cast<AllocaInst>(&Inst)) in setFunction() local
110 if (Alloca->isSwiftError()) in setFunction()
111 SwiftErrorVals.push_back(Alloca); in setFunction()
DMIRPrinter.cpp392 if (const auto *Alloca = MFI.getObjectAllocation(I)) in convertStackObjects() local
394 Alloca->hasName() ? Alloca->getName() : "<unnamed alloca>"; in convertStackObjects()
DMachineOperand.cpp495 if (const AllocaInst *Alloca = MFI->getObjectAllocation(FrameIndex)) in printFrameIndex() local
496 if (Alloca->hasName()) in printFrameIndex()
497 Name = Alloca->getName(); in printFrameIndex()
DWinEHPrepare.cpp159 HT.CatchObj.Alloca = AI; in addTryBlockMapEntry()
161 HT.CatchObj.Alloca = nullptr; in addTryBlockMapEntry()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AMDGPU/
DAMDGPUPromoteAlloca.cpp106 bool binaryOpIsDerivedFromSameAlloca(Value *Alloca, Value *Val,
360 static bool tryPromoteAllocaToVector(AllocaInst *Alloca) { in tryPromoteAllocaToVector() argument
367 Type *AT = Alloca->getAllocatedType(); in tryPromoteAllocaToVector()
386 for (User *AllocaUser : Alloca->users()) { in tryPromoteAllocaToVector()
389 if (!canVectorizeInst(cast<Instruction>(AllocaUser), Alloca)) in tryPromoteAllocaToVector()
434 Value *BitCast = Builder.CreateBitCast(Alloca, VecPtrTy); in tryPromoteAllocaToVector()
449 Value *BitCast = Builder.CreateBitCast(Alloca, VecPtrTy); in tryPromoteAllocaToVector()
DAMDGPUTargetTransformInfo.cpp156 const AllocaInst *Alloca = in getUnrollingPreferences() local
158 if (!Alloca || !Alloca->isStaticAlloca()) in getUnrollingPreferences()
160 Type *Ty = Alloca->getAllocatedType(); in getUnrollingPreferences()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Scalar/
DRewriteStatepointsForGC.cpp1641 Value *Alloca = AllocaMap[OriginalValue]; in insertRelocationStores() local
1651 cast<AllocaInst>(Alloca)->getAllocatedType(), in insertRelocationStores()
1654 StoreInst *Store = new StoreInst(CastedRelocatedValue, Alloca); in insertRelocationStores()
1675 Value *Alloca = AllocaMap[OriginalValue]; in insertRematerializationStores() local
1677 StoreInst *Store = new StoreInst(RematerializedValue, Alloca); in insertRematerializationStores()
1710 AllocaInst *Alloca = new AllocaInst(LiveValue->getType(), in relocationViaAlloca() local
1713 AllocaMap[LiveValue] = Alloca; in relocationViaAlloca()
1714 PromotableAllocas.push_back(Alloca); in relocationViaAlloca()
1770 AllocaInst *Alloca = Pair.second; in relocationViaAlloca() local
1776 ToClobber.push_back(Alloca); in relocationViaAlloca()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/MIRParser/
DMIRParser.cpp703 const AllocaInst *Alloca = nullptr; in initializeFrameInfo() local
706 Alloca = dyn_cast_or_null<AllocaInst>( in initializeFrameInfo()
708 if (!Alloca) in initializeFrameInfo()
718 ObjectIdx = MFI.CreateVariableSizedObject(Object.Alignment, Alloca); in initializeFrameInfo()
722 Object.Type == yaml::MachineStackObject::SpillSlot, Alloca, in initializeFrameInfo()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/IR/
DValue.cpp769 auto *Alloca = dyn_cast<AllocaInst>(this); in isSwiftError() local
770 if (!Alloca) in isSwiftError()
772 return Alloca->isSwiftError(); in isSwiftError()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/ObjCARC/
DObjCARCOpts.cpp2125 if (AllocaInst *Alloca = dyn_cast<AllocaInst>(Arg)) { in OptimizeWeakCalls() local
2126 for (User *U : Alloca->users()) { in OptimizeWeakCalls()
2138 for (auto UI = Alloca->user_begin(), UE = Alloca->user_end(); UI != UE;) { in OptimizeWeakCalls()
2154 Alloca->eraseFromParent(); in OptimizeWeakCalls()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-subzero/include/llvm/IR/
DInstruction.def148 HANDLE_MEMORY_INST(29, Alloca, AllocaInst) // Stack management
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/IR/
DInstruction.def171 HANDLE_MEMORY_INST(31, Alloca, AllocaInst) // Stack management
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Instrumentation/
DAddressSanitizer.cpp2934 AllocaInst *Alloca; in createAllocaForLayout() local
2936 Alloca = IRB.CreateAlloca(IRB.getInt8Ty(), in createAllocaForLayout()
2940 Alloca = IRB.CreateAlloca(ArrayType::get(IRB.getInt8Ty(), L.FrameSize), in createAllocaForLayout()
2942 assert(Alloca->isStaticAlloca()); in createAllocaForLayout()
2946 Alloca->setAlignment(MaybeAlign(FrameAlignment)); in createAllocaForLayout()
2947 return IRB.CreatePointerCast(Alloca, IntptrTy); in createAllocaForLayout()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/ARM/
DARMFastISel.cpp800 case Instruction::Alloca: { in ARMComputeAddress()
1033 if (const AllocaInst *Alloca = dyn_cast<AllocaInst>(SV)) { in SelectLoad() local
1034 if (Alloca->isSwiftError()) in SelectLoad()
1165 if (const AllocaInst *Alloca = dyn_cast<AllocaInst>(PtrV)) { in SelectStore() local
1166 if (Alloca->isSwiftError()) in SelectStore()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Analysis/
DObjCARCInstKind.cpp250 case Instruction::Alloca: in GetARCInstKind()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/SelectionDAG/
DFunctionLoweringInfo.cpp117 if (const AllocaInst *AI = H.CatchObj.Alloca) in set()

123