Home
last modified time | relevance | path

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

/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/Coroutines/
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 DCoroInternal.h122 StructType *FrameTy; member
187 assert(FrameTy && "frame type not assigned"); in getSwitchIndexField()
192 assert(FrameTy && "frame type not assigned"); in getIndexType()
193 return cast<IntegerType>(FrameTy->getElementType(getSwitchIndexField())); in getIndexType()
201 assert(FrameTy && "frame type not assigned"); in getSwitchResumePointerType()
202 return cast<PointerType>(FrameTy->getElementType(SwitchFieldIndex::Resume)); in getSwitchResumePointerType()
H A DCoroCleanup.cpp44 auto *FrameTy = StructType::get( in lowerSubFn() local
46 PointerType *FramePtrTy = FrameTy->getPointerTo(); in lowerSubFn()
50 auto *Gep = Builder.CreateConstInBoundsGEP2_32(FrameTy, FramePtr, 0, Index); in lowerSubFn()
51 auto *Load = Builder.CreateLoad(FrameTy->getElementType(Index), Gep); in lowerSubFn()
H A DCoroElide.cpp104 auto *FrameTy = Resume->arg_begin()->getType()->getPointerElementType(); in getFrameLayout() local
107 if (!Size) Size = DL.getTypeAllocSize(FrameTy); in getFrameLayout()
108 if (!Align) Align = DL.getABITypeAlign(FrameTy); in getFrameLayout()
147 auto FrameTy = ArrayType::get(Type::getInt8Ty(C), FrameSize); in elideHeapAllocations() local
148 auto *Frame = new AllocaInst(FrameTy, DL.getAllocaAddrSpace(), "", InsertPt); in elideHeapAllocations()
H A DCoroFrame.cpp943 StructType *FrameTy = Shape.FrameTy; in buildFrameDebugInfo() local
959 Type *ResumeFnTy = FrameTy->getElementType(ResumeIndex), in buildFrameDebugInfo()
960 *DestroyFnTy = FrameTy->getElementType(DestroyIndex), in buildFrameDebugInfo()
961 *IndexTy = FrameTy->getElementType(IndexIndex); in buildFrameDebugInfo()
1014 for (unsigned Index = 0; Index < FrameTy->getNumElements(); Index++) { in buildFrameDebugInfo()
1024 Type *Ty = FrameTy->getElementType(Index); in buildFrameDebugInfo()
1087 StructType *FrameTy = [&] { in buildFrameType() local
1099 auto *FramePtrTy = FrameTy->getPointerTo(); in buildFrameType()
1144 B.finish(FrameTy); in buildFrameType()
1189 return FrameTy; in buildFrameType()
[all …]
H A DCoroSplit.cpp346 auto *FrameTy = Shape.FrameTy; in createResumeEntryBlock() local
348 FrameTy, FramePtr, Shape.getSwitchIndexField(), "index.addr"); in createResumeEntryBlock()
366 auto *GepIndex = Builder.CreateStructGEP(FrameTy, FramePtr, in createResumeEntryBlock()
374 FrameTy, FramePtr, Shape.getSwitchIndexField(), "index.addr"); in createResumeEntryBlock()
446 auto *GepIndex = Builder.CreateStructGEP(Shape.FrameTy, NewFramePtr, in handleFinalSuspend()
765 auto *FramePtrTy = Shape.FrameTy->getPointerTo(); in deriveNewFramePointer()
792 auto FramePtrTy = Shape.FrameTy->getPointerTo(); in deriveNewFramePointer()
1038 auto Size = DL.getTypeAllocSize(Shape.FrameTy); in replaceFrameSize()
1088 Shape.FrameTy, Shape.FramePtr, coro::Shape::SwitchFieldIndex::Resume, in updateCoroFrame()
1102 Shape.FrameTy, Shape.FramePtr, coro::Shape::SwitchFieldIndex::Destroy, in updateCoroFrame()
[all …]
H A DCoroutines.cpp239 Shape.FrameTy = nullptr; in clear()