Home
last modified time | relevance | path

Searched refs:NumCases (Results 1 – 20 of 20) sorted by relevance

/third_party/skia/third_party/externals/swiftshader/third_party/subzero/src/
DIceSwitchLowering.cpp26 const SizeT NumCases = Instr->getNumCases(); in clusterizeSwitch() local
28 CaseClusters.reserve(NumCases); in clusterizeSwitch()
31 CaseClusters.reserve(NumCases); in clusterizeSwitch()
32 for (SizeT I = 0; I < NumCases; ++I) in clusterizeSwitch()
70 if (NumCases * 2 <= Range) in clusterizeSwitch()
DIceInst.cpp496 InstSwitch::InstSwitch(Cfg *Func, SizeT NumCases, Operand *Source, in InstSwitch() argument
499 NumCases(NumCases) { in InstSwitch()
501 Values = Func->allocateArrayOf<uint64_t>(NumCases); in InstSwitch()
502 Labels = Func->allocateArrayOf<CfgNode *>(NumCases); in InstSwitch()
504 for (SizeT I = 0; I < NumCases; ++I) { in InstSwitch()
511 assert(CaseIndex < NumCases); in addBranch()
518 OutEdges.reserve(NumCases + 1); in getTerminatorEdges()
521 for (SizeT I = 0; I < NumCases; ++I) { in getTerminatorEdges()
540 for (SizeT I = 0; I < NumCases; ++I) { in repointEdges()
DIceInst.h784 static InstSwitch *create(Cfg *Func, SizeT NumCases, Operand *Source, in create() argument
787 InstSwitch(Func, NumCases, Source, LabelDefault); in create()
791 SizeT getNumCases() const { return NumCases; } in getNumCases()
793 assert(I < NumCases); in getValue()
797 assert(I < NumCases); in getLabel()
808 InstSwitch(Cfg *Func, SizeT NumCases, Operand *Source, CfgNode *LabelDefault);
816 SizeT NumCases; /// not including the default case variable
DIceConverter.cpp540 unsigned NumCases = Instr->getNumCases(); in convertSwitchInstruction() local
542 Ice::InstSwitch::create(Func.get(), NumCases, Source, LabelDefault); in convertSwitchInstruction()
DPNaClTranslator.cpp2502 uint32_t NumCases = NumCasesRaw; in ProcessRecord() local
2505 if (!isValidRecordSize(4 + NumCases * 4, "switch")) in ProcessRecord()
2508 Ice::InstSwitch::create(Func.get(), NumCases, Cond, DefaultLabel)); in ProcessRecord()
2510 for (uint32_t CaseIndex = 0; CaseIndex < NumCases; in ProcessRecord()
DIceTargetLoweringARM32.cpp5988 SizeT NumCases = Instr->getNumCases(); in lowerSwitch() local
5993 for (SizeT I = 0; I < NumCases; ++I) { in lowerSwitch()
6019 for (SizeT I = 0; I < NumCases; ++I) { in lowerSwitch()
DIceTargetLoweringMIPS32.cpp5573 SizeT NumCases = Instr->getNumCases(); in lowerSwitch() local
5578 for (SizeT I = 0; I < NumCases; ++I) { in lowerSwitch()
5596 for (SizeT I = 0; I < NumCases; ++I) { in lowerSwitch()
DIceTargetLoweringX8632.cpp6606 SizeT NumCases = Instr->getNumCases(); in lowerSwitch() local
6607 if (NumCases >= 2) { in lowerSwitch()
6614 for (SizeT I = 0; I < NumCases; ++I) { in lowerSwitch()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/
DSwitchLoweringUtils.cpp38 uint64_t NumCases = in getJumpTableNumCases() local
40 return NumCases; in getJumpTableNumCases()
80 uint64_t NumCases = getJumpTableNumCases(TotalCases, 0, N - 1); in findJumpTables() local
81 assert(NumCases < UINT64_MAX / 100); in findJumpTables()
82 assert(Range >= NumCases); in findJumpTables()
85 if (TLI->isSuitableForJumpTable(SI, NumCases, Range, PSI, BFI)) { in findJumpTables()
139 NumCases = getJumpTableNumCases(TotalCases, i, j); in findJumpTables()
140 assert(NumCases < UINT64_MAX / 100); in findJumpTables()
141 assert(Range >= NumCases); in findJumpTables()
143 if (TLI->isSuitableForJumpTable(SI, NumCases, Range, PSI, BFI)) { in findJumpTables()
DTargetLoweringBase.cpp1441 uint64_t NumCases, in isSuitableForJumpTable() argument
1459 (NumCases * 100 >= Range * MinDensity); in isSuitableForJumpTable()
/third_party/json/test/thirdparty/Fuzzer/
DFuzzerTraceState.cpp50 size_t NumCases, uint64_t *Cases);
210 uint64_t Val, size_t NumCases, in TraceSwitchCallback() argument
215 for (size_t i = 0; i < NumCases; i++) in TraceSwitchCallback()
219 Printf("TraceSwitch: %p %zd # %zd; TryShort %d\n", PC, Val, NumCases, in TraceSwitchCallback()
222 for (size_t i = 0; i < NumCases; i++) { in TraceSwitchCallback()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/IR/
DInstructions.cpp3802 SwitchInst::SwitchInst(Value *Value, BasicBlock *Default, unsigned NumCases, in SwitchInst() argument
3806 init(Value, Default, 2+NumCases*2); in SwitchInst()
3813 SwitchInst::SwitchInst(Value *Value, BasicBlock *Default, unsigned NumCases, in SwitchInst() argument
3817 init(Value, Default, 2+NumCases*2); in SwitchInst()
4033 IndirectBrInst::IndirectBrInst(Value *Address, unsigned NumCases, in IndirectBrInst() argument
4037 init(Address, NumCases); in IndirectBrInst()
4040 IndirectBrInst::IndirectBrInst(Value *Address, unsigned NumCases, in IndirectBrInst() argument
4044 init(Address, NumCases); in IndirectBrInst()
DCore.cpp3099 LLVMBasicBlockRef Else, unsigned NumCases) { in LLVMBuildSwitch() argument
3100 return wrap(unwrap(B)->CreateSwitch(unwrap(V), unwrap(Else), NumCases)); in LLVMBuildSwitch()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Scalar/
DLoopUnswitch.cpp757 unsigned NumCases = SI->getNumCases(); in processCurrentLoop() local
758 if (LoopCond && NumCases) { in processCurrentLoop()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/IR/
DInstructions.h3138 SwitchInst(Value *Value, BasicBlock *Default, unsigned NumCases,
3145 SwitchInst(Value *Value, BasicBlock *Default, unsigned NumCases,
3316 unsigned NumCases,
3318 return new SwitchInst(Value, Default, NumCases, InsertBefore);
3322 unsigned NumCases, BasicBlock *InsertAtEnd) {
3323 return new SwitchInst(Value, Default, NumCases, InsertAtEnd);
DIRBuilder.h1000 SwitchInst *CreateSwitch(Value *V, BasicBlock *Dest, unsigned NumCases = 10,
1003 return Insert(addBranchMetadata(SwitchInst::Create(V, Dest, NumCases),
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Utils/
DSimplifyCFG.cpp4450 Constant *NumCases = in TurnSwitchRangeIntoICmp() local
4459 if (NumCases->isNullValue() && !ContiguousCases->empty()) in TurnSwitchRangeIntoICmp()
4462 Cmp = Builder.CreateICmpULT(Sub, NumCases, "switch"); in TurnSwitchRangeIntoICmp()
5594 uint64_t NumCases = Values.size(); in isSwitchDense() local
5598 return NumCases * 100 >= Range * MinDensity; in isSwitchDense()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Bitcode/Reader/
DBitcodeReader.cpp4376 unsigned NumCases = Record[4]; in parseFunctionBody() local
4378 SwitchInst *SI = SwitchInst::Create(Cond, Default, NumCases); in parseFunctionBody()
4382 for (unsigned i = 0; i != NumCases; ++i) { in parseFunctionBody()
4431 unsigned NumCases = (Record.size()-3)/2; in parseFunctionBody() local
4432 SwitchInst *SI = SwitchInst::Create(Cond, Default, NumCases); in parseFunctionBody()
4434 for (unsigned i = 0, e = NumCases; i != e; ++i) { in parseFunctionBody()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm-c/
DCore.h3587 LLVMBasicBlockRef Else, unsigned NumCases);
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/CodeGen/
DTargetLowering.h1017 virtual bool isSuitableForJumpTable(const SwitchInst *SI, uint64_t NumCases,