Home
last modified time | relevance | path

Searched refs:FrameTy (Results 1 – 7 of 7) sorted by relevance

/freebsd/contrib/llvm-project/llvm/lib/Transforms/Coroutines/
H A DCoroInternal.h107 StructType *FrameTy; member
172 assert(FrameTy && "frame type not assigned"); in getSwitchIndexField()
177 assert(FrameTy && "frame type not assigned"); in getIndexType()
178 return cast<IntegerType>(FrameTy->getElementType(getSwitchIndexField())); in getIndexType()
186 assert(FrameTy && "frame type not assigned"); in getSwitchResumePointerType()
187 return cast<PointerType>(FrameTy->getElementType(SwitchFieldIndex::Resume)); in getSwitchResumePointerType()
193 return FunctionType::get(Type::getVoidTy(FrameTy->getContext()), in getResumeFunctionType()
194 PointerType::getUnqual(FrameTy->getContext()), in getResumeFunctionType()
H A DCoroEarly.cpp92 auto *FrameTy = Int8Ptr; in lowerCoroDone() local
93 PointerType *FramePtrTy = FrameTy->getPointerTo(); in lowerCoroDone()
97 auto *Load = Builder.CreateLoad(FrameTy, BCI); in lowerCoroDone()
129 StructType *FrameTy = StructType::create(C, "NoopCoro.Frame"); in lowerCoroNoop() local
130 auto *FramePtrTy = FrameTy->getPointerTo(); in lowerCoroNoop()
134 FrameTy->setBody({FnPtrTy, FnPtrTy}); in lowerCoroNoop()
147 Constant* NoopCoroConst = ConstantStruct::get(FrameTy, Values); in lowerCoroNoop()
H A DCoroCleanup.cpp36 auto *FrameTy = StructType::get(SubFn->getContext(), in lowerSubFn() local
40 auto *Gep = Builder.CreateConstInBoundsGEP2_32(FrameTy, FramePtr, 0, Index); in lowerSubFn()
41 auto *Load = Builder.CreateLoad(FrameTy->getElementType(Index), Gep); in lowerSubFn()
H A DCoroSplit.cpp410 Shape.FrameTy, FramePtr, coro::Shape::SwitchFieldIndex::Resume, in markCoroutineAsDone()
413 Shape.FrameTy->getTypeAtIndex(coro::Shape::SwitchFieldIndex::Resume))); in markCoroutineAsDone()
431 Shape.FrameTy, FramePtr, Shape.getSwitchIndexField(), "index.addr"); in markCoroutineAsDone()
520 Shape.FrameTy, NewFramePtr, coro::Shape::SwitchFieldIndex::Resume, in handleFinalSuspend()
878 auto FramePtrTy = PointerType::getUnqual(Shape.FrameTy->getContext()); in deriveNewFramePointer()
1199 auto Size = DL.getTypeAllocSize(Shape.FrameTy); in replaceFrameSizeAndAlignment()
1232 auto *Frame = Builder.CreateAlloca(Shape.FrameTy); in handleNoSuspendCoroutine()
1489 auto *FrameTy = Shape.FrameTy; in createResumeEntryBlock() local
1491 FrameTy, FramePtr, Shape.getSwitchIndexField(), "index.addr"); in createResumeEntryBlock()
1513 FrameTy, FramePtr, Shape.getSwitchIndexField(), "index.addr"); in createResumeEntryBlock()
[all …]
H A DCoroFrame.cpp1154 StructType *FrameTy = Shape.FrameTy; in buildFrameDebugInfo() local
1170 Type *ResumeFnTy = FrameTy->getElementType(ResumeIndex), in buildFrameDebugInfo()
1171 *DestroyFnTy = FrameTy->getElementType(DestroyIndex), in buildFrameDebugInfo()
1172 *IndexTy = FrameTy->getElementType(IndexIndex); in buildFrameDebugInfo()
1223 for (unsigned Index = 0; Index < FrameTy->getNumElements(); Index++) { in buildFrameDebugInfo()
1233 Type *Ty = FrameTy->getElementType(Index); in buildFrameDebugInfo()
1304 StructType *FrameTy = [&] { in buildFrameType() local
1369 B.finish(FrameTy); in buildFrameType()
1414 return FrameTy; in buildFrameType()
1759 StructType *FrameTy = Shape.FrameTy; in insertSpills() local
[all …]
H A DCoroElide.cpp240 auto FrameTy = ArrayType::get(Type::getInt8Ty(C), FrameSize); in elideHeapAllocations() local
241 auto *Frame = new AllocaInst(FrameTy, DL.getAllocaAddrSpace(), "", InsertPt); in elideHeapAllocations()
H A DCoroutines.cpp154 Shape.FrameTy = nullptr; in clear()