Home
last modified time | relevance | path

Searched refs:SwitchInst (Results 1 – 25 of 79) sorted by relevance

1234

/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Scalar/
DLoopUnswitch.cpp105 DenseMap<const SwitchInst *, SmallPtrSet<const Value *, 8>>;
154 void setUnswitched(const SwitchInst *SI, const Value *V);
157 bool isUnswitched(const SwitchInst *SI, const Value *V);
341 void LUAnalysisCache::setUnswitched(const SwitchInst *SI, const Value *V) { in setUnswitched()
346 bool LUAnalysisCache::isUnswitched(const SwitchInst *SI, const Value *V) { in isUnswitched()
378 const SwitchInst *OldInst = I->first; in cloneData()
380 const SwitchInst *NewInst = cast_or_null<SwitchInst>(NewI); in cloneData()
750 } else if (SwitchInst *SI = dyn_cast<SwitchInst>(TI)) { in processCurrentLoop()
1105 } else if (SwitchInst *SI = dyn_cast<SwitchInst>(CurrentTerm)) { in TryTrivialLoopUnswitch()
1164 } else if (SwitchInst *SI = dyn_cast<SwitchInst>(CurrentTerm)) { in TryTrivialLoopUnswitch()
[all …]
DLowerExpectIntrinsic.cpp58 static bool handleSwitchExpect(SwitchInst &SI) { in handleSwitchExpect()
72 SwitchInst::CaseHandle Case = *SI.findCaseValue(ExpectedValue); in handleSwitchExpect()
330 } else if (SwitchInst *SI = dyn_cast<SwitchInst>(BB.getTerminator())) { in lowerExpectIntrinsic()
DLoopSimplifyCFG.cpp71 if (SwitchInst *SI = dyn_cast<SwitchInst>(TI)) { in getOnlyLiveSuccessor()
361 SwitchInst *DummySwitch = in handleDeadExits()
DSimpleLoopUnswitch.cpp589 static bool unswitchTrivialSwitch(Loop &L, SwitchInst &SI, DominatorTree &DT, in unswitchTrivialSwitch()
671 [&SI](const SwitchInst::CaseHandle &Case) { in unswitchTrivialSwitch()
693 auto *NewSI = SwitchInst::Create(LoopCond, NewPH, ExitCases.size(), OldPH); in unswitchTrivialSwitch()
901 if (auto *SI = dyn_cast<SwitchInst>(CurrentTerm)) { in unswitchAllTrivialConditions()
1925 SwitchInst *SI = BI ? nullptr : cast<SwitchInst>(&TI); in unswitchNontrivialInvariants()
2130 SwitchInst *NewSI = cast<SwitchInst>(NewTI); in unswitchNontrivialInvariants()
2572 if (auto *SI = dyn_cast<SwitchInst>(BB->getTerminator())) { in unswitchBestCondition()
DJumpThreading.cpp491 if (isa<SwitchInst>(StopAt)) in getJumpThreadDuplicationCost()
1026 } else if (SwitchInst *SI = dyn_cast<SwitchInst>(Terminator)) { in ProcessBlock()
1152 if (SwitchInst *SI = dyn_cast<SwitchInst>(BB->getTerminator())) in ProcessBlock()
1598 } else if (SwitchInst *SI = dyn_cast<SwitchInst>(BB->getTerminator())) { in ProcessThreadableEdges()
2464 bool JumpThreadingPass::TryToUnfoldSelect(SwitchInst *SI, BasicBlock *BB) { in TryToUnfoldSelect()
DTailRecursionElimination.cpp386 if (SwitchInst *SI = dyn_cast<SwitchInst>(UniquePred->getTerminator())) in isDynamicConstant()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Analysis/
DCFGPrinter.h135 if (const SwitchInst *SI = dyn_cast<SwitchInst>(Node->getTerminator())) {
142 auto Case = *SwitchInst::ConstCaseIt::fromSuccessorIndex(SI, SuccNo);
DSparsePropagation.h338 SwitchInst &SI = cast<SwitchInst>(TI); in getFeasibleSuccessors()
364 SwitchInst::CaseHandle Case = *SI.findCaseValue(cast<ConstantInt>(C)); in getFeasibleSuccessors()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/CodeGen/
DSwitchLoweringUtils.h267 void findJumpTables(CaseClusterVector &Clusters, const SwitchInst *SI,
272 unsigned Last, const SwitchInst *SI,
276 void findBitTestClusters(CaseClusterVector &Clusters, const SwitchInst *SI);
281 const SwitchInst *SI, CaseCluster &BTCluster);
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Transforms/Utils/
DPredicateInfo.h180 SwitchInst *Switch;
182 Value *CaseValue, SwitchInst *SI) in PredicateSwitch()
234 void processSwitch(SwitchInst *, BasicBlock *, SmallVectorImpl<Value *> &);
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Utils/
DLowerSwitch.cpp102 void processSwitchInst(SwitchInst *SI,
114 unsigned Clusterify(CaseVector &Cases, SwitchInst *SI);
170 if (SwitchInst *SI = dyn_cast<SwitchInst>(Cur->getTerminator())) { in runOnFunction()
400 unsigned LowerSwitch::Clusterify(CaseVector& Cases, SwitchInst *SI) { in Clusterify()
441 void LowerSwitch::processSwitchInst(SwitchInst *SI, in processSwitchInst()
DSimplifyCFG.cpp201 bool SimplifySwitch(SwitchInst *SI, IRBuilder<> &Builder);
684 if (SwitchInst *SI = dyn_cast<SwitchInst>(TI)) { in EraseTerminatorAndDCECond()
702 if (SwitchInst *SI = dyn_cast<SwitchInst>(TI)) { in isValueEqualityComparison()
729 if (SwitchInst *SI = dyn_cast<SwitchInst>(TI)) { in GetValueEqualityComparisonCases()
789 static void setBranchWeights(SwitchInst *SI, ArrayRef<uint32_t> Weights) { in setBranchWeights()
870 SwitchInstProfUpdateWrapper SI = *cast<SwitchInst>(TI); in SimplifyEqualityComparisonWithOnlyPredecessor()
879 for (SwitchInst::CaseIt i = SI->case_end(), e = SI->case_begin(); i != e;) { in SimplifyEqualityComparisonWithOnlyPredecessor()
1177 SwitchInst *NewSI = in FoldValueComparisonIntoPredecessors()
1759 else if ((isa<BranchInst>(T) || isa<SwitchInst>(T)) && !Cond) in SinkCommonCodeFromPredecessors()
3580 static bool SimplifySwitchOnSelect(SwitchInst *SI, SelectInst *Select) { in SimplifySwitchOnSelect()
[all …]
DCloneFunction.cpp403 } else if (const SwitchInst *SI = dyn_cast<SwitchInst>(OldTI)) { in CloneBlock()
411 SwitchInst::ConstCaseHandle Case = *SI->findCaseValue(Cond); in CloneBlock()
DEvaluator.cpp620 } else if (SwitchInst *SI = dyn_cast<SwitchInst>(CurInst)) { in EvaluateBlock()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/IR/
DInstructions.h3125 class SwitchInst : public Instruction {
3132 SwitchInst(const SwitchInst &SI);
3138 SwitchInst(Value *Value, BasicBlock *Default, unsigned NumCases,
3145 SwitchInst(Value *Value, BasicBlock *Default, unsigned NumCases,
3160 SwitchInst *cloneImpl() const;
3176 friend class SwitchInst::CaseIteratorImpl<
3223 CaseHandleImpl<const SwitchInst, const ConstantInt, const BasicBlock>;
3226 : public CaseHandleImpl<SwitchInst, ConstantInt, BasicBlock> {
3227 friend class SwitchInst::CaseIteratorImpl<CaseHandle>;
3230 CaseHandle(SwitchInst *SI, ptrdiff_t Index) : CaseHandleImpl(SI, Index) {}
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/
DSwitchLoweringUtils.cpp44 const SwitchInst *SI, in findJumpTables()
189 const SwitchInst *SI, in buildJumpTable()
263 const SwitchInst *SI) { in findBitTestClusters()
363 const SwitchInst *SI, in buildBitTests()
DIndirectBrExpandPass.cpp212 auto *SI = SwitchInst::Create(SwitchValue, BBs[0], BBs.size(), SwitchBB); in runOnFunction()
DTypePromotion.cpp266 if (auto *Switch = dyn_cast<SwitchInst>(V)) in isSink()
591 if (auto *Switch = dyn_cast<SwitchInst>(I)) { in TruncateSinks()
686 } else if (auto *Switch = dyn_cast<SwitchInst>(I)) in Mutate()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/IR/
DInstructions.cpp3788 void SwitchInst::init(Value *Value, BasicBlock *Default, unsigned NumReserved) { in init()
3802 SwitchInst::SwitchInst(Value *Value, BasicBlock *Default, unsigned NumCases, in SwitchInst() function in SwitchInst
3813 SwitchInst::SwitchInst(Value *Value, BasicBlock *Default, unsigned NumCases, in SwitchInst() function in SwitchInst
3820 SwitchInst::SwitchInst(const SwitchInst &SI) in SwitchInst() function in SwitchInst
3835 void SwitchInst::addCase(ConstantInt *OnVal, BasicBlock *Dest) { in addCase()
3850 SwitchInst::CaseIt SwitchInst::removeCase(CaseIt I) { in removeCase()
3875 void SwitchInst::growOperands() { in growOperands()
3884 SwitchInstProfUpdateWrapper::getProfBranchWeightsMD(const SwitchInst &SI) { in getProfBranchWeightsMD()
3929 SwitchInst::CaseIt
3930 SwitchInstProfUpdateWrapper::removeCase(SwitchInst::CaseIt I) { in removeCase()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/SelectionDAG/
DSelectionDAGBuilder.h82 class SwitchInst; variable
182 peelDominantCaseCluster(const SwitchInst &SI,
653 void visitSwitch(const SwitchInst &I);
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Transforms/Scalar/
DJumpThreading.h155 bool TryToUnfoldSelect(SwitchInst *SI, BasicBlock *BB);
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/IPO/
DCrossDSOCFI.cpp142 SwitchInst *SI = IRB.CreateSwitch(&CallSiteTypeId, TrapBB, TypeIds.size()); in buildCFICheck()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Coroutines/
DCoroInternal.h114 SwitchInst *ResumeSwitch;
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/Lanai/
DLanaiAsmPrinter.cpp223 if (isa<SwitchInst>(B->getTerminator())) in isBlockOnlyReachableByFallthrough()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/ExecutionEngine/Interpreter/
DInterpreter.h124 void visitSwitchInst(SwitchInst &I);

1234