Home
last modified time | relevance | path

Searched refs:AllocInst (Results 1 – 2 of 2) sorted by relevance

/llvm-project-15.0.7/llvm/lib/Transforms/Coroutines/
H A DCoroSplit.cpp1391 auto *AllocInst = CoroId->getCoroAlloc(); in handleNoSuspendCoroutine() local
1395 coro::replaceCoroFree(SwitchId, /*Elide=*/AllocInst != nullptr); in handleNoSuspendCoroutine()
1396 if (AllocInst) { in handleNoSuspendCoroutine()
1397 IRBuilder<> Builder(AllocInst); in handleNoSuspendCoroutine()
1401 AllocInst->replaceAllUsesWith(Builder.getFalse()); in handleNoSuspendCoroutine()
1402 AllocInst->eraseFromParent(); in handleNoSuspendCoroutine()
/llvm-project-15.0.7/llvm/unittests/Frontend/
H A DOpenMPIRBuilderTest.cpp2573 AllocaInst *AllocInst = dyn_cast<AllocaInst>(&BB->front()); in TEST_F() local
2574 ASSERT_NE(AllocInst, nullptr); in TEST_F()
2575 ArrayType *ArrType = dyn_cast<ArrayType>(AllocInst->getAllocatedType()); in TEST_F()
2580 Instruction *IterInst = dyn_cast<Instruction>(AllocInst); in TEST_F()
2585 EXPECT_EQ(DependAddrGEPIter->getPointerOperand(), AllocInst); in TEST_F()
2605 EXPECT_EQ(DependBaseAddrGEP->getPointerOperand(), AllocInst); in TEST_F()
2658 AllocaInst *AllocInst = dyn_cast<AllocaInst>(&BB->front()); in TEST_F() local
2659 ASSERT_NE(AllocInst, nullptr); in TEST_F()
2665 Instruction *IterInst = dyn_cast<Instruction>(AllocInst); in TEST_F()
2670 EXPECT_EQ(DependAddrGEPIter->getPointerOperand(), AllocInst); in TEST_F()
[all …]