Home
last modified time | relevance | path

Searched refs:EntryBB (Results 1 – 25 of 33) sorted by relevance

12

/freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/Vectorize/
H A DVPlanTransforms.cpp155 auto *EntryBB = dyn_cast<VPBasicBlock>(R->getEntry()); in getPredicatedMask() local
156 if (!EntryBB || EntryBB->size() != 1 || in getPredicatedMask()
157 !isa<VPBranchOnMaskRecipe>(EntryBB->begin())) in getPredicatedMask()
160 return cast<VPBranchOnMaskRecipe>(&*EntryBB->begin())->getOperand(0); in getPredicatedMask()
165 auto *EntryBB = cast<VPBasicBlock>(R->getEntry()); in getPredicatedThenBlock() local
166 if (EntryBB->getNumSuccessors() != 2) in getPredicatedThenBlock()
169 auto *Succ0 = dyn_cast<VPBasicBlock>(EntryBB->getSuccessors()[0]); in getPredicatedThenBlock()
170 auto *Succ1 = dyn_cast<VPBasicBlock>(EntryBB->getSuccessors()[1]); in getPredicatedThenBlock()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/WebAssembly/
H A DWebAssemblyLowerGlobalDtors.cpp179 BasicBlock *EntryBB = BasicBlock::Create(C, "entry", RegisterCallDtors); in runOnModule() local
185 Value *Res = CallInst::Create(AtExit, Args, "call", EntryBB); in runOnModule()
186 Value *Cmp = new ICmpInst(*EntryBB, ICmpInst::ICMP_NE, Res, in runOnModule()
188 BranchInst::Create(FailBB, RetBB, Cmp, EntryBB); in runOnModule()
H A DWebAssemblyLowerEmscriptenEHSjLj.cpp1015 BasicBlock &EntryBB = F.getEntryBlock(); in runSjLjOnFunction() local
1016 DebugLoc FirstDL = getOrCreateDebugLoc(&*EntryBB.begin(), F.getSubprogram()); in runSjLjOnFunction()
1019 &*EntryBB.getFirstInsertionPt()); in runSjLjOnFunction()
1275 if (I->getParent() != &EntryBB) in runSjLjOnFunction()
1283 if (I->getParent() != &EntryBB) in runSjLjOnFunction()
/freebsd-13.1/contrib/llvm-project/llvm/lib/CodeGen/
H A DSjLjEHPrepare.cpp180 BasicBlock *EntryBB = &F.front(); in setupFunctionContext() local
188 Alignment, "fn_context", &EntryBB->front()); in setupFunctionContext()
217 IRBuilder<> Builder(EntryBB->getTerminator()); in setupFunctionContext()
395 BasicBlock *EntryBB = &F.front(); in setupEntryBlockAndCallSites() local
396 IRBuilder<> Builder(EntryBB->getTerminator()); in setupEntryBlockAndCallSites()
452 CallInst::Create(RegisterFn, FuncCtx, "", EntryBB->getTerminator()); in setupEntryBlockAndCallSites()
H A DMachineOutliner.cpp635 BasicBlock *EntryBB = BasicBlock::Create(C, "entry", F); in createOutlinedFunction() local
636 IRBuilder<> Builder(EntryBB); in createOutlinedFunction()
H A DBranchFolding.cpp923 MachineBasicBlock *EntryBB = in TryTailMergeBlocks() local
943 if ((MBB == EntryBB || MBB->isEHPad()) && in TryTailMergeBlocks()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DSILowerSGPRSpills.cpp185 MachineBasicBlock &EntryBB = MF.front(); in updateLiveness() local
188 EntryBB.addLiveIn(CSIReg.getReg()); in updateLiveness()
189 EntryBB.sortUniqueLiveIns(); in updateLiveness()
H A DAMDGPUPromoteAlloca.cpp185 BasicBlock &EntryBB = *F.begin(); in run() local
188 for (Instruction &I : EntryBB) { in run()
1109 BasicBlock &EntryBB = *F.begin(); in promoteAllocasToVector() local
1112 for (Instruction &I : EntryBB) { in promoteAllocasToVector()
H A DSIInsertWaitcnts.cpp1614 MachineBasicBlock &EntryBB = MF.front(); in runOnMachineFunction() local
1615 MachineBasicBlock::iterator I = EntryBB.begin(); in runOnMachineFunction()
1616 for (MachineBasicBlock::iterator E = EntryBB.end(); in runOnMachineFunction()
1619 BuildMI(EntryBB, I, DebugLoc(), TII->get(AMDGPU::S_WAITCNT)).addImm(0); in runOnMachineFunction()
1621 BuildMI(EntryBB, I, DebugLoc(), TII->get(AMDGPU::S_WAITCNT_VSCNT)) in runOnMachineFunction()
H A DAMDGPUAtomicOptimizer.cpp597 BasicBlock *const EntryBB = I.getParent(); in optimizeAtomic() local
623 PHI->addIncoming(UndefValue::get(Ty), EntryBB); in optimizeAtomic()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Frontend/OpenMP/
H A DOMPIRBuilder.cpp209 I.moveBefore(*OI.EntryBB, OI.EntryBB->getFirstInsertionPt()); in finalize()
212 OI.EntryBB->moveBefore(&ArtificialEntry); in finalize()
715 OI.EntryBB = PRegEntryBB; in createParallel()
1973 BasicBlock *EntryBB = Builder.GetInsertBlock(); in EmitOMPInlinedRegion() local
1974 Instruction *SplitPos = EntryBB->getTerminator(); in EmitOMPInlinedRegion()
1979 EntryBB->splitBasicBlock(EntryBB->getTerminator(), "omp_region.finalize"); in EmitOMPInlinedRegion()
1981 Builder.SetInsertPoint(EntryBB->getTerminator()); in EmitOMPInlinedRegion()
2038 BasicBlock *EntryBB = Builder.GetInsertBlock(); in emitCommonDirectiveEntry() local
2045 Function *CurFn = EntryBB->getParent(); in emitCommonDirectiveEntry()
2727 BlockSet.insert(EntryBB); in collectBlocks()
[all …]
/freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/
H A DControlHeightReduction.cpp712 BasicBlock *EntryBB = R->getEntry(); in getBranchInsertPoint() local
715 Instruction *HoistPoint = EntryBB->getTerminator(); in getBranchInsertPoint()
717 if (SI->getParent() == EntryBB) { in getBranchInsertPoint()
730 if (SI->getParent() == EntryBB) { in getBranchInsertPoint()
734 for (Instruction &I : *EntryBB) { in getBranchInsertPoint()
895 BasicBlock *EntryBB = R->getEntry(); in checkScopeHoistable() local
897 cast<BranchInst>(EntryBB->getTerminator()) : nullptr; in checkScopeHoistable()
958 llvm::erase_if(Selects, [EntryBB](SelectInst *SI) { in checkScopeHoistable()
959 return SI->getParent() == EntryBB; in checkScopeHoistable()
/freebsd-13.1/contrib/llvm-project/llvm/tools/bugpoint/
H A DMiscompilation.cpp877 BasicBlock *EntryBB = in CleanupAndPrepareModules() local
886 new LoadInst(F->getType(), Cache, "fpcache", EntryBB); in CleanupAndPrepareModules()
887 Value *IsNull = new ICmpInst(*EntryBB, ICmpInst::ICMP_EQ, CachedVal, in CleanupAndPrepareModules()
889 BranchInst::Create(LookupBB, DoCallBB, IsNull, EntryBB); in CleanupAndPrepareModules()
909 FuncPtr->addIncoming(CachedVal, EntryBB); in CleanupAndPrepareModules()
/freebsd-13.1/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/
H A DIRTranslator.cpp3152 MachineBasicBlock *EntryBB = MF->CreateMachineBasicBlock(); in runOnMachineFunction() local
3153 MF->push_back(EntryBB); in runOnMachineFunction()
3154 EntryBuilder->setMBB(*EntryBB); in runOnMachineFunction()
3180 EntryBB->addSuccessor(&getMBB(F.front())); in runOnMachineFunction()
3274 assert(EntryBB->succ_size() == 1 && in runOnMachineFunction()
3277 MachineBasicBlock &NewEntryBB = **EntryBB->succ_begin(); in runOnMachineFunction()
3282 NewEntryBB.splice(NewEntryBB.begin(), EntryBB, EntryBB->begin(), in runOnMachineFunction()
3283 EntryBB->end()); in runOnMachineFunction()
3291 EntryBB->removeSuccessor(&NewEntryBB); in runOnMachineFunction()
3292 MF->remove(EntryBB); in runOnMachineFunction()
[all …]
/freebsd-13.1/contrib/llvm-project/llvm/include/llvm/Frontend/OpenMP/
H A DOMPIRBuilder.h602 BasicBlock *EntryBB, *ExitBB; member
610 Function *getFunction() const { return EntryBB->getParent(); } in getFunction()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/ObjCARC/
H A DObjCARCOpts.cpp1696 BasicBlock *EntryBB = &F.getEntryBlock(); in ComputePostOrders() local
1697 BBState &MyStates = BBStates[EntryBB]; in ComputePostOrders()
1699 Instruction *EntryTI = EntryBB->getTerminator(); in ComputePostOrders()
1700 SuccStack.push_back(std::make_pair(EntryBB, succ_iterator(EntryTI))); in ComputePostOrders()
1701 Visited.insert(EntryBB); in ComputePostOrders()
1702 OnStack.insert(EntryBB); in ComputePostOrders()
/freebsd-13.1/contrib/llvm-project/clang/lib/CodeGen/
H A DCGVTables.cpp202 llvm::BasicBlock *EntryBB = &Fn->front(); in GenerateVarArgsThunk() local
204 std::find_if(EntryBB->begin(), EntryBB->end(), [&](llvm::Instruction &I) { in GenerateVarArgsThunk()
208 assert(ThisStore != EntryBB->end() && in GenerateVarArgsThunk()
H A DCGCoroutine.cpp548 auto *EntryBB = Builder.GetInsertBlock(); in EmitCoroutineBody() local
594 Phi->addIncoming(NullPtr, EntryBB); in EmitCoroutineBody()
H A DCGCUDANV.cpp510 llvm::BasicBlock *EntryBB = in makeRegisterGlobalsFn() local
513 Builder.SetInsertPoint(EntryBB); in makeRegisterGlobalsFn()
H A DCodeGenFunction.cpp962 llvm::BasicBlock *EntryBB = createBasicBlock("entry", CurFn); in StartFunction() local
968 AllocaInsertPt = new llvm::BitCastInst(Undef, Int32Ty, "allocapt", EntryBB); in StartFunction()
972 Builder.SetInsertPoint(EntryBB); in StartFunction()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/AArch64/
H A DAArch64LowerHomogeneousPrologEpilog.cpp185 BasicBlock *EntryBB = BasicBlock::Create(C, "entry", F); in createFrameHelperMachineFunction() local
186 IRBuilder<> Builder(EntryBB); in createFrameHelperMachineFunction()
/freebsd-13.1/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DLoopInfoImpl.h331 BlockT *EntryBB = &BB->getParent()->front(); in verifyLoop() local
332 for (BlockT *CB : depth_first(EntryBB)) in verifyLoop()
/freebsd-13.1/contrib/llvm-project/llvm/include/llvm/Transforms/Utils/
H A DSampleProfileLoaderBaseImpl.h432 const BasicBlockT *EntryBB = getEntryBB(EC->getParent());
433 if (EC == EntryBB) {
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86WinEHState.cpp404 BasicBlock *EntryBB = BasicBlock::Create(Context, "entry", Trampoline); in generateLSDAInEAXThunk() local
405 IRBuilder<> Builder(EntryBB); in generateLSDAInEAXThunk()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/IPO/
H A DAttributor.cpp1914 BasicBlock *EntryBB = BasicBlock::Create(Ctx, "entry", Wrapper); in createShallowWrapper() local
1923 CallInst *CI = CallInst::Create(&F, Args, "", EntryBB); in createShallowWrapper()
1926 ReturnInst::Create(Ctx, CI->getType()->isVoidTy() ? nullptr : CI, EntryBB); in createShallowWrapper()

12