| /llvm-project-15.0.7/llvm/examples/Kaleidoscope/Chapter5/ |
| H A D | toy.cpp | 635 BasicBlock *ThenBB = BasicBlock::Create(*TheContext, "then", TheFunction); in codegen() local 639 Builder->CreateCondBr(CondV, ThenBB, ElseBB); in codegen() 642 Builder->SetInsertPoint(ThenBB); in codegen() 650 ThenBB = Builder->GetInsertBlock(); in codegen() 669 PN->addIncoming(ThenV, ThenBB); in codegen()
|
| /llvm-project-15.0.7/llvm/examples/Kaleidoscope/MCJIT/cached/ |
| H A D | toy-jit.cpp | 749 BasicBlock *ThenBB = BasicBlock::Create(TheContext, "then", TheFunction); in Codegen() local 753 Builder.CreateCondBr(CondV, ThenBB, ElseBB); in Codegen() 756 Builder.SetInsertPoint(ThenBB); in Codegen() 763 ThenBB = Builder.GetInsertBlock(); in Codegen() 781 PN->addIncoming(ThenV, ThenBB); in Codegen()
|
| H A D | toy.cpp | 1113 BasicBlock *ThenBB = BasicBlock::Create(TheContext, "then", TheFunction); in Codegen() local 1117 Builder.CreateCondBr(CondV, ThenBB, ElseBB); in Codegen() 1120 Builder.SetInsertPoint(ThenBB); in Codegen() 1127 ThenBB = Builder.GetInsertBlock(); in Codegen() 1145 PN->addIncoming(ThenV, ThenBB); in Codegen()
|
| /llvm-project-15.0.7/llvm/examples/Kaleidoscope/Chapter6/ |
| H A D | toy.cpp | 747 BasicBlock *ThenBB = BasicBlock::Create(*TheContext, "then", TheFunction); in codegen() local 751 Builder->CreateCondBr(CondV, ThenBB, ElseBB); in codegen() 754 Builder->SetInsertPoint(ThenBB); in codegen() 762 ThenBB = Builder->GetInsertBlock(); in codegen() 781 PN->addIncoming(ThenV, ThenBB); in codegen()
|
| /llvm-project-15.0.7/llvm/examples/Kaleidoscope/MCJIT/lazy/ |
| H A D | toy-jit.cpp | 731 BasicBlock *ThenBB = BasicBlock::Create(TheContext, "then", TheFunction); in Codegen() local 735 Builder.CreateCondBr(CondV, ThenBB, ElseBB); in Codegen() 738 Builder.SetInsertPoint(ThenBB); in Codegen() 745 ThenBB = Builder.GetInsertBlock(); in Codegen() 763 PN->addIncoming(ThenV, ThenBB); in Codegen()
|
| H A D | toy.cpp | 1011 BasicBlock *ThenBB = BasicBlock::Create(TheContext, "then", TheFunction); in Codegen() local 1015 Builder.CreateCondBr(CondV, ThenBB, ElseBB); in Codegen() 1018 Builder.SetInsertPoint(ThenBB); in Codegen() 1025 ThenBB = Builder.GetInsertBlock(); in Codegen() 1043 PN->addIncoming(ThenV, ThenBB); in Codegen()
|
| /llvm-project-15.0.7/llvm/examples/Kaleidoscope/BuildingAJIT/Chapter1/ |
| H A D | toy.cpp | 848 BasicBlock *ThenBB = BasicBlock::Create(*TheContext, "then", TheFunction); in codegen() local 852 Builder->CreateCondBr(CondV, ThenBB, ElseBB); in codegen() 855 Builder->SetInsertPoint(ThenBB); in codegen() 863 ThenBB = Builder->GetInsertBlock(); in codegen() 882 PN->addIncoming(ThenV, ThenBB); in codegen()
|
| /llvm-project-15.0.7/llvm/examples/Kaleidoscope/Chapter8/ |
| H A D | toy.cpp | 853 BasicBlock *ThenBB = BasicBlock::Create(*TheContext, "then", TheFunction); in codegen() local 857 Builder->CreateCondBr(CondV, ThenBB, ElseBB); in codegen() 860 Builder->SetInsertPoint(ThenBB); in codegen() 868 ThenBB = Builder->GetInsertBlock(); in codegen() 887 PN->addIncoming(ThenV, ThenBB); in codegen()
|
| /llvm-project-15.0.7/llvm/examples/Kaleidoscope/BuildingAJIT/Chapter4/ |
| H A D | toy.cpp | 831 BasicBlock *ThenBB = BasicBlock::Create(*TheContext, "then", TheFunction); in codegen() local 835 Builder->CreateCondBr(CondV, ThenBB, ElseBB); in codegen() 838 Builder->SetInsertPoint(ThenBB); in codegen() 846 ThenBB = Builder->GetInsertBlock(); in codegen() 865 PN->addIncoming(ThenV, ThenBB); in codegen()
|
| /llvm-project-15.0.7/llvm/examples/Kaleidoscope/Chapter7/ |
| H A D | toy.cpp | 854 BasicBlock *ThenBB = BasicBlock::Create(*TheContext, "then", TheFunction); in codegen() local 858 Builder->CreateCondBr(CondV, ThenBB, ElseBB); in codegen() 861 Builder->SetInsertPoint(ThenBB); in codegen() 869 ThenBB = Builder->GetInsertBlock(); in codegen() 888 PN->addIncoming(ThenV, ThenBB); in codegen()
|
| /llvm-project-15.0.7/llvm/examples/Kaleidoscope/BuildingAJIT/Chapter2/ |
| H A D | toy.cpp | 848 BasicBlock *ThenBB = BasicBlock::Create(*TheContext, "then", TheFunction); in codegen() local 852 Builder->CreateCondBr(CondV, ThenBB, ElseBB); in codegen() 855 Builder->SetInsertPoint(ThenBB); in codegen() 863 ThenBB = Builder->GetInsertBlock(); in codegen() 882 PN->addIncoming(ThenV, ThenBB); in codegen()
|
| /llvm-project-15.0.7/llvm/examples/Kaleidoscope/BuildingAJIT/Chapter3/ |
| H A D | toy.cpp | 848 BasicBlock *ThenBB = BasicBlock::Create(*TheContext, "then", TheFunction); in codegen() local 852 Builder->CreateCondBr(CondV, ThenBB, ElseBB); in codegen() 855 Builder->SetInsertPoint(ThenBB); in codegen() 863 ThenBB = Builder->GetInsertBlock(); in codegen() 882 PN->addIncoming(ThenV, ThenBB); in codegen()
|
| /llvm-project-15.0.7/llvm/examples/Kaleidoscope/MCJIT/initial/ |
| H A D | toy.cpp | 971 BasicBlock *ThenBB = BasicBlock::Create(TheContext, "then", TheFunction); in Codegen() local 975 Builder.CreateCondBr(CondV, ThenBB, ElseBB); in Codegen() 978 Builder.SetInsertPoint(ThenBB); in Codegen() 985 ThenBB = Builder.GetInsertBlock(); in Codegen() 1003 PN->addIncoming(ThenV, ThenBB); in Codegen()
|
| /llvm-project-15.0.7/llvm/examples/Kaleidoscope/Chapter9/ |
| H A D | toy.cpp | 1022 BasicBlock *ThenBB = BasicBlock::Create(*TheContext, "then", TheFunction); in codegen() local 1026 Builder->CreateCondBr(CondV, ThenBB, ElseBB); in codegen() 1029 Builder->SetInsertPoint(ThenBB); in codegen() 1037 ThenBB = Builder->GetInsertBlock(); in codegen() 1056 PN->addIncoming(ThenV, ThenBB); in codegen()
|
| /llvm-project-15.0.7/llvm/examples/Kaleidoscope/MCJIT/complete/ |
| H A D | toy.cpp | 1191 BasicBlock *ThenBB = BasicBlock::Create(TheContext, "then", TheFunction); in Codegen() local 1195 Builder.CreateCondBr(CondV, ThenBB, ElseBB); in Codegen() 1198 Builder.SetInsertPoint(ThenBB); in Codegen() 1205 ThenBB = Builder.GetInsertBlock(); in Codegen() 1223 PN->addIncoming(ThenV, ThenBB); in Codegen()
|
| /llvm-project-15.0.7/polly/lib/CodeGen/ |
| H A D | IslNodeBuilder.cpp | 824 BasicBlock *ThenBB = BasicBlock::Create(Context, "polly.then", F); in createIf() local 827 DT.addNewBlock(ThenBB, CondBB); in createIf() 833 L->addBasicBlockToLoop(ThenBB, LI); in createIf() 841 Builder.CreateCondBr(Predicate, ThenBB, ElseBB); in createIf() 842 Builder.SetInsertPoint(ThenBB); in createIf() 846 Builder.SetInsertPoint(&ThenBB->front()); in createIf()
|
| /llvm-project-15.0.7/llvm/unittests/Frontend/ |
| H A D | OpenMPIRBuilderTest.cpp | 2331 BasicBlock *ThenBB = nullptr; in TEST_F() local 2348 ThenBB = Builder.GetInsertBlock(); in TEST_F() 2381 for (auto &FI : *ThenBB) { in TEST_F() 2408 BasicBlock *ThenBB = nullptr; in TEST_F() local 2425 ThenBB = Builder.GetInsertBlock(); in TEST_F() 2460 for (auto &FI : *ThenBB) { in TEST_F() 2900 BasicBlock *ThenBB = nullptr; in TEST_F() local 2917 ThenBB = Builder.GetInsertBlock(); in TEST_F() 2951 for (auto &FI : *ThenBB) { in TEST_F() 2990 BasicBlock *ThenBB = nullptr; in TEST_F() local [all …]
|
| /llvm-project-15.0.7/llvm/docs/tutorial/MyFirstLanguageFrontend/ |
| H A D | LangImpl05.rst | 308 BasicBlock *ThenBB = 313 Builder.CreateCondBr(CondV, ThenBB, ElseBB); 339 Builder.SetInsertPoint(ThenBB); 346 // Codegen of 'Then' can change the current block, update ThenBB for the PHI. 347 ThenBB = Builder.GetInsertBlock(); 370 we just set it to ThenBB 5 lines above? The problem is that the "Then" 406 PN->addIncoming(ThenV, ThenBB);
|
| /llvm-project-15.0.7/clang/lib/CodeGen/ |
| H A D | CGOpenMPRuntimeGPU.cpp | 1816 ThenBB, ExitBB); in shuffleAndStore() 1817 CGF.EmitBlock(ThenBB); in shuffleAndStore() 1829 PhiSrc->addIncoming(LocalPtr.getPointer(), ThenBB); in shuffleAndStore() 1830 PhiDest->addIncoming(LocalElemPtr.getPointer(), ThenBB); in shuffleAndStore() 2213 Bld.CreateCondBr(IsWarpMaster, ThenBB, ElseBB); in emitInterWarpCopyFunction() 2214 CGF.EmitBlock(ThenBB); in emitInterWarpCopyFunction() 2502 llvm::BasicBlock *ThenBB = CGF.createBasicBlock("then"); in emitShuffleAndReduceFunction() local 2505 Bld.CreateCondBr(CondReduce, ThenBB, ElseBB); in emitShuffleAndReduceFunction() 2507 CGF.EmitBlock(ThenBB); in emitShuffleAndReduceFunction() 3357 CGF.Builder.CreateCondBr(Cond, ThenBB, ExitBB); in emitReduction() [all …]
|
| H A D | CGStmtOpenMP.cpp | 1114 llvm::BasicBlock *ThenBB = nullptr; in EmitOMPLastprivateClauseFinal() local 1129 ThenBB = createBasicBlock(".omp.lastprivate.then"); in EmitOMPLastprivateClauseFinal() 1131 Builder.CreateCondBr(IsLastIterCond, ThenBB, DoneBB); in EmitOMPLastprivateClauseFinal() 1132 EmitBlock(ThenBB); in EmitOMPLastprivateClauseFinal() 1461 CGF.Builder.CreateCondBr(Cond, ThenBB, DoneBB); in emitPostUpdateForReductionClause() 1462 CGF.EmitBlock(ThenBB); in emitPostUpdateForReductionClause() 2185 llvm::BasicBlock *ThenBB = createBasicBlock(".omp.linear.pu"); in EmitOMPLinearClauseFinal() local 2187 Builder.CreateCondBr(Cond, ThenBB, DoneBB); in EmitOMPLinearClauseFinal() 2188 EmitBlock(ThenBB); in EmitOMPLinearClauseFinal() 2422 Builder.CreateCondBr(Cond, ThenBB, DoneBB); in EmitOMPSimdFinal() [all …]
|
| H A D | CGOpenMPRuntime.cpp | 12610 llvm::BasicBlock *ThenBB = CGF.createBasicBlock("lp_cond_then"); in emitLastprivateConditionalUpdate() local 12612 CGF.Builder.CreateCondBr(CmpRes, ThenBB, ExitBB); in emitLastprivateConditionalUpdate() 12614 CGF.EmitBlock(ThenBB); in emitLastprivateConditionalUpdate() 12724 llvm::BasicBlock *ThenBB = CGF.createBasicBlock("lpc.then"); in checkAndEmitSharedLastprivateConditional() local 12727 CGF.Builder.CreateCondBr(Cmp, ThenBB, DoneBB); in checkAndEmitSharedLastprivateConditional() 12728 CGF.EmitBlock(ThenBB); in checkAndEmitSharedLastprivateConditional()
|
| /llvm-project-15.0.7/llvm/lib/Transforms/Utils/ |
| H A D | SimplifyCFG.cpp | 268 bool SpeculativelyExecuteBB(BranchInst *BI, BasicBlock *ThenBB, 2653 Value *ThenV = PN.getIncomingValueForBlock(ThenBB); in validateAndCostRequiredSelects() 2738 BasicBlock *EndBB = ThenBB->getTerminator()->getSuccessor(0); in SpeculativelyExecuteBB() 2745 if (ThenBB != BI->getSuccessor(0)) { in SpeculativelyExecuteBB() 2777 for (BasicBlock::iterator BBI = ThenBB->begin(), in SpeculativelyExecuteBB() 2778 BBE = std::prev(ThenBB->end()); in SpeculativelyExecuteBB() 2808 I, BB, ThenBB, EndBB)))) in SpeculativelyExecuteBB() 2848 Convert |= validateAndCostRequiredSelects(BB, ThenBB, EndBB, in SpeculativelyExecuteBB() 2877 for (auto &I : *ThenBB) { in SpeculativelyExecuteBB() 2885 ThenBB->begin(), std::prev(ThenBB->end())); in SpeculativelyExecuteBB() [all …]
|
| /llvm-project-15.0.7/llvm/lib/Target/WebAssembly/ |
| H A D | WebAssemblyLowerEmscriptenEHSjLj.cpp | 1746 BasicBlock *ThenBB = BasicBlock::Create(C, "if.then", &F); in handleLongjmpableCallsForWasmSjLj() local 1754 IRB.CreateCondBr(Cmp, ThenBB, EndBB); in handleLongjmpableCallsForWasmSjLj() 1756 IRB.SetInsertPoint(ThenBB); in handleLongjmpableCallsForWasmSjLj()
|
| /llvm-project-15.0.7/llvm/lib/Frontend/OpenMP/ |
| H A D | OMPIRBuilder.cpp | 935 BasicBlock *ThenBB = ThenTI->getParent(); in createParallel() local 936 BasicBlock *PRegEntryBB = ThenBB->splitBasicBlock(ThenTI, "omp.par.entry"); in createParallel() 3420 auto *ThenBB = BasicBlock::Create(M.getContext(), "omp_region.body"); in emitCommonDirectiveEntry() local 3421 auto *UI = new UnreachableInst(Builder.getContext(), ThenBB); in emitCommonDirectiveEntry() 3426 CurFn->getBasicBlockList().insertAfter(EntryBB->getIterator(), ThenBB); in emitCommonDirectiveEntry() 3431 Builder.CreateCondBr(CallBool, ThenBB, ExitBB); in emitCommonDirectiveEntry() 3436 Builder.SetInsertPoint(ThenBB->getTerminator()); in emitCommonDirectiveEntry()
|
| /llvm-project-15.0.7/llvm/tools/llvm-c-test/ |
| H A D | echo.cpp | 512 LLVMBasicBlockRef ThenBB = DeclareBB(LLVMValueAsBasicBlock(Then)); in CloneInstruction() local 513 Dst = LLVMBuildCondBr(Builder, CloneValue(Cond), ThenBB, ElseBB); in CloneInstruction()
|