Home
last modified time | relevance | path

Searched refs:CurBB (Results 1 – 22 of 22) sorted by relevance

/freebsd-11-stable/contrib/llvm-project/llvm/lib/Analysis/
HDPHITransAddr.cpp143 Value *PHITransAddr::PHITranslateSubExpr(Value *V, BasicBlock *CurBB, in PHITranslateSubExpr() argument
155 if (Inst->getParent() != CurBB) { in PHITranslateSubExpr()
189 Value *PHIIn = PHITranslateSubExpr(Cast->getOperand(0), CurBB, PredBB, DT); in PHITranslateSubExpr()
218 Value *GEPOp = PHITranslateSubExpr(GEP->getOperand(i), CurBB, PredBB, DT); in PHITranslateSubExpr()
243 GEPI->getParent()->getParent() == CurBB->getParent() && in PHITranslateSubExpr()
260 Value *LHS = PHITranslateSubExpr(Inst->getOperand(0), CurBB, PredBB, DT); in PHITranslateSubExpr()
295 BO->getParent()->getParent() == CurBB->getParent() && in PHITranslateSubExpr()
312 bool PHITransAddr::PHITranslateValue(BasicBlock *CurBB, BasicBlock *PredBB, in PHITranslateValue() argument
319 PHITranslateSubExpr(Addr, CurBB, PredBB, MustDominate ? DT : nullptr); in PHITranslateValue()
341 PHITranslateWithInsertion(BasicBlock *CurBB, BasicBlock *PredBB, in PHITranslateWithInsertion() argument
[all …]
/freebsd-11-stable/contrib/llvm-project/llvm/include/llvm/Analysis/
HDPHITransAddr.h81 bool PHITranslateValue(BasicBlock *CurBB, BasicBlock *PredBB,
91 Value *PHITranslateWithInsertion(BasicBlock *CurBB, BasicBlock *PredBB,
103 Value *PHITranslateSubExpr(Value *V, BasicBlock *CurBB, BasicBlock *PredBB,
111 Value *InsertPHITranslatedSubExpr(Value *InVal, BasicBlock *CurBB,
/freebsd-11-stable/contrib/llvm-project/llvm/lib/CodeGen/
HDMachineSink.cpp1143 getSingleLiveInSuccBB(MachineBasicBlock &CurBB, in getSingleLiveInSuccBB() argument
1162 for (auto *SI : CurBB.successors()) { in getSingleLiveInSuccBB()
1170 getSingleLiveInSuccBB(MachineBasicBlock &CurBB, in getSingleLiveInSuccBB() argument
1177 getSingleLiveInSuccBB(CurBB, SinkableBBs, DefReg, TRI); in getSingleLiveInSuccBB()
1185 static void clearKillFlags(MachineInstr *MI, MachineBasicBlock &CurBB, in clearKillFlags() argument
1194 for (MachineInstr &UI : make_range(NI, CurBB.end())) { in clearKillFlags()
1267 bool PostRAMachineSinking::tryToSinkCopy(MachineBasicBlock &CurBB, in tryToSinkCopy() argument
1275 for (MachineBasicBlock *SI : CurBB.successors()) in tryToSinkCopy()
1290 for (auto I = CurBB.rbegin(), E = CurBB.rend(); I != E;) { in tryToSinkCopy()
1341 getSingleLiveInSuccBB(CurBB, SinkableBBs, DefedRegsInCopy, TRI); in tryToSinkCopy()
[all …]
HDPrologEpilogInserter.cpp492 const MachineBasicBlock *CurBB = WorkList.pop_back_val(); in updateLiveness() local
495 if (CurBB == Save && Save != Restore) in updateLiveness()
499 for (MachineBasicBlock *SuccBB : CurBB->successors()) in updateLiveness()
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Transforms/Utils/
HDEscapeEnumerator.cpp35 BasicBlock *CurBB = &*StateBB++; in Next() local
39 Instruction *TI = CurBB->getTerminator(); in Next()
HDEvaluator.cpp693 BasicBlock *CurBB = &F->front(); in EvaluateFunction() local
695 BasicBlock::iterator CurInst = CurBB->begin(); in EvaluateFunction()
699 LLVM_DEBUG(dbgs() << "Trying to evaluate BB: " << *CurBB << "\n"); in EvaluateFunction()
707 ReturnInst *RI = cast<ReturnInst>(CurBB->getTerminator()); in EvaluateFunction()
726 setVal(PN, getVal(PN->getIncomingValueForBlock(CurBB))); in EvaluateFunction()
729 CurBB = NextBB; in EvaluateFunction()
HDInlineFunction.cpp2166 auto *CurBB = RI->getParent(); in InlineFunction() local
2178 IRBuilder<> Builder(CurBB); in InlineFunction()
2215 BasicBlock *CurBB = RI->getParent(); in InlineFunction() local
2222 IRBuilder<> Builder(CurBB); in InlineFunction()
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Transforms/Scalar/
HDGuardWidening.cpp343 auto *CurBB = DFSI.getPath(i)->getBlock(); in eliminateInstrViaWidening() local
344 if (!BlockFilter(CurBB)) in eliminateInstrViaWidening()
346 assert(GuardsInBlock.count(CurBB) && "Must have been populated by now!"); in eliminateInstrViaWidening()
347 const auto &GuardsInCurBB = GuardsInBlock.find(CurBB)->second; in eliminateInstrViaWidening()
350 auto E = Instr->getParent() == CurBB in eliminateInstrViaWidening()
357 for (auto &I : *CurBB) { in eliminateInstrViaWidening()
368 assert((i == (e - 1)) == (Instr->getParent() == CurBB) && "Bad DFS?"); in eliminateInstrViaWidening()
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Target/AArch64/
HDAArch64PromoteConstant.cpp406 BasicBlock *CurBB = IPI->first->getParent(); in tryAndMerge() local
407 if (NewBB == CurBB) { in tryAndMerge()
419 BasicBlock *CommonDominator = DT.findNearestCommonDominator(NewBB, CurBB); in tryAndMerge()
426 assert(CommonDominator != CurBB && in tryAndMerge()
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Target/AMDGPU/
HDSIOptimizeExecMaskingPreRA.cpp335 auto CurBB = Blocks.pop_back_val(); in runOnMachineFunction() local
336 auto I = CurBB->rbegin(), E = CurBB->rend(); in runOnMachineFunction()
374 for (auto *Pred : CurBB->predecessors()) { in runOnMachineFunction()
/freebsd-11-stable/contrib/llvm-project/llvm/lib/ExecutionEngine/Interpreter/
HDInterpreter.h62 BasicBlock *CurBB; // The currently executing BB member
70 ExecutionContext() : CurFunction(nullptr), CurBB(nullptr), CurInst(nullptr) {} in ExecutionContext()
HDExecution.cpp984 BasicBlock *PrevBB = SF.CurBB; // Remember where we came from... in SwitchToNewBasicBlock()
985 SF.CurBB = Dest; // Update CurBB to branch destination in SwitchToNewBasicBlock()
986 SF.CurInst = SF.CurBB->begin(); // Update new instruction ptr... in SwitchToNewBasicBlock()
1004 SF.CurInst = SF.CurBB->begin(); in SwitchToNewBasicBlock()
2141 StackFrame.CurBB = &F->front(); in callFunction()
2142 StackFrame.CurInst = StackFrame.CurBB->begin(); in callFunction()
/freebsd-11-stable/contrib/llvm-project/llvm/include/llvm/IR/
HDValue.h643 const Value *DoPHITranslation(const BasicBlock *CurBB,
645 Value *DoPHITranslation(const BasicBlock *CurBB, const BasicBlock *PredBB) { in DoPHITranslation() argument
647 static_cast<const Value *>(this)->DoPHITranslation(CurBB, PredBB)); in DoPHITranslation()
/freebsd-11-stable/contrib/llvm-project/clang/lib/CodeGen/
HDCGStmt.cpp474 llvm::BasicBlock *CurBB = Builder.GetInsertBlock(); in EmitBlock() local
486 if (CurBB && CurBB->getParent()) in EmitBlock()
487 CurFn->getBasicBlockList().insertAfter(CurBB->getIterator(), BB); in EmitBlock()
497 llvm::BasicBlock *CurBB = Builder.GetInsertBlock(); in EmitBranch() local
499 if (!CurBB || CurBB->getTerminator()) { in EmitBranch()
627 llvm::BasicBlock *CurBB = Builder.GetInsertBlock(); in EmitIndirectGotoStmt() local
634 cast<llvm::PHINode>(IndGotoBB->begin())->addIncoming(V, CurBB); in EmitIndirectGotoStmt()
HDCodeGenFunction.cpp294 llvm::BasicBlock *CurBB = Builder.GetInsertBlock(); in EmitReturnBlock() local
296 if (CurBB) { in EmitReturnBlock()
297 assert(!CurBB->getTerminator() && "Unexpected terminated block."); in EmitReturnBlock()
301 if (CurBB->empty() || ReturnBlock.getBlock()->use_empty()) { in EmitReturnBlock()
302 ReturnBlock.getBlock()->replaceAllUsesWith(CurBB); in EmitReturnBlock()
HDCGAtomic.cpp1833 auto *CurBB = CGF.Builder.GetInsertBlock(); in EmitAtomicUpdateOp() local
1837 PHI->addIncoming(OldVal, CurBB); in EmitAtomicUpdateOp()
1915 auto *CurBB = CGF.Builder.GetInsertBlock(); in EmitAtomicUpdateOp() local
1919 PHI->addIncoming(OldVal, CurBB); in EmitAtomicUpdateOp()
/freebsd-11-stable/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/
HDSelectionDAGBuilder.h546 MachineBasicBlock *FBB, MachineBasicBlock *CurBB,
552 MachineBasicBlock *CurBB,
HDSelectionDAGBuilder.cpp2056 MachineBasicBlock *CurBB, in EmitBranchForMergedCondition() argument
2061 const BasicBlock *BB = CurBB->getBasicBlock(); in EmitBranchForMergedCondition()
2069 if (CurBB == SwitchBB || in EmitBranchForMergedCondition()
2087 TBB, FBB, CurBB, getCurSDLoc(), TProb, FProb); in EmitBranchForMergedCondition()
2096 nullptr, TBB, FBB, CurBB, getCurSDLoc(), TProb, FProb); in EmitBranchForMergedCondition()
2103 MachineBasicBlock *CurBB, in FindMergedConditions() argument
2113 InBlock(NotCond, CurBB->getBasicBlock())) { in FindMergedConditions()
2114 FindMergedConditions(NotCond, TBB, FBB, CurBB, SwitchBB, Opc, TProb, FProb, in FindMergedConditions()
2139 BOp->getParent() != CurBB->getBasicBlock() || in FindMergedConditions()
2140 !InBlock(BOp->getOperand(0), CurBB->getBasicBlock()) || in FindMergedConditions()
[all …]
/freebsd-11-stable/contrib/llvm-project/llvm/lib/IR/
HDValue.cpp736 const Value *Value::DoPHITranslation(const BasicBlock *CurBB, in DoPHITranslation() argument
739 if (PN && PN->getParent() == CurBB) in DoPHITranslation()
HDCore.cpp2640 BasicBlock *CurBB = unwrap(Builder)->GetInsertBlock(); in LLVMInsertExistingBasicBlockAfterInsertBlock() local
2641 assert(CurBB && "current insertion point is invalid!"); in LLVMInsertExistingBasicBlockAfterInsertBlock()
2642 CurBB->getParent()->getBasicBlockList().insertAfter(CurBB->getIterator(), in LLVMInsertExistingBasicBlockAfterInsertBlock()
/freebsd-11-stable/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/
HDIRTranslator.cpp398 MachineBasicBlock &CurBB = MIRBuilder.getMBB(); in translateBr() local
401 if (!CurBB.isLayoutSuccessor(&TgtBB)) in translateBr()
406 CurBB.addSuccessor(&getMBB(*Succ)); in translateBr()
845 MachineBasicBlock &CurBB = MIRBuilder.getMBB(); in translateIndirectBr() local
847 CurBB.addSuccessor(&getMBB(*Succ)); in translateIndirectBr()
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Bitcode/Reader/
HDBitcodeReader.cpp3717 BasicBlock *CurBB = nullptr; in parseFunctionBody() local
3722 if (CurBB && !CurBB->empty()) in parseFunctionBody()
3723 return &CurBB->back(); in parseFunctionBody()
3825 CurBB = FunctionBBs[0]; in parseFunctionBody()
3941 assert(CurBB && "No current BB?"); in parseFunctionBody()
3942 CurBB->getInstList().push_back(Temp); in parseFunctionBody()
4942 CurBB->getInstList().push_back(I); in parseFunctionBody()
5140 if (!CurBB) { in parseFunctionBody()
5148 CurBB->getInstList().push_back(I); in parseFunctionBody()
5153 CurBB = CurBBNo < FunctionBBs.size() ? FunctionBBs[CurBBNo] : nullptr; in parseFunctionBody()