Home
last modified time | relevance | path

Searched refs:NumCases (Results 1 – 25 of 34) 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.h774 static InstSwitch *create(Cfg *Func, SizeT NumCases, Operand *Source, in create() argument
777 InstSwitch(Func, NumCases, Source, LabelDefault); in create()
781 SizeT getNumCases() const { return NumCases; } in getNumCases()
783 assert(I < NumCases); in getValue()
787 assert(I < NumCases); in getLabel()
798 InstSwitch(Cfg *Func, SizeT NumCases, Operand *Source, CfgNode *LabelDefault);
806 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/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/swiftshader/third_party/LLVM/utils/TableGen/
DDAGISelMatcherEmitter.cpp271 unsigned NumCases; in EmitMatcher() local
274 NumCases = SOM->getNumCases(); in EmitMatcher()
277 NumCases = cast<SwitchTypeMatcher>(N)->getNumCases(); in EmitMatcher()
281 OS << "/*" << NumCases << " cases */"; in EmitMatcher()
286 for (unsigned i = 0, e = NumCases; i != e; ++i) { in EmitMatcher()
/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/lib/VMCore/
DInstructions.cpp3112 SwitchInst::SwitchInst(Value *Value, BasicBlock *Default, unsigned NumCases, in SwitchInst() argument
3116 init(Value, Default, 2+NumCases*2); in SwitchInst()
3123 SwitchInst::SwitchInst(Value *Value, BasicBlock *Default, unsigned NumCases, in SwitchInst() argument
3127 init(Value, Default, 2+NumCases*2); in SwitchInst()
3242 IndirectBrInst::IndirectBrInst(Value *Address, unsigned NumCases, in IndirectBrInst() argument
3246 init(Address, NumCases); in IndirectBrInst()
3249 IndirectBrInst::IndirectBrInst(Value *Address, unsigned NumCases, in IndirectBrInst() argument
3253 init(Address, NumCases); in IndirectBrInst()
DAsmWriter.cpp1714 unsigned NumCases = SI.getNumCases(); in printInstruction() local
1715 for (unsigned i = 1; i < NumCases; ++i) { in printInstruction()
DCore.cpp1771 LLVMBasicBlockRef Else, unsigned NumCases) { in LLVMBuildSwitch() argument
1772 return wrap(unwrap(B)->CreateSwitch(unwrap(V), unwrap(Else), NumCases)); in LLVMBuildSwitch()
/external/swiftshader/third_party/LLVM/include/llvm/
DInstructions.h2422 SwitchInst(Value *Value, BasicBlock *Default, unsigned NumCases,
2429 SwitchInst(Value *Value, BasicBlock *Default, unsigned NumCases,
2435 unsigned NumCases, Instruction *InsertBefore = 0) {
2436 return new SwitchInst(Value, Default, NumCases, InsertBefore);
2439 unsigned NumCases, BasicBlock *InsertAtEnd) {
2440 return new SwitchInst(Value, Default, NumCases, InsertAtEnd);
/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/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/lib/ExecutionEngine/Interpreter/
DExecution.cpp671 unsigned NumCases = I.getNumCases(); in visitSwitchInst() local
673 for (unsigned i = 1; i < NumCases; ++i) { in visitSwitchInst()
/external/swiftshader/third_party/LLVM/lib/Transforms/InstCombine/
DInstructionCombining.cpp1238 unsigned NumCases = SI.getNumCases(); in visitSwitchInst() local
1240 for (unsigned i = 1; i < NumCases; ++i) { in visitSwitchInst()
/external/swiftshader/third_party/LLVM/include/llvm/Support/
DIRBuilder.h439 SwitchInst *CreateSwitch(Value *V, BasicBlock *Dest, unsigned NumCases = 10) {
440 return Insert(SwitchInst::Create(V, Dest, NumCases));
/external/swiftshader/third_party/LLVM/lib/Bitcode/Reader/
DBitcodeReader.cpp2425 unsigned NumCases = (Record.size()-3)/2; in ParseFunctionBody() local
2426 SwitchInst *SI = SwitchInst::Create(Cond, Default, NumCases); in ParseFunctionBody()
2428 for (unsigned i = 0, e = NumCases; i != e; ++i) { in ParseFunctionBody()
/external/swiftshader/third_party/LLVM/lib/Target/CppBackend/
DCPPBackend.cpp1065 unsigned NumCases = SI->getNumCases(); in printInstruction() local
1066 for (unsigned i = 1; i < NumCases; ++i) { in printInstruction()
/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/lib/Transforms/Utils/
DSimplifyCFG.cpp2465 Constant *NumCases = ConstantInt::get(Offset->getType(), SI->getNumCases()-1); in TurnSwitchRangeIntoICmp() local
2470 Value *Cmp = Builder.CreateICmpULT(Sub, NumCases, "switch"); in TurnSwitchRangeIntoICmp()

12