/external/clang/test/Sema/ |
H A D | warn-unreachable.c | 102 enum Cases { C1, C2, C3 }; enum 103 int test_enum_cases(enum Cases C) {
|
H A D | return.c | 249 enum Cases { C1, C2, C3, C4 }; enum 250 int test_enum_cases(enum Cases C) {
|
/external/llvm/include/llvm/ADT/ |
H A D | StringSwitch.h | 38 /// .Cases("violet", "purple", Violet) 85 StringSwitch& Cases(const char (&S0)[N0], const char (&S1)[N1], function in class:llvm::StringSwitch 91 StringSwitch& Cases(const char (&S0)[N0], const char (&S1)[N1], function in class:llvm::StringSwitch 97 StringSwitch& Cases(const char (&S0)[N0], const char (&S1)[N1], function in class:llvm::StringSwitch 104 StringSwitch& Cases(const char (&S0)[N0], const char (&S1)[N1], function in class:llvm::StringSwitch
|
/external/llvm/lib/Transforms/Utils/ |
H A D | LowerSwitch.cpp | 67 unsigned Clusterify(CaseVector& Cases, SwitchInst *SI); 223 // Clusterify - Transform simple list of Cases into list of CaseRange's 224 unsigned LowerSwitch::Clusterify(CaseVector& Cases, SwitchInst *SI) { argument 245 Cases.push_back(CaseRange(C.first.getLow().toConstantInt(), 289 CaseVector Cases; local 290 unsigned numCmps = Clusterify(Cases, SI); 292 DEBUG(dbgs() << "Clusterify finished. Total clusters: " << Cases.size() 294 DEBUG(dbgs() << "Cases: " << Cases << "\n"); 297 BasicBlock* SwitchBlock = switchConvert(Cases [all...] |
H A D | SimplifyCFG.cpp | 80 std::vector<ValueEqualityComparisonCase> &Cases); 538 &Cases) { 540 Cases.reserve(SI->getNumCases()); 542 Cases.push_back(ValueEqualityComparisonCase(i.getCaseValue(), 550 Cases.push_back(ValueEqualityComparisonCase(GetConstantInt(ICI->getOperand(1), 560 std::vector<ValueEqualityComparisonCase> &Cases) { 561 for (unsigned i = 0, e = Cases.size(); i != e; ++i) 562 if (Cases[i].Dest == BB) { 563 Cases.erase(Cases 536 GetValueEqualityComparisonCases(TerminatorInst *TI, std::vector<ValueEqualityComparisonCase> &Cases) argument 559 EliminateBlockCases(BasicBlock *BB, std::vector<ValueEqualityComparisonCase> &Cases) argument 2839 SmallVector<ConstantInt *, 16> Cases; local [all...] |
/external/llvm/utils/TableGen/ |
H A D | DAGISelMatcherOpt.cpp | 446 SmallVector<std::pair<const SDNodeInfo*, Matcher*>, 8> Cases; local 451 Cases.push_back(std::make_pair(&COM->getOpcode(), COM->getNext())); 454 MatcherPtr.reset(new SwitchOpcodeMatcher(&Cases[0], Cases.size())); 461 SmallVector<std::pair<MVT::SimpleValueType, Matcher*>, 8> Cases; local 473 Matcher *PrevMatcher = Cases[Entry-1].second; 481 Cases[Entry-1].second = new ScopeMatcher(Entries, 2); 485 Entry = Cases.size()+1; 486 Cases.push_back(std::make_pair(CTMTy, MatcherWithoutCTM)); 489 if (Cases [all...] |
H A D | DAGISelMatcher.h | 475 SmallVector<std::pair<const SDNodeInfo*, Matcher*>, 8> Cases; member in class:llvm::SwitchOpcodeMatcher 479 : Matcher(SwitchOpcode), Cases(cases, cases+numcases) {} 485 unsigned getNumCases() const { return Cases.size(); } 487 const SDNodeInfo &getCaseOpcode(unsigned i) const { return *Cases[i].first; } 488 Matcher *getCaseMatcher(unsigned i) { return Cases[i].second; } 489 const Matcher *getCaseMatcher(unsigned i) const { return Cases[i].second; } 529 SmallVector<std::pair<MVT::SimpleValueType, Matcher*>, 8> Cases; member in class:llvm::SwitchTypeMatcher 533 : Matcher(SwitchType), Cases(cases, cases+numcases) {} 539 unsigned getNumCases() const { return Cases.size(); } 541 MVT::SimpleValueType getCaseType(unsigned i) const { return Cases[ [all...] |
/external/llvm/include/llvm/Support/ |
H A D | IntegersSubsetMapping.h | 259 typedef std::list<Case> Cases; typedef in class:llvm::IntegersSubsetMapping 260 typedef typename Cases::iterator CasesIt; 518 void getCases(Cases& TheCases, bool PreventMerging = false) {
|
/external/llvm/lib/CodeGen/SelectionDAG/ |
H A D | SelectionDAGBuilder.h | 191 size_t Clusterify(CaseVector &Cases, const SwitchInst &SI); 269 Parent(P), Default(D), Cases(C) { } 278 BitTestInfo Cases; member in struct:llvm::SelectionDAGBuilder::BitTestBlock 408 bool ShouldEmitAsBranches(const std::vector<CaseBlock> &Cases);
|
H A D | SelectionDAGBuilder.cpp | 1446 SelectionDAGBuilder::ShouldEmitAsBranches(const std::vector<CaseBlock> &Cases){ argument 1447 if (Cases.size() != 2) return true; 1451 if ((Cases[0].CmpLHS == Cases[1].CmpLHS && 1452 Cases[0].CmpRHS == Cases[1].CmpRHS) || 1453 (Cases[0].CmpRHS == Cases[1].CmpLHS && 1454 Cases[0].CmpLHS == Cases[ 2459 Clusterify(CaseVector& Cases, const SwitchInst& SI) argument 2539 CaseVector Cases; local [all...] |