Home
last modified time | relevance | path

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

12

/external/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.cpp506 InstSwitch::InstSwitch(Cfg *Func, SizeT NumCases, Operand *Source, in InstSwitch() argument
509 NumCases(NumCases) { in InstSwitch()
511 Values = Func->allocateArrayOf<uint64_t>(NumCases); in InstSwitch()
512 Labels = Func->allocateArrayOf<CfgNode *>(NumCases); in InstSwitch()
514 for (SizeT I = 0; I < NumCases; ++I) { in InstSwitch()
521 assert(CaseIndex < NumCases); in addBranch()
528 OutEdges.reserve(NumCases + 1); in getTerminatorEdges()
531 for (SizeT I = 0; I < NumCases; ++I) { in getTerminatorEdges()
550 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()
/external/swiftshader/third_party/llvm-7.0/llvm/unittests/Analysis/
DBranchProbabilityInfoTest.cpp71 unsigned NumCases = 4096; in TEST_F() local
74 auto *Switch = SwitchInst::Create(Undef, ExitBB, NumCases, EntryBB); in TEST_F()
75 for (unsigned I = 0; I < NumCases; ++I) in TEST_F()
/external/llvm/lib/Fuzzer/
DFuzzerTraceState.cpp189 size_t NumCases, uint64_t *Cases, dfsan_label L);
196 size_t NumCases, uint64_t *Cases);
358 uint64_t Val, size_t NumCases, in DFSanSwitchCallback() argument
366 for (size_t i = 0; i < NumCases; i++) in DFSanSwitchCallback()
370 for (size_t i = 0; i < NumCases; i++) in DFSanSwitchCallback()
375 for (size_t i = 0; i < NumCases; i++) in DFSanSwitchCallback()
381 PC, Val, ValSize, NumCases, L, LR.Beg, LR.End, TryShort); in DFSanSwitchCallback()
458 uint64_t Val, size_t NumCases, in TraceSwitchCallback() argument
463 for (size_t i = 0; i < NumCases; i++) in TraceSwitchCallback()
467 Printf("TraceSwitch: %p %zd # %zd; TryShort %d\n", PC, Val, NumCases, in TraceSwitchCallback()
[all …]
/external/libcxx/test/libcxx/utilities/function.objects/unord.hash/
Dmurmur2_or_cityhash_ubsan_unsigned_overflow_ignored.pass.cpp38 const size_t NumCases = sizeof(TestCases)/sizeof(TestCases[0]); in main() local
39 for (size_t i=0; i < NumCases; ++i) in main()
/external/llvm/utils/TableGen/
DDAGISelMatcherEmitter.cpp302 unsigned NumCases; in EmitMatcher() local
305 NumCases = SOM->getNumCases(); in EmitMatcher()
308 NumCases = cast<SwitchTypeMatcher>(N)->getNumCases(); in EmitMatcher()
312 OS << "/*" << NumCases << " cases */"; in EmitMatcher()
317 for (unsigned i = 0, e = NumCases; i != e; ++i) { in EmitMatcher()
/external/swiftshader/third_party/llvm-7.0/llvm/utils/TableGen/
DDAGISelMatcherEmitter.cpp415 unsigned NumCases; in EmitMatcher() local
418 NumCases = SOM->getNumCases(); in EmitMatcher()
421 NumCases = cast<SwitchTypeMatcher>(N)->getNumCases(); in EmitMatcher()
425 OS << "/*" << NumCases << " cases */"; in EmitMatcher()
430 for (unsigned i = 0, e = NumCases; i != e; ++i) { in EmitMatcher()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/IR/
DInstructions.cpp3519 SwitchInst::SwitchInst(Value *Value, BasicBlock *Default, unsigned NumCases, in SwitchInst() argument
3523 init(Value, Default, 2+NumCases*2); in SwitchInst()
3530 SwitchInst::SwitchInst(Value *Value, BasicBlock *Default, unsigned NumCases, in SwitchInst() argument
3534 init(Value, Default, 2+NumCases*2); in SwitchInst()
3627 IndirectBrInst::IndirectBrInst(Value *Address, unsigned NumCases, in IndirectBrInst() argument
3631 init(Address, NumCases); in IndirectBrInst()
3634 IndirectBrInst::IndirectBrInst(Value *Address, unsigned NumCases, in IndirectBrInst() argument
3638 init(Address, NumCases); in IndirectBrInst()
/external/llvm/lib/IR/
DInstructions.cpp3703 SwitchInst::SwitchInst(Value *Value, BasicBlock *Default, unsigned NumCases, in SwitchInst() argument
3707 init(Value, Default, 2+NumCases*2); in SwitchInst()
3714 SwitchInst::SwitchInst(Value *Value, BasicBlock *Default, unsigned NumCases, in SwitchInst() argument
3718 init(Value, Default, 2+NumCases*2); in SwitchInst()
3820 IndirectBrInst::IndirectBrInst(Value *Address, unsigned NumCases, in IndirectBrInst() argument
3824 init(Address, NumCases); in IndirectBrInst()
3827 IndirectBrInst::IndirectBrInst(Value *Address, unsigned NumCases, in IndirectBrInst() argument
3831 init(Address, NumCases); in IndirectBrInst()
/external/llvm/lib/Transforms/Scalar/
DLoopUnswitch.cpp612 unsigned NumCases = SI->getNumCases(); in processCurrentLoop() local
613 if (LoopCond && NumCases) { in processCurrentLoop()
/external/clang/lib/CodeGen/
DCGStmt.cpp1541 unsigned NumCases = 0; in EmitSwitchStmt() local
1547 NumCases += 1; in EmitSwitchStmt()
1550 SwitchWeights->reserve(NumCases); in EmitSwitchStmt()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Scalar/
DLoopUnswitch.cpp732 unsigned NumCases = SI->getNumCases(); in processCurrentLoop() local
733 if (LoopCond && NumCases) { in processCurrentLoop()
/external/llvm/include/llvm/IR/
DInstructions.h3002 SwitchInst(Value *Value, BasicBlock *Default, unsigned NumCases,
3009 SwitchInst(Value *Value, BasicBlock *Default, unsigned NumCases,
3134 unsigned NumCases,
3136 return new SwitchInst(Value, Default, NumCases, InsertBefore);
3139 unsigned NumCases, BasicBlock *InsertAtEnd) {
3140 return new SwitchInst(Value, Default, NumCases, InsertAtEnd);
DIRBuilder.h687 SwitchInst *CreateSwitch(Value *V, BasicBlock *Dest, unsigned NumCases = 10,
690 return Insert(addBranchMetadata(SwitchInst::Create(V, Dest, NumCases),
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/IR/
DInstructions.h3446 SwitchInst(Value *Value, BasicBlock *Default, unsigned NumCases,
3453 SwitchInst(Value *Value, BasicBlock *Default, unsigned NumCases,
3624 unsigned NumCases,
3626 return new SwitchInst(Value, Default, NumCases, InsertBefore);
3630 unsigned NumCases, BasicBlock *InsertAtEnd) {
3631 return new SwitchInst(Value, Default, NumCases, InsertAtEnd);
DIRBuilder.h865 SwitchInst *CreateSwitch(Value *V, BasicBlock *Dest, unsigned NumCases = 10,
868 return Insert(addBranchMetadata(SwitchInst::Create(V, Dest, NumCases),
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Bitcode/Reader/
DBitcodeReader.cpp4003 unsigned NumCases = Record[4]; in parseFunctionBody() local
4005 SwitchInst *SI = SwitchInst::Create(Cond, Default, NumCases); in parseFunctionBody()
4009 for (unsigned i = 0; i != NumCases; ++i) { in parseFunctionBody()
4058 unsigned NumCases = (Record.size()-3)/2; in parseFunctionBody() local
4059 SwitchInst *SI = SwitchInst::Create(Cond, Default, NumCases); in parseFunctionBody()
4061 for (unsigned i = 0, e = NumCases; i != e; ++i) { in parseFunctionBody()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Utils/
DSimplifyCFG.cpp4324 Constant *NumCases = in TurnSwitchRangeIntoICmp() local
4333 if (NumCases->isNullValue() && !ContiguousCases->empty()) in TurnSwitchRangeIntoICmp()
4336 Cmp = Builder.CreateICmpULT(Sub, NumCases, "switch"); in TurnSwitchRangeIntoICmp()
5478 uint64_t NumCases = Values.size(); in isSwitchDense() local
5482 return NumCases * 100 >= Range * MinDensity; in isSwitchDense()
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/CodeGen/
DTargetLowering.h885 virtual bool isSuitableForJumpTable(const SwitchInst *SI, uint64_t NumCases, in isSuitableForJumpTable() argument
895 (NumCases * 100 >= Range * MinDensity)) { in isSuitableForJumpTable()
/external/llvm/lib/Bitcode/Reader/
DBitcodeReader.cpp4991 unsigned NumCases = Record[4]; in parseFunctionBody() local
4993 SwitchInst *SI = SwitchInst::Create(Cond, Default, NumCases); in parseFunctionBody()
4997 for (unsigned i = 0; i != NumCases; ++i) { in parseFunctionBody()
5046 unsigned NumCases = (Record.size()-3)/2; in parseFunctionBody() local
5047 SwitchInst *SI = SwitchInst::Create(Cond, Default, NumCases); in parseFunctionBody()
5049 for (unsigned i = 0, e = NumCases; i != e; ++i) { in parseFunctionBody()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/CodeGen/SelectionDAG/
DSelectionDAGBuilder.cpp9347 uint64_t NumCases = in getJumpTableNumCases() local
9349 return NumCases; in getJumpTableNumCases()
9463 uint64_t NumCases = getJumpTableNumCases(TotalCases, 0, N - 1); in findJumpTables() local
9464 assert(NumCases < UINT64_MAX / 100); in findJumpTables()
9465 assert(Range >= NumCases); in findJumpTables()
9466 if (TLI.isSuitableForJumpTable(SI, NumCases, Range)) { in findJumpTables()
9520 uint64_t NumCases = getJumpTableNumCases(TotalCases, i, j); in findJumpTables() local
9521 assert(NumCases < UINT64_MAX / 100); in findJumpTables()
9522 assert(Range >= NumCases); in findJumpTables()
9523 if (TLI.isSuitableForJumpTable(SI, NumCases, Range)) { in findJumpTables()
/external/llvm/include/llvm-c/
DCore.h2897 LLVMBasicBlockRef Else, unsigned NumCases);

12