Home
last modified time | relevance | path

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

12

/openbsd-src/gnu/llvm/llvm/lib/Transforms/Vectorize/
H A DVPlanTransforms.cpp199 auto *EntryBB = dyn_cast<VPBasicBlock>(R->getEntry()); in getPredicatedMask() local
200 if (!EntryBB || EntryBB->size() != 1 || in getPredicatedMask()
201 !isa<VPBranchOnMaskRecipe>(EntryBB->begin())) in getPredicatedMask()
204 return cast<VPBranchOnMaskRecipe>(&*EntryBB->begin())->getOperand(0); in getPredicatedMask()
209 auto *EntryBB = cast<VPBasicBlock>(R->getEntry()); in getPredicatedThenBlock() local
210 if (EntryBB->getNumSuccessors() != 2) in getPredicatedThenBlock()
213 auto *Succ0 = dyn_cast<VPBasicBlock>(EntryBB->getSuccessors()[0]); in getPredicatedThenBlock()
214 auto *Succ1 = dyn_cast<VPBasicBlock>(EntryBB->getSuccessors()[1]); in getPredicatedThenBlock()
/openbsd-src/gnu/llvm/llvm/lib/Transforms/Utils/
H A DLowerGlobalDtors.cpp192 BasicBlock *EntryBB = BasicBlock::Create(C, "entry", RegisterCallDtors); in runImpl() local
198 Value *Res = CallInst::Create(AtExit, Args, "call", EntryBB); in runImpl()
199 Value *Cmp = new ICmpInst(*EntryBB, ICmpInst::ICMP_NE, Res, in runImpl()
201 BranchInst::Create(FailBB, RetBB, Cmp, EntryBB); in runImpl()
H A DModuleUtils.cpp215 auto *EntryBB = BasicBlock::Create(M.getContext(), "entry", Ctor, RetBB); in createSanitizerCtorAndInitFunctions() local
221 IRB.SetInsertPoint(EntryBB); in createSanitizerCtorAndInitFunctions()
/openbsd-src/gnu/llvm/llvm/lib/Target/SPIRV/
H A DSPIRVPrepareFunctions.cpp183 BasicBlock *EntryBB = BasicBlock::Create(M->getContext(), "entry", F); in lowerIntrinsicToFunction() local
184 IRBuilder<> IRB(EntryBB); in lowerIntrinsicToFunction()
193 BasicBlock *EntryBB = BasicBlock::Create(M->getContext(), "entry", F); in lowerIntrinsicToFunction() local
194 IRBuilder<> IRB(EntryBB); in lowerIntrinsicToFunction()
273 BasicBlock *EntryBB = BasicBlock::Create(M->getContext(), "entry", UMulFunc); in buildUMulWithOverflowFunc() local
274 IRBuilder<> IRB(EntryBB); in buildUMulWithOverflowFunc()
/openbsd-src/gnu/llvm/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 DJMCInstrumenter.cpp140 BasicBlock *EntryBB = BasicBlock::Create(Ctx, "", DefaultCheckFunc); in createDefaultCheckFunction() local
141 ReturnInst::Create(Ctx, EntryBB); in createDefaultCheckFunction()
/openbsd-src/gnu/llvm/llvm/lib/FuzzMutate/
H A DRandomIRBuilder.cpp79 BasicBlock *EntryBB = &F->getEntryBlock(); in newSource() local
83 EntryBB->getTerminator()); in newSource()
84 new StoreInst(newSrc, Alloca, EntryBB->getTerminator()); in newSource()
/openbsd-src/gnu/llvm/llvm/examples/OrcV2Examples/OrcV2CBindingsBasicUsage/
H A DOrcV2CBindingsBasicUsage.c43 LLVMBasicBlockRef EntryBB = LLVMAppendBasicBlock(SumFunction, "entry"); in createDemoModule() local
47 LLVMPositionBuilderAtEnd(Builder, EntryBB); in createDemoModule()
/openbsd-src/gnu/llvm/llvm/examples/OrcV2Examples/OrcV2CBindingsDumpObjects/
H A DOrcV2CBindingsDumpObjects.c42 LLVMBasicBlockRef EntryBB = LLVMAppendBasicBlock(SumFunction, "entry"); in createDemoModule() local
44 LLVMPositionBuilderAtEnd(Builder, EntryBB); in createDemoModule()
/openbsd-src/gnu/llvm/llvm/examples/OrcV2Examples/OrcV2CBindingsAddObjectFile/
H A DOrcV2CBindingsAddObjectFile.c38 LLVMBasicBlockRef EntryBB = LLVMAppendBasicBlock(SumFunction, "entry"); in createDemoModule() local
42 LLVMPositionBuilderAtEnd(Builder, EntryBB); in createDemoModule()
/openbsd-src/gnu/llvm/llvm/examples/OrcV2Examples/OrcV2CBindingsIRTransforms/
H A DOrcV2CBindingsIRTransforms.c43 LLVMBasicBlockRef EntryBB = LLVMAppendBasicBlock(SumFunction, "entry"); in createDemoModule() local
45 LLVMPositionBuilderAtEnd(Builder, EntryBB); in createDemoModule()
/openbsd-src/gnu/llvm/llvm/examples/OrcV2Examples/OrcV2CBindingsRemovableCode/
H A DOrcV2CBindingsRemovableCode.c43 LLVMBasicBlockRef EntryBB = LLVMAppendBasicBlock(SumFunction, "entry"); in createDemoModule() local
47 LLVMPositionBuilderAtEnd(Builder, EntryBB); in createDemoModule()
/openbsd-src/gnu/llvm/llvm/examples/OrcV2Examples/OrcV2CBindingsReflectProcessSymbols/
H A DOrcV2CBindingsReflectProcessSymbols.c74 LLVMBasicBlockRef EntryBB = LLVMAppendBasicBlock(MulAddFunction, "entry"); in createDemoModule() local
78 LLVMPositionBuilderAtEnd(Builder, EntryBB); in createDemoModule()
/openbsd-src/gnu/llvm/llvm/lib/Target/AMDGPU/
H A DSILowerSGPRSpills.cpp193 MachineBasicBlock &EntryBB = MF.front(); in updateLiveness() local
196 EntryBB.addLiveIn(CSIReg.getReg()); in updateLiveness()
197 EntryBB.sortUniqueLiveIns(); in updateLiveness()
H A DAMDGPUPromoteAlloca.cpp191 BasicBlock &EntryBB = *F.begin(); in run() local
194 for (Instruction &I : EntryBB) { in run()
1191 BasicBlock &EntryBB = *F.begin(); in promoteAllocasToVector() local
1194 for (Instruction &I : EntryBB) { in promoteAllocasToVector()
H A DSIInsertWaitcnts.cpp1810 MachineBasicBlock &EntryBB = MF.front(); in runOnMachineFunction() local
1811 MachineBasicBlock::iterator I = EntryBB.begin(); in runOnMachineFunction()
1812 for (MachineBasicBlock::iterator E = EntryBB.end(); in runOnMachineFunction()
1815 BuildMI(EntryBB, I, DebugLoc(), TII->get(AMDGPU::S_WAITCNT)).addImm(0); in runOnMachineFunction()
1817 BuildMI(EntryBB, I, DebugLoc(), TII->get(AMDGPU::S_WAITCNT_VSCNT)) in runOnMachineFunction()
/openbsd-src/gnu/llvm/llvm/include/llvm/Transforms/Utils/
H A DSampleProfileLoaderBaseImpl.h459 const BasicBlockT *EntryBB = getEntryBB(EC->getParent());
460 if (EC == EntryBB) {
922 const BasicBlockT *EntryBB = getEntryBB(&F);
923 ErrorOr<uint64_t> EntryWeight = getBlockWeight(EntryBB);
924 if (BlockWeights[EntryBB] > 0) {
926 ProfileCount(BlockWeights[EntryBB], Function::PCT_Real),
/openbsd-src/gnu/llvm/llvm/examples/OrcV2Examples/OrcV2CBindingsMCJITLikeMemoryManager/
H A DOrcV2CBindingsMCJITLikeMemoryManager.c171 LLVMBasicBlockRef EntryBB = LLVMAppendBasicBlock(SumFunction, "entry"); in createDemoModule() local
175 LLVMPositionBuilderAtEnd(Builder, EntryBB); in createDemoModule()
/openbsd-src/gnu/llvm/clang/tools/clang-linker-wrapper/
H A DOffloadWrapper.cpp417 auto *EntryBB = BasicBlock::Create(C, "while.entry", RegGlobalsFn); in createRegisterGlobalsFunction() local
428 Builder.CreateCondBr(EntryCmp, EntryBB, ExitBB); in createRegisterGlobalsFunction()
429 Builder.SetInsertPoint(EntryBB); in createRegisterGlobalsFunction()
509 Builder.CreateCondBr(Cmp, ExitBB, EntryBB); in createRegisterGlobalsFunction()
/openbsd-src/gnu/llvm/llvm/lib/Transforms/Instrumentation/
H A DControlHeightReduction.cpp681 BasicBlock *EntryBB = R->getEntry(); in getBranchInsertPoint() local
684 Instruction *HoistPoint = EntryBB->getTerminator(); in getBranchInsertPoint()
686 if (SI->getParent() == EntryBB) { in getBranchInsertPoint()
699 if (SI->getParent() == EntryBB) { in getBranchInsertPoint()
703 for (Instruction &I : *EntryBB) { in getBranchInsertPoint()
876 BasicBlock *EntryBB = R->getEntry(); in checkScopeHoistable() local
878 cast<BranchInst>(EntryBB->getTerminator()) : nullptr; in checkScopeHoistable()
939 llvm::erase_if(Selects, [EntryBB](SelectInst *SI) { in checkScopeHoistable()
940 return SI->getParent() == EntryBB; in checkScopeHoistable()
/openbsd-src/gnu/llvm/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()
/openbsd-src/gnu/llvm/llvm/lib/Frontend/OpenMP/
H A DOMPIRBuilder.cpp479 LLVM_DEBUG(dbgs() << "Entry " << OI.EntryBB->getName() in finalize()
503 assert(ArtificialEntry.getUniqueSuccessor() == OI.EntryBB); in finalize()
504 assert(OI.EntryBB->getUniquePredecessor() == &ArtificialEntry); in finalize()
521 I.moveBefore(*OI.EntryBB, OI.EntryBB->getFirstInsertionPt()); in finalize()
524 OI.EntryBB->moveBefore(&ArtificialEntry); in finalize()
527 assert(&OutlinedFn->getEntryBlock() == OI.EntryBB); in finalize()
940 BasicBlock *EntryBB = UI->getParent(); in createParallel() local
941 BasicBlock *PRegEntryBB = EntryBB->splitBasicBlock(UI, "omp.par.entry"); in createParallel()
1098 OI.EntryBB = PRegEntryBB; in createParallel()
1315 OI.EntryBB = TaskAllocaBB; in createTask()
[all …]
/openbsd-src/gnu/llvm/llvm/lib/CodeGen/GlobalISel/
H A DIRTranslator.cpp3449 MachineBasicBlock *EntryBB = MF->CreateMachineBasicBlock(); in runOnMachineFunction() local
3450 MF->push_back(EntryBB); in runOnMachineFunction()
3451 EntryBuilder->setMBB(*EntryBB); in runOnMachineFunction()
3477 EntryBB->addSuccessor(&getMBB(F.front())); in runOnMachineFunction()
3497 SwiftError.setCurrentVReg(EntryBB, SwiftError.getFunctionArg(), VRegs[0]); in runOnMachineFunction()
3577 assert(EntryBB->succ_size() == 1 && in runOnMachineFunction()
3580 MachineBasicBlock &NewEntryBB = **EntryBB->succ_begin(); in runOnMachineFunction()
3585 NewEntryBB.splice(NewEntryBB.begin(), EntryBB, EntryBB->begin(), in runOnMachineFunction()
3586 EntryBB->end()); in runOnMachineFunction()
3589 for (const MachineBasicBlock::RegisterMaskPair &LiveIn : EntryBB->liveins()) in runOnMachineFunction()
[all …]
/openbsd-src/gnu/llvm/llvm/lib/Transforms/ObjCARC/
H A DObjCARCOpts.cpp1651 BasicBlock *EntryBB = &F.getEntryBlock(); in ComputePostOrders() local
1652 BBState &MyStates = BBStates[EntryBB]; in ComputePostOrders()
1654 Instruction *EntryTI = EntryBB->getTerminator(); in ComputePostOrders()
1655 SuccStack.push_back(std::make_pair(EntryBB, succ_iterator(EntryTI))); in ComputePostOrders()
1656 Visited.insert(EntryBB); in ComputePostOrders()
1657 OnStack.insert(EntryBB); in ComputePostOrders()
/openbsd-src/gnu/llvm/llvm/lib/Target/AArch64/
H A DAArch64LowerHomogeneousPrologEpilog.cpp186 BasicBlock *EntryBB = BasicBlock::Create(C, "entry", F); in createFrameHelperMachineFunction() local
187 IRBuilder<> Builder(EntryBB); in createFrameHelperMachineFunction()

12