Searched refs:FrameTy (Results 1 – 7 of 7) sorted by relevance
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Coroutines/ |
D | CoroEarly.cpp | 96 auto *FrameTy = Int8Ptr; in lowerCoroDone() local 97 PointerType *FramePtrTy = FrameTy->getPointerTo(); in lowerCoroDone() 114 StructType *FrameTy = StructType::create(C, "NoopCoro.Frame"); in lowerCoroNoop() local 115 auto *FramePtrTy = FrameTy->getPointerTo(); in lowerCoroNoop() 119 FrameTy->setBody({FnPtrTy, FnPtrTy}); in lowerCoroNoop() 131 Constant* NoopCoroConst = ConstantStruct::get(FrameTy, Values); in lowerCoroNoop()
|
D | CoroCleanup.cpp | 45 auto *FrameTy = StructType::get( in lowerSubFn() local 47 PointerType *FramePtrTy = FrameTy->getPointerTo(); in lowerSubFn() 51 auto *Gep = Builder.CreateConstInBoundsGEP2_32(FrameTy, FramePtr, 0, Index); in lowerSubFn() 52 auto *Load = Builder.CreateLoad(FrameTy->getElementType(Index), Gep); in lowerSubFn()
|
D | CoroInternal.h | 109 StructType *FrameTy; member 146 assert(FrameTy && "frame type not assigned"); in getIndexType() 147 return cast<IntegerType>(FrameTy->getElementType(SwitchFieldIndex::Index)); in getIndexType() 155 assert(FrameTy && "frame type not assigned"); in getSwitchResumePointerType() 156 return cast<PointerType>(FrameTy->getElementType(SwitchFieldIndex::Resume)); in getSwitchResumePointerType()
|
D | CoroElide.cpp | 38 void elideHeapAllocations(Function *F, Type *FrameTy, AAResults &AA); 109 void Lowerer::elideHeapAllocations(Function *F, Type *FrameTy, AAResults &AA) { in elideHeapAllocations() argument 110 LLVMContext &C = FrameTy->getContext(); in elideHeapAllocations() 131 auto *Frame = new AllocaInst(FrameTy, DL.getAllocaAddrSpace(), "", InsertPt); in elideHeapAllocations() 247 auto *FrameTy = getFrameType(cast<Function>(ResumeAddrConstant)); in processCoroId() local 248 elideHeapAllocations(CoroId->getFunction(), FrameTy, AA); in processCoroId()
|
D | CoroFrame.cpp | 402 StructType *FrameTy = StructType::create(C, Name); in buildFrameType() local 408 auto *FramePtrTy = FrameTy->getPointerTo(); in buildFrameType() 467 FrameTy->setBody(Types); in buildFrameType() 479 = (Layout.getTypeAllocSize(FrameTy) <= Id->getStorageSize() && in buildFrameType() 480 Layout.getABITypeAlignment(FrameTy) <= Id->getStorageAlignment()); in buildFrameType() 485 return FrameTy; in buildFrameType() 590 StructType *FrameTy = Shape.FrameTy; in insertSpills() local 591 PointerType *FramePtrTy = FrameTy->getPointerTo(); in insertSpills() 635 return Builder.CreateInBoundsGEP(FrameTy, FramePtr, Indices); in insertSpills() 649 : Builder.CreateLoad(FrameTy->getElementType(Index), G, in insertSpills() [all …]
|
D | CoroSplit.cpp | 284 auto *FrameTy = Shape.FrameTy; in createResumeEntryBlock() local 286 FrameTy, FramePtr, coro::Shape::SwitchFieldIndex::Index, "index.addr"); in createResumeEntryBlock() 304 auto *GepIndex = Builder.CreateStructGEP(FrameTy, FramePtr, in createResumeEntryBlock() 312 FrameTy, FramePtr, coro::Shape::SwitchFieldIndex::Index, "index.addr"); in createResumeEntryBlock() 384 auto *GepIndex = Builder.CreateStructGEP(Shape.FrameTy, NewFramePtr, in handleFinalSuspend() 624 auto FramePtrTy = Shape.FrameTy->getPointerTo(); in deriveNewFramePointer() 800 auto Size = DL.getTypeAllocSize(Shape.FrameTy); in replaceFrameSize() 850 Shape.FrameTy, Shape.FramePtr, coro::Shape::SwitchFieldIndex::Resume, in updateCoroFrame() 864 Shape.FrameTy, Shape.FramePtr, coro::Shape::SwitchFieldIndex::Destroy, in updateCoroFrame() 997 auto *Frame = Builder.CreateAlloca(Shape.FrameTy); in handleNoSuspendCoroutine() [all …]
|
D | Coroutines.cpp | 232 Shape.FrameTy = nullptr; in clear()
|