Searched refs:FrameTy (Results 1 – 7 of 7) sorted by relevance
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Coroutines/ |
H A D | CoroInternal.h | 104 StructType *FrameTy; member 169 assert(FrameTy && "frame type not assigned"); in getSwitchIndexField() 174 assert(FrameTy && "frame type not assigned"); in getIndexType() 175 return cast<IntegerType>(FrameTy->getElementType(getSwitchIndexField())); in getIndexType() 183 assert(FrameTy && "frame type not assigned"); in getSwitchResumePointerType() 184 return cast<PointerType>(FrameTy->getElementType(SwitchFieldIndex::Resume)); in getSwitchResumePointerType() 190 return FunctionType::get(Type::getVoidTy(FrameTy->getContext()), in getResumeFunctionType() 191 PointerType::getUnqual(FrameTy->getContext()), in getResumeFunctionType()
|
H A D | CoroEarly.cpp | 92 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 D | CoroCleanup.cpp | 35 auto *FrameTy = StructType::get(SubFn->getContext(), in lowerSubFn() local 39 auto *Gep = Builder.CreateConstInBoundsGEP2_32(FrameTy, FramePtr, 0, Index); in lowerSubFn() 40 auto *Load = Builder.CreateLoad(FrameTy->getElementType(Index), Gep); in lowerSubFn()
|
H A D | CoroSplit.cpp | 331 Shape.FrameTy, FramePtr, coro::Shape::SwitchFieldIndex::Resume, in markCoroutineAsDone() 334 Shape.FrameTy->getTypeAtIndex(coro::Shape::SwitchFieldIndex::Resume))); in markCoroutineAsDone() 352 Shape.FrameTy, FramePtr, Shape.getSwitchIndexField(), "index.addr"); in markCoroutineAsDone() 431 auto *FrameTy = Shape.FrameTy; in createResumeEntryBlock() local 433 FrameTy, FramePtr, Shape.getSwitchIndexField(), "index.addr"); in createResumeEntryBlock() 455 FrameTy, FramePtr, Shape.getSwitchIndexField(), "index.addr"); in createResumeEntryBlock() 539 Shape.FrameTy, NewFramePtr, coro::Shape::SwitchFieldIndex::Resume, in handleFinalSuspend() 893 auto FramePtrTy = PointerType::getUnqual(Shape.FrameTy->getContext()); in deriveNewFramePointer() 1206 auto Size = DL.getTypeAllocSize(Shape.FrameTy); in replaceFrameSizeAndAlignment() 1490 auto *Frame = Builder.CreateAlloca(Shape.FrameTy); in handleNoSuspendCoroutine() [all …]
|
H A D | CoroFrame.cpp | 1151 StructType *FrameTy = Shape.FrameTy; in buildFrameDebugInfo() local 1167 Type *ResumeFnTy = FrameTy->getElementType(ResumeIndex), in buildFrameDebugInfo() 1168 *DestroyFnTy = FrameTy->getElementType(DestroyIndex), in buildFrameDebugInfo() 1169 *IndexTy = FrameTy->getElementType(IndexIndex); in buildFrameDebugInfo() 1230 Type *Ty = FrameTy->getElementType(Index); in buildFrameDebugInfo() 1300 StructType *FrameTy = [&] { in buildFrameType() local 1365 B.finish(FrameTy); in buildFrameType() 1410 return FrameTy; in buildFrameType() 1729 StructType *FrameTy = Shape.FrameTy; in insertSpills() local 1756 Builder.CreateInBoundsGEP(FrameTy, FramePtr, Indices)); in insertSpills() [all …]
|
H A D | CoroElide.cpp | 164 auto FrameTy = ArrayType::get(Type::getInt8Ty(C), FrameSize); in elideHeapAllocations() local 165 auto *Frame = new AllocaInst(FrameTy, DL.getAllocaAddrSpace(), "", InsertPt); in elideHeapAllocations()
|
H A D | Coroutines.cpp | 151 Shape.FrameTy = nullptr; in clear()
|