/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Coroutines/ |
D | CoroEarly.cpp | 147 static void setCannotDuplicate(CoroIdInst *CoroId) { in setCannotDuplicate() argument 148 for (User *U : CoroId->users()) in setCannotDuplicate() 155 CoroIdInst *CoroId = nullptr; in lowerEarlyIntrinsics() local 189 CoroId = cast<CoroIdInst>(&I); in lowerEarlyIntrinsics() 216 if (CoroId) in lowerEarlyIntrinsics() 218 CF->setArgOperand(0, CoroId); in lowerEarlyIntrinsics()
|
D | CoroElide.cpp | 191 bool Lowerer::processCoroId(CoroIdInst *CoroId, AAResults &AA, in processCoroId() argument 200 for (User *U : CoroId->users()) { in processCoroId() 230 ConstantArray *Resumers = CoroId->getInfo().Resumers; in processCoroId() 238 bool ShouldElide = shouldElide(CoroId->getFunction(), DT); in processCoroId() 248 elideHeapAllocations(CoroId->getFunction(), FrameTy, AA); in processCoroId() 249 coro::replaceCoroFree(CoroId, /*Elide=*/true); in processCoroId()
|
D | Coroutines.cpp | 167 void coro::replaceCoroFree(CoroIdInst *CoroId, bool Elide) { in replaceCoroFree() argument 169 for (User *U : CoroId->users()) in replaceCoroFree() 177 Elide ? ConstantPointerNull::get(Type::getInt8PtrTy(CoroId->getContext())) in replaceCoroFree()
|
D | CoroInternal.h | 50 void replaceCoroFree(CoroIdInst *CoroId, bool Elide);
|
D | CoroSplit.cpp | 856 CoroIdInst *CoroId = Shape.getSwitchCoroId(); in updateCoroFrame() local 857 if (CoroAllocInst *CA = CoroId->getCoroAlloc()) { in updateCoroFrame() 988 auto *CoroId = CoroBegin->getId(); in handleNoSuspendCoroutine() local 989 auto *AllocInst = CoroId->getCoroAlloc(); in handleNoSuspendCoroutine() 992 auto SwitchId = cast<CoroIdInst>(CoroId); in handleNoSuspendCoroutine()
|
/external/llvm-project/llvm/lib/Transforms/Coroutines/ |
D | CoroEarly.cpp | 142 static void setCannotDuplicate(CoroIdInst *CoroId) { in setCannotDuplicate() argument 143 for (User *U : CoroId->users()) in setCannotDuplicate() 150 CoroIdInst *CoroId = nullptr; in lowerEarlyIntrinsics() local 184 CoroId = cast<CoroIdInst>(&I); in lowerEarlyIntrinsics() 212 if (CoroId) in lowerEarlyIntrinsics() 214 CF->setArgOperand(0, CoroId); in lowerEarlyIntrinsics()
|
D | CoroElide.cpp | 282 bool Lowerer::processCoroId(CoroIdInst *CoroId, AAResults &AA, in processCoroId() argument 291 for (User *U : CoroId->users()) { in processCoroId() 321 ConstantArray *Resumers = CoroId->getInfo().Resumers; in processCoroId() 329 bool ShouldElide = shouldElide(CoroId->getFunction(), DT); in processCoroId() 340 elideHeapAllocations(CoroId->getFunction(), FrameSizeAndAlign.first, in processCoroId() 342 coro::replaceCoroFree(CoroId, /*Elide=*/true); in processCoroId()
|
D | Coroutines.cpp | 172 void coro::replaceCoroFree(CoroIdInst *CoroId, bool Elide) { in replaceCoroFree() argument 174 for (User *U : CoroId->users()) in replaceCoroFree() 182 Elide ? ConstantPointerNull::get(Type::getInt8PtrTy(CoroId->getContext())) in replaceCoroFree()
|
D | CoroInternal.h | 50 void replaceCoroFree(CoroIdInst *CoroId, bool Elide);
|
D | CoroSplit.cpp | 963 CoroIdInst *CoroId = Shape.getSwitchCoroId(); in updateCoroFrame() local 964 if (CoroAllocInst *CA = CoroId->getCoroAlloc()) { in updateCoroFrame() 1144 auto *CoroId = CoroBegin->getId(); in handleNoSuspendCoroutine() local 1145 auto *AllocInst = CoroId->getCoroAlloc(); in handleNoSuspendCoroutine() 1148 auto SwitchId = cast<CoroIdInst>(CoroId); in handleNoSuspendCoroutine()
|
/external/llvm-project/clang/lib/CodeGen/ |
D | CGCoroutine.cpp | 68 llvm::CallInst *CoroId = nullptr; member 91 llvm::CallInst *CoroId, in createCoroData() argument 107 CurCoro.Data->CoroId = CoroId; in createCoroData() 554 auto *CoroId = Builder.CreateCall( in EmitCoroutineBody() local 557 createCoroData(*this, CurCoro, CoroId); in EmitCoroutineBody() 563 CGM.getIntrinsic(llvm::Intrinsic::coro_alloc), {CoroId}); in EmitCoroutineBody() 595 CGM.getIntrinsic(llvm::Intrinsic::coro_begin), {CoroId, Phi}); in EmitCoroutineBody() 622 new llvm::BitCastInst(PromiseAddr.getPointer(), VoidPtrTy, "", CoroId); in EmitCoroutineBody() 625 CoroId->setArgOperand(1, PromiseAddrVoidPtr); in EmitCoroutineBody() 719 if (CurCoro.Data && CurCoro.Data->CoroId) { in EmitCoroutineIntrinsic() [all …]
|