/external/swiftshader/third_party/subzero/src/ |
D | IceSwitchLowering.cpp | 26 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()
|
D | IceInst.cpp | 498 InstSwitch::InstSwitch(Cfg *Func, SizeT NumCases, Operand *Source, in InstSwitch() argument 501 NumCases(NumCases) { in InstSwitch() 503 Values = Func->allocateArrayOf<uint64_t>(NumCases); in InstSwitch() 504 Labels = Func->allocateArrayOf<CfgNode *>(NumCases); in InstSwitch() 506 for (SizeT I = 0; I < NumCases; ++I) { in InstSwitch() 513 assert(CaseIndex < NumCases); in addBranch() 520 OutEdges.reserve(NumCases + 1); in getTerminatorEdges() 523 for (SizeT I = 0; I < NumCases; ++I) { in getTerminatorEdges() 542 for (SizeT I = 0; I < NumCases; ++I) { in repointEdges()
|
D | IceInst.h | 786 static InstSwitch *create(Cfg *Func, SizeT NumCases, Operand *Source, in create() argument 789 InstSwitch(Func, NumCases, Source, LabelDefault); in create() 793 SizeT getNumCases() const { return NumCases; } in getNumCases() 795 assert(I < NumCases); in getValue() 799 assert(I < NumCases); in getLabel() 810 InstSwitch(Cfg *Func, SizeT NumCases, Operand *Source, CfgNode *LabelDefault); 818 SizeT NumCases; /// not including the default case variable
|
D | IceConverter.cpp | 540 unsigned NumCases = Instr->getNumCases(); in convertSwitchInstruction() local 542 Ice::InstSwitch::create(Func.get(), NumCases, Source, LabelDefault); in convertSwitchInstruction()
|
D | PNaClTranslator.cpp | 2502 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/llvm-project/llvm/unittests/Analysis/ |
D | BranchProbabilityInfoTest.cpp | 70 unsigned NumCases = 4096; in TEST_F() local 73 auto *Switch = SwitchInst::Create(Undef, ExitBB, NumCases, EntryBB); in TEST_F() 74 for (unsigned I = 0; I < NumCases; ++I) in TEST_F()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/ |
D | SwitchLoweringUtils.cpp | 38 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()
|
/external/llvm-project/llvm/lib/CodeGen/ |
D | SwitchLoweringUtils.cpp | 41 uint64_t NumCases = in getJumpTableNumCases() local 43 return NumCases; in getJumpTableNumCases() 83 uint64_t NumCases = getJumpTableNumCases(TotalCases, 0, N - 1); in findJumpTables() local 84 assert(NumCases < UINT64_MAX / 100); in findJumpTables() 85 assert(Range >= NumCases); in findJumpTables() 88 if (TLI->isSuitableForJumpTable(SI, NumCases, Range, PSI, BFI)) { in findJumpTables() 142 NumCases = getJumpTableNumCases(TotalCases, i, j); in findJumpTables() 143 assert(NumCases < UINT64_MAX / 100); in findJumpTables() 144 assert(Range >= NumCases); in findJumpTables() 146 if (TLI->isSuitableForJumpTable(SI, NumCases, Range, PSI, BFI)) { in findJumpTables()
|
/external/libcxx/test/libcxx/utilities/function.objects/unord.hash/ |
D | murmur2_or_cityhash_ubsan_unsigned_overflow_ignored.pass.cpp | 38 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-project/libcxx/test/libcxx/utilities/function.objects/unord.hash/ |
D | murmur2_or_cityhash_ubsan_unsigned_overflow_ignored.pass.cpp | 37 const size_t NumCases = sizeof(TestCases)/sizeof(TestCases[0]); in main() local 38 for (size_t i=0; i < NumCases; ++i) in main()
|
/external/llvm/lib/Fuzzer/ |
D | FuzzerTraceState.cpp | 189 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/llvm-project/llvm/utils/TableGen/ |
D | DAGISelMatcherEmitter.cpp | 272 unsigned NumCases; in SizeMatcher() local 274 NumCases = SOM->getNumCases(); in SizeMatcher() 276 NumCases = cast<SwitchTypeMatcher>(N)->getNumCases(); in SizeMatcher() 277 for (unsigned i = 0, e = NumCases; i != e; ++i) { in SizeMatcher() 502 unsigned NumCases; in EmitMatcher() local 505 NumCases = SOM->getNumCases(); in EmitMatcher() 508 NumCases = cast<SwitchTypeMatcher>(N)->getNumCases(); in EmitMatcher() 512 OS << "/*" << NumCases << " cases */"; in EmitMatcher() 517 for (unsigned i = 0, e = NumCases; i != e; ++i) { in EmitMatcher()
|
/external/llvm/utils/TableGen/ |
D | DAGISelMatcherEmitter.cpp | 302 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-10.0/llvm/lib/IR/ |
D | Instructions.cpp | 3802 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()
|
/external/llvm/lib/IR/ |
D | Instructions.cpp | 3703 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/ |
D | LoopUnswitch.cpp | 612 unsigned NumCases = SI->getNumCases(); in processCurrentLoop() local 613 if (LoopCond && NumCases) { in processCurrentLoop()
|
/external/llvm-project/llvm/lib/IR/ |
D | Instructions.cpp | 4000 SwitchInst::SwitchInst(Value *Value, BasicBlock *Default, unsigned NumCases, in SwitchInst() argument 4004 init(Value, Default, 2+NumCases*2); in SwitchInst() 4011 SwitchInst::SwitchInst(Value *Value, BasicBlock *Default, unsigned NumCases, in SwitchInst() argument 4015 init(Value, Default, 2+NumCases*2); in SwitchInst() 4231 IndirectBrInst::IndirectBrInst(Value *Address, unsigned NumCases, in IndirectBrInst() argument 4235 init(Address, NumCases); in IndirectBrInst() 4238 IndirectBrInst::IndirectBrInst(Value *Address, unsigned NumCases, in IndirectBrInst() argument 4242 init(Address, NumCases); in IndirectBrInst()
|
/external/llvm-project/llvm/lib/Transforms/Scalar/ |
D | LoopUnswitch.cpp | 763 unsigned NumCases = SI->getNumCases(); in processCurrentLoop() local 764 if (LoopCond && NumCases) { in processCurrentLoop()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Scalar/ |
D | LoopUnswitch.cpp | 757 unsigned NumCases = SI->getNumCases(); in processCurrentLoop() local 758 if (LoopCond && NumCases) { in processCurrentLoop()
|
/external/clang/lib/CodeGen/ |
D | CGStmt.cpp | 1541 unsigned NumCases = 0; in EmitSwitchStmt() local 1547 NumCases += 1; in EmitSwitchStmt() 1550 SwitchWeights->reserve(NumCases); in EmitSwitchStmt()
|
/external/llvm/include/llvm/IR/ |
D | Instructions.h | 3002 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);
|
/external/llvm-project/llvm/include/llvm/IR/ |
D | Instructions.h | 3172 SwitchInst(Value *Value, BasicBlock *Default, unsigned NumCases, 3179 SwitchInst(Value *Value, BasicBlock *Default, unsigned NumCases, 3350 unsigned NumCases, 3352 return new SwitchInst(Value, Default, NumCases, InsertBefore); 3356 unsigned NumCases, BasicBlock *InsertAtEnd) { 3357 return new SwitchInst(Value, Default, NumCases, InsertAtEnd);
|
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/IR/ |
D | Instructions.h | 3138 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);
|
/external/llvm-project/clang/lib/CodeGen/ |
D | CGStmt.cpp | 1835 unsigned NumCases = 0; in EmitSwitchStmt() local 1841 NumCases += 1; in EmitSwitchStmt() 1844 SwitchWeights->reserve(NumCases); in EmitSwitchStmt()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Utils/ |
D | SimplifyCFG.cpp | 4450 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()
|