Home
last modified time | relevance | path

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

/llvm-project-15.0.7/llvm/lib/Transforms/Coroutines/
H A DCoroInternal.h98 StructType *FrameTy; member
163 assert(FrameTy && "frame type not assigned"); in getSwitchIndexField()
168 assert(FrameTy && "frame type not assigned"); in getIndexType()
169 return cast<IntegerType>(FrameTy->getElementType(getSwitchIndexField())); in getIndexType()
177 assert(FrameTy && "frame type not assigned"); in getSwitchResumePointerType()
178 return cast<PointerType>(FrameTy->getElementType(SwitchFieldIndex::Resume)); in getSwitchResumePointerType()
184 return FunctionType::get(Type::getVoidTy(FrameTy->getContext()), in getResumeFunctionType()
185 FrameTy->getPointerTo(), /*IsVarArg*/false); in getResumeFunctionType()
H A DCoroEarly.cpp91 auto *FrameTy = Int8Ptr; in lowerCoroDone() local
92 PointerType *FramePtrTy = FrameTy->getPointerTo(); in lowerCoroDone()
96 auto *Load = Builder.CreateLoad(FrameTy, BCI); in lowerCoroDone()
109 StructType *FrameTy = StructType::create(C, "NoopCoro.Frame"); in lowerCoroNoop() local
110 auto *FramePtrTy = FrameTy->getPointerTo(); in lowerCoroNoop()
114 FrameTy->setBody({FnPtrTy, FnPtrTy}); in lowerCoroNoop()
126 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.cpp986 StructType *FrameTy = Shape.FrameTy; in buildFrameDebugInfo() local
1004 *IndexTy = FrameTy->getElementType(IndexIndex); in buildFrameDebugInfo()
1065 Type *Ty = FrameTy->getElementType(Index); in buildFrameDebugInfo()
1127 StructType *FrameTy = [&] { in buildFrameType() local
1143 auto *FramePtrTy = FrameTy->getPointerTo(); in buildFrameType()
1195 B.finish(FrameTy); in buildFrameType()
1240 return FrameTy; in buildFrameType()
1523 StructType *FrameTy = Shape.FrameTy; in createFramePtr() local
1524 PointerType *FramePtrTy = FrameTy->getPointerTo(); in createFramePtr()
1555 StructType *FrameTy = Shape.FrameTy; in insertSpills() local
[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()
401 FrameTy, FramePtr, Shape.getSwitchIndexField(), "index.addr"); in createResumeEntryBlock()
473 auto *GepIndex = Builder.CreateStructGEP(Shape.FrameTy, NewFramePtr, in handleFinalSuspend()
796 auto *FramePtrTy = Shape.FrameTy->getPointerTo(); in deriveNewFramePointer()
822 auto FramePtrTy = Shape.FrameTy->getPointerTo(); in deriveNewFramePointer()
1117 auto Size = DL.getTypeAllocSize(Shape.FrameTy); in replaceFrameSizeAndAlignment()
1398 auto *Frame = Builder.CreateAlloca(Shape.FrameTy); in handleNoSuspendCoroutine()
[all …]
H A DCoroElide.cpp160 auto FrameTy = ArrayType::get(Type::getInt8Ty(C), FrameSize); in elideHeapAllocations() local
161 auto *Frame = new AllocaInst(FrameTy, DL.getAllocaAddrSpace(), "", InsertPt); in elideHeapAllocations()
H A DCoroutines.cpp155 Shape.FrameTy = nullptr; in clear()