Home
last modified time | relevance | path

Searched refs:Cases (Results 1 – 25 of 286) sorted by relevance

12345678910>>...12

/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/ADT/
DStringSwitch.h88 StringSwitch &Cases(StringLiteral S0, StringLiteral S1, T Value) { in Cases() function
92 StringSwitch &Cases(StringLiteral S0, StringLiteral S1, StringLiteral S2, in Cases() function
94 return Case(S0, Value).Cases(S1, S2, Value); in Cases()
97 StringSwitch &Cases(StringLiteral S0, StringLiteral S1, StringLiteral S2, in Cases() function
99 return Case(S0, Value).Cases(S1, S2, S3, Value); in Cases()
102 StringSwitch &Cases(StringLiteral S0, StringLiteral S1, StringLiteral S2, in Cases() function
104 return Case(S0, Value).Cases(S1, S2, S3, S4, Value); in Cases()
107 StringSwitch &Cases(StringLiteral S0, StringLiteral S1, StringLiteral S2, in Cases() function
110 return Case(S0, Value).Cases(S1, S2, S3, S4, S5, Value); in Cases()
113 StringSwitch &Cases(StringLiteral S0, StringLiteral S1, StringLiteral S2, in Cases() function
[all …]
/external/llvm-project/llvm/include/llvm/ADT/
DStringSwitch.h88 StringSwitch &Cases(StringLiteral S0, StringLiteral S1, T Value) { in Cases() function
92 StringSwitch &Cases(StringLiteral S0, StringLiteral S1, StringLiteral S2, in Cases() function
94 return Case(S0, Value).Cases(S1, S2, Value); in Cases()
97 StringSwitch &Cases(StringLiteral S0, StringLiteral S1, StringLiteral S2, in Cases() function
99 return Case(S0, Value).Cases(S1, S2, S3, Value); in Cases()
102 StringSwitch &Cases(StringLiteral S0, StringLiteral S1, StringLiteral S2, in Cases() function
104 return Case(S0, Value).Cases(S1, S2, S3, S4, Value); in Cases()
107 StringSwitch &Cases(StringLiteral S0, StringLiteral S1, StringLiteral S2, in Cases() function
110 return Case(S0, Value).Cases(S1, S2, S3, S4, S5, Value); in Cases()
113 StringSwitch &Cases(StringLiteral S0, StringLiteral S1, StringLiteral S2, in Cases() function
[all …]
/external/llvm-project/clang/lib/Frontend/
DFrontendOptions.cpp17 .Cases("ast", "pcm", InputKind(Language::Unknown, InputKind::Precompiled)) in getInputKindForExtension()
19 .Cases("S", "s", Language::Asm) in getInputKindForExtension()
25 .Cases("mm", "M", Language::ObjCXX) in getInputKindForExtension()
27 .Cases("C", "cc", "cp", Language::CXX) in getInputKindForExtension()
28 .Cases("cpp", "CPP", "c++", "cxx", "hpp", "hxx", Language::CXX) in getInputKindForExtension()
32 .Cases("cu", "cuh", Language::CUDA) in getInputKindForExtension()
34 .Cases("ll", "bc", Language::LLVM_IR) in getInputKindForExtension()
/external/llvm/lib/Transforms/Utils/
DLowerSwitch.cpp83 unsigned Clusterify(CaseVector &Cases, SwitchInst *SI);
355 unsigned LowerSwitch::Clusterify(CaseVector& Cases, SwitchInst *SI) { in Clusterify() argument
360 Cases.push_back(CaseRange(i.getCaseValue(), i.getCaseValue(), in Clusterify()
363 std::sort(Cases.begin(), Cases.end(), CaseCmp()); in Clusterify()
366 if (Cases.size() >= 2) { in Clusterify()
367 CaseItr I = Cases.begin(); in Clusterify()
368 for (CaseItr J = std::next(I), E = Cases.end(); J != E; ++J) { in Clusterify()
384 Cases.erase(std::next(I), Cases.end()); in Clusterify()
387 for (CaseItr I=Cases.begin(), E=Cases.end(); I!=E; ++I, ++numCmps) { in Clusterify()
414 CaseVector Cases; in processSwitchInst() local
[all …]
/external/swiftshader/third_party/llvm-subzero/include/llvm/ADT/
DStringSwitch.h107 StringSwitch &Cases(const char (&S0)[N0], const char (&S1)[N1], in Cases() function
114 StringSwitch &Cases(const char (&S0)[N0], const char (&S1)[N1], in Cases() function
116 return Case(S0, Value).Cases(S1, S2, Value); in Cases()
121 StringSwitch &Cases(const char (&S0)[N0], const char (&S1)[N1], in Cases() function
124 return Case(S0, Value).Cases(S1, S2, S3, Value); in Cases()
129 StringSwitch &Cases(const char (&S0)[N0], const char (&S1)[N1], in Cases() function
132 return Case(S0, Value).Cases(S1, S2, S3, S4, Value); in Cases()
138 StringSwitch &Cases(const char (&S0)[N0], const char (&S1)[N1], in Cases() function
142 return Case(S0, Value).Cases(S1, S2, S3, S4, S5, Value); in Cases()
148 StringSwitch &Cases(const char (&S0)[N0], const char (&S1)[N1], in Cases() function
[all …]
/external/clang/lib/Frontend/
DFrontendOptions.cpp16 .Cases("ast", "pcm", IK_AST) in getInputKindForExtension()
18 .Cases("S", "s", IK_Asm) in getInputKindForExtension()
24 .Cases("mm", "M", IK_ObjCXX) in getInputKindForExtension()
26 .Cases("C", "cc", "cp", IK_CXX) in getInputKindForExtension()
27 .Cases("cpp", "CPP", "c++", "cxx", "hpp", IK_CXX) in getInputKindForExtension()
30 .Cases("ll", "bc", IK_LLVM_IR) in getInputKindForExtension()
/external/llvm-project/clang-tools-extra/clangd/unittests/tweaks/
DDefineOutlineTests.cpp110 } Cases[] = { in TEST_F() local
274 for (const auto &Case : Cases) { in TEST_F()
293 } Cases[] = { in TEST_F() local
386 for (const auto &Case : Cases) { in TEST_F()
402 } Cases[] = { in TEST_F() local
436 for (auto &Case : Cases) { in TEST_F()
451 } Cases[] = { in TEST_F() local
488 for (auto &Case : Cases) { in TEST_F()
502 std::pair<StringRef, StringRef> Cases[] = { in TEST_F() local
534 for (const auto &Case : Cases) { in TEST_F()
DDefineInlineTests.cpp437 std::pair<llvm::StringRef, llvm::StringRef> Cases[] = { in TEST_F() local
518 for (const auto &Case : Cases) in TEST_F()
631 std::pair<llvm::StringRef, llvm::StringRef> Cases[] = { in TEST_F() local
662 for (const auto &Case : Cases) in TEST_F()
713 std::pair<llvm::StringRef, llvm::StringRef> Cases[] = { in TEST_F() local
734 for (const auto &Case : Cases) in TEST_F()
749 std::pair<llvm::StringRef, llvm::StringRef> Cases[] = { in TEST_F() local
792 for (const auto &Case : Cases) in TEST_F()
800 } Cases[] = { in TEST_F() local
886 for (const auto &Case : Cases) in TEST_F()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Utils/
DLowerSwitch.cpp114 unsigned Clusterify(CaseVector &Cases, SwitchInst *SI);
400 unsigned LowerSwitch::Clusterify(CaseVector& Cases, SwitchInst *SI) { in Clusterify() argument
407 Cases.push_back(CaseRange(Case.getCaseValue(), Case.getCaseValue(), in Clusterify()
412 llvm::sort(Cases, CaseCmp()); in Clusterify()
415 if (Cases.size() >= 2) { in Clusterify()
416 CaseItr I = Cases.begin(); in Clusterify()
417 for (CaseItr J = std::next(I), E = Cases.end(); J != E; ++J) { in Clusterify()
433 Cases.erase(std::next(I), Cases.end()); in Clusterify()
458 CaseVector Cases; in processSwitchInst() local
459 const unsigned NumSimpleCases = Clusterify(Cases, SI); in processSwitchInst()
[all …]
/external/llvm-project/llvm/lib/Transforms/Utils/
DLowerSwitch.cpp304 unsigned Clusterify(CaseVector &Cases, SwitchInst *SI) { in Clusterify() argument
311 Cases.push_back(CaseRange(Case.getCaseValue(), Case.getCaseValue(), in Clusterify()
316 llvm::sort(Cases, CaseCmp()); in Clusterify()
319 if (Cases.size() >= 2) { in Clusterify()
320 CaseItr I = Cases.begin(); in Clusterify()
321 for (CaseItr J = std::next(I), E = Cases.end(); J != E; ++J) { in Clusterify()
337 Cases.erase(std::next(I), Cases.end()); in Clusterify()
362 CaseVector Cases; in ProcessSwitchInst() local
363 const unsigned NumSimpleCases = Clusterify(Cases, SI); in ProcessSwitchInst()
364 LLVM_DEBUG(dbgs() << "Clusterify finished. Total clusters: " << Cases.size() in ProcessSwitchInst()
[all …]
/external/clang/lib/ARCMigrate/
DTransProtectedScope.cpp57 SmallVectorImpl<CaseInfo> &Cases; member in __anon535aaa9d0111::CaseCollector
60 CaseCollector(ParentMap &PMap, SmallVectorImpl<CaseInfo> &Cases) in CaseCollector() argument
61 : PMap(PMap), Cases(Cases) { } in CaseCollector()
80 Cases.push_back(CaseInfo(Curr,SourceRange(Curr->getLocStart(), NextLoc))); in VisitSwitchStmt()
98 SmallVector<CaseInfo, 16> Cases; member in __anon535aaa9d0111::ProtectedScopeFixer
106 CaseCollector(BodyCtx.getParentMap(), Cases) in ProtectedScopeFixer()
149 for (unsigned i = 0; i != Cases.size(); i++) { in handleProtectedNote()
150 CaseInfo &info = Cases[i]; in handleProtectedNote()
/external/llvm-project/clang/lib/ARCMigrate/
DTransProtectedScope.cpp57 SmallVectorImpl<CaseInfo> &Cases; member in __anondba8d44b0111::CaseCollector
60 CaseCollector(ParentMap &PMap, SmallVectorImpl<CaseInfo> &Cases) in CaseCollector() argument
61 : PMap(PMap), Cases(Cases) { } in CaseCollector()
80 Cases.push_back( in VisitSwitchStmt()
99 SmallVector<CaseInfo, 16> Cases; member in __anondba8d44b0111::ProtectedScopeFixer
107 CaseCollector(BodyCtx.getParentMap(), Cases) in ProtectedScopeFixer()
150 for (unsigned i = 0; i != Cases.size(); i++) { in handleProtectedNote()
151 CaseInfo &info = Cases[i]; in handleProtectedNote()
/external/llvm-project/clang/lib/Tooling/Transformer/
DRewriteRule.cpp325 for (auto &Case : Rule.Cases) in addInclude()
344 const SmallVectorImpl<std::pair<size_t, RewriteRule::Case>> &Cases, in taggedMatchers() argument
347 Matchers.reserve(Cases.size()); in taggedMatchers()
348 for (const auto &Case : Cases) { in taggedMatchers()
367 R.Cases.append(Rule.Cases.begin(), Rule.Cases.end()); in applyFirst()
379 const SmallVectorImpl<RewriteRule::Case> &Cases = Rule.Cases; in buildMatchers() local
380 for (int I = 0, N = Cases.size(); I < N; ++I) { in buildMatchers()
381 assert(hasValidKind(Cases[I].Matcher) && in buildMatchers()
383 Buckets[Cases[I].Matcher.getSupportedKind()].emplace_back(I, Cases[I]); in buildMatchers()
429 if (Rule.Cases.size() == 1) in findSelectedCase()
[all …]
/external/llvm-project/llvm/utils/TableGen/
DDAGISelMatcherOpt.cpp394 SmallVector<std::pair<const SDNodeInfo*, Matcher*>, 8> Cases; in FactorNodes() local
399 Cases.push_back(std::make_pair(&COM->getOpcode(), COM->takeNext())); in FactorNodes()
403 MatcherPtr.reset(new SwitchOpcodeMatcher(Cases)); in FactorNodes()
410 SmallVector<std::pair<MVT::SimpleValueType, Matcher*>, 8> Cases; in FactorNodes() local
423 Matcher *PrevMatcher = Cases[Entry-1].second; in FactorNodes()
431 Cases[Entry-1].second = new ScopeMatcher(Entries); in FactorNodes()
435 Entry = Cases.size()+1; in FactorNodes()
436 Cases.push_back(std::make_pair(CTMTy, MatcherWithoutCTM)); in FactorNodes()
440 for (auto &M : Cases) { in FactorNodes()
449 if (Cases.size() != 1) { in FactorNodes()
[all …]
/external/llvm/utils/TableGen/
DDAGISelMatcherOpt.cpp381 SmallVector<std::pair<const SDNodeInfo*, Matcher*>, 8> Cases; in FactorNodes() local
386 Cases.push_back(std::make_pair(&COM->getOpcode(), COM->takeNext())); in FactorNodes()
390 MatcherPtr.reset(new SwitchOpcodeMatcher(Cases)); in FactorNodes()
397 SmallVector<std::pair<MVT::SimpleValueType, Matcher*>, 8> Cases; in FactorNodes() local
409 Matcher *PrevMatcher = Cases[Entry-1].second; in FactorNodes()
419 Cases[Entry-1].second = Case.release(); in FactorNodes()
423 Entry = Cases.size()+1; in FactorNodes()
424 Cases.push_back(std::make_pair(CTMTy, MatcherWithoutCTM)); in FactorNodes()
427 if (Cases.size() != 1) { in FactorNodes()
428 MatcherPtr.reset(new SwitchTypeMatcher(Cases)); in FactorNodes()
[all …]
DDAGISelMatcher.cpp88 for (unsigned i = 0, e = Cases.size(); i != e; ++i) in ~SwitchOpcodeMatcher()
89 delete Cases[i].second; in ~SwitchOpcodeMatcher()
93 for (unsigned i = 0, e = Cases.size(); i != e; ++i) in ~SwitchTypeMatcher()
94 delete Cases[i].second; in ~SwitchTypeMatcher()
165 for (unsigned i = 0, e = Cases.size(); i != e; ++i) { in printImpl()
166 OS.indent(indent) << "case " << Cases[i].first->getEnumName() << ":\n"; in printImpl()
167 Cases[i].second->print(OS, indent+2); in printImpl()
180 for (unsigned i = 0, e = Cases.size(); i != e; ++i) { in printImpl()
181 OS.indent(indent) << "case " << getEnumName(Cases[i].first) << ":\n"; in printImpl()
182 Cases[i].second->print(OS, indent+2); in printImpl()
/external/llvm-project/clang/lib/Basic/Targets/
DPPC.h122 .Cases("power3", "pwr3", ArchDefinePpcgr) in setCPU()
123 .Cases("power4", "pwr4", in setCPU()
125 .Cases("power5", "pwr5", in setCPU()
128 .Cases("power5x", "pwr5x", in setCPU()
131 .Cases("power6", "pwr6", in setCPU()
134 .Cases("power6x", "pwr6x", in setCPU()
138 .Cases("power7", "pwr7", in setCPU()
143 .Cases("power8", "pwr8", "ppc64le", in setCPU()
147 .Cases("power9", "pwr9", in setCPU()
151 .Cases("power10", "pwr10", in setCPU()
[all …]
DMips.cpp63 .Cases("mips32", "mips64", 1) in getISARev()
64 .Cases("mips32r2", "mips64r2", "octeon", "octeon+", 2) in getISARev()
65 .Cases("mips32r3", "mips64r3", 3) in getISARev()
66 .Cases("mips32r5", "mips64r5", 5) in getISARev()
67 .Cases("mips32r6", "mips64r6", 6) in getISARev()
/external/clang/lib/Driver/
DJob.cpp44 .Cases("-MF", "-MT", "-MQ", "-serialize-diagnostic-file", true) in skipArgs()
45 .Cases("-o", "-coverage-file", "-dependency-file", true) in skipArgs()
46 .Cases("-fdebug-compilation-dir", "-idirafter", true) in skipArgs()
47 .Cases("-include", "-include-pch", "-internal-isystem", true) in skipArgs()
48 .Cases("-internal-externc-isystem", "-iprefix", "-iwithprefix", true) in skipArgs()
49 .Cases("-iwithprefixbefore", "-isystem", "-iquote", true) in skipArgs()
50 .Cases("-dwarf-debug-flags", "-ivfsoverlay", true) in skipArgs()
51 .Cases("-header-include-file", "-diagnostic-log-file", true) in skipArgs()
53 .Cases("-isysroot", "-I", "-F", "-resource-dir", !HaveCrashVFS) in skipArgs()
64 .Cases("-M", "-MM", "-MG", "-MP", "-MD", true) in skipArgs()
/external/llvm/lib/Fuzzer/
DFuzzerTraceState.cpp189 size_t NumCases, uint64_t *Cases, dfsan_label L);
196 size_t NumCases, uint64_t *Cases);
359 uint64_t *Cases, dfsan_label L) { in DFSanSwitchCallback() argument
367 TryShort &= IsTwoByteData(Cases[i]); in DFSanSwitchCallback()
371 AddMutation(Pos, ValSize, Cases[i]); in DFSanSwitchCallback()
376 AddMutation(Pos, 2, Cases[i]); in DFSanSwitchCallback()
459 uint64_t *Cases) { in TraceSwitchCallback() argument
464 TryShort &= IsTwoByteData(Cases[i]); in TraceSwitchCallback()
471 TryToAddDesiredData(Val, Cases[i], ValSize); in TraceSwitchCallback()
473 TryToAddDesiredData(Val, Cases[i], 2); in TraceSwitchCallback()
[all …]
/external/llvm-project/clang/lib/Driver/
DJob.cpp61 .Cases("-MF", "-MT", "-MQ", "-serialize-diagnostic-file", true) in skipArgs()
62 .Cases("-o", "-dependency-file", true) in skipArgs()
63 .Cases("-fdebug-compilation-dir", "-diagnostic-log-file", true) in skipArgs()
64 .Cases("-dwarf-debug-flags", "-ivfsoverlay", true) in skipArgs()
71 .Cases("-include", "-header-include-file", true) in skipArgs()
72 .Cases("-idirafter", "-internal-isystem", "-iwithprefix", true) in skipArgs()
73 .Cases("-internal-externc-isystem", "-iprefix", true) in skipArgs()
74 .Cases("-iwithprefixbefore", "-isystem", "-iquote", true) in skipArgs()
75 .Cases("-isysroot", "-I", "-F", "-resource-dir", true) in skipArgs()
76 .Cases("-iframework", "-include-pch", true) in skipArgs()
[all …]
/external/rust/crates/grpcio-sys/grpc/tools/http2_interop/
Dtestsuite.go48 allCaseInfos.Cases = append(allCaseInfos.Cases, &caseInfo{
65 Cases []*caseInfo `json:"cases"` member
/external/grpc-grpc/tools/http2_interop/
Dtestsuite.go34 allCaseInfos.Cases = append(allCaseInfos.Cases, &caseInfo{
51 Cases []*caseInfo `json:"cases"` member
/external/clang/lib/Lex/
DPPDirectives.cpp178 .Cases("assert.h", "complex.h", "ctype.h", "errno.h", "fenv.h", true) in warnByDefaultOnWrongCase()
179 .Cases("float.h", "inttypes.h", "iso646.h", "limits.h", "locale.h", true) in warnByDefaultOnWrongCase()
180 .Cases("math.h", "setjmp.h", "signal.h", "stdalign.h", "stdarg.h", true) in warnByDefaultOnWrongCase()
181 .Cases("stdatomic.h", "stdbool.h", "stddef.h", "stdint.h", "stdio.h", true) in warnByDefaultOnWrongCase()
182 .Cases("stdlib.h", "stdnoreturn.h", "string.h", "tgmath.h", "threads.h", true) in warnByDefaultOnWrongCase()
183 .Cases("time.h", "uchar.h", "wchar.h", "wctype.h", true) in warnByDefaultOnWrongCase()
186 .Cases("cassert", "ccomplex", "cctype", "cerrno", "cfenv", true) in warnByDefaultOnWrongCase()
187 .Cases("cfloat", "cinttypes", "ciso646", "climits", "clocale", true) in warnByDefaultOnWrongCase()
188 .Cases("cmath", "csetjmp", "csignal", "cstdalign", "cstdarg", true) in warnByDefaultOnWrongCase()
189 .Cases("cstdbool", "cstddef", "cstdint", "cstdio", "cstdlib", true) in warnByDefaultOnWrongCase()
[all …]
/external/llvm-project/clang-tools-extra/clangd/unittests/
DASTTests.cpp61 } Cases[] = { in TEST() local
118 for (const auto &Case : Cases) { in TEST()
157 } Cases[] = { in TEST() local
184 for (const auto &Case : Cases) { in TEST()

12345678910>>...12