Home
last modified time | relevance | path

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

/openbsd-src/gnu/llvm/llvm/lib/Transforms/Coroutines/
H A DCoroInternal.h98 StructType *FrameTy; member
164 assert(FrameTy && "frame type not assigned"); in getSwitchIndexField()
169 assert(FrameTy && "frame type not assigned"); in getIndexType()
170 return cast<IntegerType>(FrameTy->getElementType(getSwitchIndexField())); in getIndexType()
178 assert(FrameTy && "frame type not assigned"); in getSwitchResumePointerType()
179 return cast<PointerType>(FrameTy->getElementType(SwitchFieldIndex::Resume)); in getSwitchResumePointerType()
185 return FunctionType::get(Type::getVoidTy(FrameTy->getContext()), in getResumeFunctionType()
186 FrameTy->getPointerTo(), /*IsVarArg*/false); 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.cpp35 auto *FrameTy = StructType::get( in lowerSubFn() local
37 PointerType *FramePtrTy = FrameTy->getPointerTo(); in lowerSubFn()
41 auto *Gep = Builder.CreateConstInBoundsGEP2_32(FrameTy, FramePtr, 0, Index); in lowerSubFn()
42 auto *Load = Builder.CreateLoad(FrameTy->getElementType(Index), Gep); in lowerSubFn()
H A DCoroFrame.cpp1008 StructType *FrameTy = Shape.FrameTy; in buildFrameDebugInfo() local
1024 Type *ResumeFnTy = FrameTy->getElementType(ResumeIndex), in buildFrameDebugInfo()
1025 *DestroyFnTy = FrameTy->getElementType(DestroyIndex), in buildFrameDebugInfo()
1026 *IndexTy = FrameTy->getElementType(IndexIndex); in buildFrameDebugInfo()
1077 for (unsigned Index = 0; Index < FrameTy->getNumElements(); Index++) { in buildFrameDebugInfo()
1087 Type *Ty = FrameTy->getElementType(Index); in buildFrameDebugInfo()
1149 StructType *FrameTy = [&] { in buildFrameType() local
1165 auto *FramePtrTy = FrameTy->getPointerTo(); in buildFrameType()
1217 B.finish(FrameTy); in buildFrameType()
1262 return FrameTy; in buildFrameType()
[all …]
H A DCoroSplit.cpp297 Shape.FrameTy, FramePtr, coro::Shape::SwitchFieldIndex::Resume, in markCoroutineAsDone()
300 Shape.FrameTy->getTypeAtIndex(coro::Shape::SwitchFieldIndex::Resume))); in markCoroutineAsDone()
377 auto *FrameTy = Shape.FrameTy; in createResumeEntryBlock() local
379 FrameTy, FramePtr, Shape.getSwitchIndexField(), "index.addr"); in createResumeEntryBlock()
411 FrameTy, FramePtr, Shape.getSwitchIndexField(), "index.addr"); in createResumeEntryBlock()
487 auto *GepIndex = Builder.CreateStructGEP(Shape.FrameTy, NewFramePtr, in handleFinalSuspend()
803 auto *FramePtrTy = Shape.FrameTy->getPointerTo(); in deriveNewFramePointer()
829 auto FramePtrTy = Shape.FrameTy->getPointerTo(); in deriveNewFramePointer()
1131 auto Size = DL.getTypeAllocSize(Shape.FrameTy); in replaceFrameSizeAndAlignment()
1182 Shape.FrameTy, Shape.FramePtr, coro::Shape::SwitchFieldIndex::Resume, in updateCoroFrame()
[all …]
H A DCoroElide.cpp162 auto FrameTy = ArrayType::get(Type::getInt8Ty(C), FrameSize); in elideHeapAllocations() local
163 auto *Frame = new AllocaInst(FrameTy, DL.getAllocaAddrSpace(), "", InsertPt); in elideHeapAllocations()
H A DCoroutines.cpp155 Shape.FrameTy = nullptr; in clear()