/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 | 506 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()
|
D | IceInst.h | 784 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
|
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/swiftshader/third_party/llvm-7.0/llvm/unittests/Analysis/ |
D | BranchProbabilityInfoTest.cpp | 71 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/ |
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/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/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-7.0/llvm/utils/TableGen/ |
D | DAGISelMatcherEmitter.cpp | 415 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/ |
D | Instructions.cpp | 3519 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/ |
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/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/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Scalar/ |
D | LoopUnswitch.cpp | 732 unsigned NumCases = SI->getNumCases(); in processCurrentLoop() local 733 if (LoopCond && NumCases) { in processCurrentLoop()
|
/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);
|
D | IRBuilder.h | 687 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/ |
D | Instructions.h | 3446 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);
|
D | IRBuilder.h | 865 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/ |
D | BitcodeReader.cpp | 4003 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/ |
D | SimplifyCFG.cpp | 4324 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/ |
D | TargetLowering.h | 885 virtual bool isSuitableForJumpTable(const SwitchInst *SI, uint64_t NumCases, in isSuitableForJumpTable() argument 895 (NumCases * 100 >= Range * MinDensity)) { in isSuitableForJumpTable()
|
/external/llvm/lib/Bitcode/Reader/ |
D | BitcodeReader.cpp | 4991 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/ |
D | SelectionDAGBuilder.cpp | 9347 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/ |
D | Core.h | 2897 LLVMBasicBlockRef Else, unsigned NumCases);
|