Home
last modified time | relevance | path

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

/freebsd/contrib/llvm-project/llvm/include/llvm/Transforms/Coroutines/
H A DCoroShape.h76 FrameTy = nullptr; in clear()
114 StructType *FrameTy = nullptr; member
175 assert(FrameTy && "frame type not assigned"); in getSwitchIndexField()
180 assert(FrameTy && "frame type not assigned"); in getIndexType()
181 return cast<IntegerType>(FrameTy->getElementType(getSwitchIndexField())); in getIndexType()
189 assert(FrameTy && "frame type not assigned"); in getSwitchResumePointerType()
190 return cast<PointerType>(FrameTy->getElementType(SwitchFieldIndex::Resume)); in getSwitchResumePointerType()
196 return FunctionType::get(Type::getVoidTy(FrameTy->getContext()), in getResumeFunctionType()
197 PointerType::getUnqual(FrameTy->getContext()), in getResumeFunctionType()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Coroutines/
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 DCoroEarly.cpp92 auto *FrameTy = Int8Ptr; in lowerCoroDone() local
95 auto *Load = Builder.CreateLoad(FrameTy, Operand); in lowerCoroDone()
130 StructType *FrameTy = in lowerCoroNoop() local
145 Constant* NoopCoroConst = ConstantStruct::get(FrameTy, Values); in lowerCoroNoop()
H A DCoroFrame.cpp715 StructType *FrameTy = Shape.FrameTy; in buildFrameDebugInfo() local
731 Type *ResumeFnTy = FrameTy->getElementType(ResumeIndex), in buildFrameDebugInfo()
732 *DestroyFnTy = FrameTy->getElementType(DestroyIndex), in buildFrameDebugInfo()
733 *IndexTy = FrameTy->getElementType(IndexIndex); in buildFrameDebugInfo()
785 for (unsigned Index = 0; Index < FrameTy->getNumElements(); Index++) { in buildFrameDebugInfo()
796 Type *Ty = FrameTy->getElementType(Index); in buildFrameDebugInfo()
924 StructType *FrameTy = [&] { in buildFrameType() local
974 return FrameTy; in buildFrameType()
1002 StructType *FrameTy = Shape.FrameTy; in insertSpills() local
1029 Builder.CreateInBoundsGEP(FrameTy, FramePtr, Indices)); in insertSpills()
[all …]
H A DCoroAnnotationElide.cpp51 auto FrameTy = ArrayType::get(Type::getInt8Ty(C), FrameSize); in allocateFrameInCaller() local
52 auto *Frame = new AllocaInst(FrameTy, DL.getAllocaAddrSpace(), "", InsertPt); in allocateFrameInCaller()
H A DCoroSplit.cpp319 Shape.FrameTy, FramePtr, coro::Shape::SwitchFieldIndex::Resume, in markCoroutineAsDone()
322 Shape.FrameTy->getTypeAtIndex(coro::Shape::SwitchFieldIndex::Resume))); in markCoroutineAsDone()
340 Shape.FrameTy, FramePtr, Shape.getSwitchIndexField(), "index.addr"); in markCoroutineAsDone()
429 Shape.FrameTy, NewFramePtr, coro::Shape::SwitchFieldIndex::Resume, in handleFinalSuspend()
786 auto FramePtrTy = PointerType::getUnqual(Shape.FrameTy->getContext()); in deriveNewFramePointer()
1126 return DL.getTypeAllocSize(Shape.FrameTy); in getFrameSizeForShape()
1176 auto *Frame = Builder.CreateAlloca(Shape.FrameTy); in handleNoSuspendCoroutine()
1423 NewParams.push_back(PointerType::getUnqual(Shape.FrameTy->getContext())); in createNoAllocVariant()
1505 auto *FrameTy = Shape.FrameTy; in createResumeEntryBlock() local
1507 FrameTy, FramePtr, Shape.getSwitchIndexField(), "index.addr"); in createResumeEntryBlock()
[all …]
H A DCoroElide.cpp224 auto FrameTy = ArrayType::get(Type::getInt8Ty(C), FrameSize); in elideHeapAllocations() local
225 auto *Frame = new AllocaInst(FrameTy, DL.getAllocaAddrSpace(), "", InsertPt); in elideHeapAllocations()