Home
last modified time | relevance | path

Searched refs:StringSwitch (Results 1 – 25 of 92) sorted by relevance

1234

/external/llvm/include/llvm/ADT/
DStringSwitch.h42 class StringSwitch {
51 explicit StringSwitch(StringRef S) in StringSwitch() function
55 StringSwitch& Case(const char (&S)[N], const T& Value) { in Case()
65 StringSwitch& EndsWith(const char (&S)[N], const T &Value) { in EndsWith()
75 StringSwitch& StartsWith(const char (&S)[N], const T &Value) { in StartsWith()
85 StringSwitch& Cases(const char (&S0)[N0], const char (&S1)[N1], in Cases()
91 StringSwitch& Cases(const char (&S0)[N0], const char (&S1)[N1], in Cases()
97 StringSwitch& Cases(const char (&S0)[N0], const char (&S1)[N1], in Cases()
104 StringSwitch& Cases(const char (&S0)[N0], const char (&S1)[N1], in Cases()
/external/clang/lib/Basic/
DOpenMPKinds.cpp24 return llvm::StringSwitch<OpenMPDirectiveKind>(Str) in getOpenMPDirectiveKind()
55 return llvm::StringSwitch<OpenMPClauseKind>(Str) in getOpenMPClauseKind()
80 return llvm::StringSwitch<OpenMPDefaultClauseKind>(Str) in getOpenMPSimpleClauseType()
85 return llvm::StringSwitch<OpenMPProcBindClauseKind>(Str) in getOpenMPSimpleClauseType()
90 return llvm::StringSwitch<OpenMPScheduleClauseKind>(Str) in getOpenMPSimpleClauseType()
DTargets.cpp790 bool CPUKnown = llvm::StringSwitch<bool>(Name) in setCPU()
1107 ArchDefineTypes defs = (ArchDefineTypes)llvm::StringSwitch<int>(CPU) in getTargetDefines()
1233 Features["altivec"] = llvm::StringSwitch<bool>(CPU) in getDefaultFeatures()
1248 Features["crypto"] = llvm::StringSwitch<bool>(CPU) in getDefaultFeatures()
1252 Features["power8-vector"] = llvm::StringSwitch<bool>(CPU) in getDefaultFeatures()
1256 Features["bpermd"] = llvm::StringSwitch<bool>(CPU) in getDefaultFeatures()
1261 Features["extdiv"] = llvm::StringSwitch<bool>(CPU) in getDefaultFeatures()
1266 Features["direct-move"] = llvm::StringSwitch<bool>(CPU) in getDefaultFeatures()
1273 return llvm::StringSwitch<bool>(Feature) in hasFeature()
1602 GPU = llvm::StringSwitch<GPUKind>(Name) in setCPU()
[all …]
/external/clang/test/SemaTemplate/
Dinstantiate-non-type-template-parameter.cpp6 class StringSwitch { class
14 (void)StringSwitch<int>(); in test_stringswitch()
/external/llvm/lib/Support/
DDwarf.cpp32 return StringSwitch<unsigned>(TagString) in getTag()
251 return StringSwitch<unsigned>(OperationEncodingString) in getOperationEncoding()
268 return StringSwitch<unsigned>(EncodingString) in getAttributeEncoding()
327 return StringSwitch<unsigned>(VirtualityString) in getVirtuality()
346 return StringSwitch<unsigned>(LanguageString) in getLanguage()
DTriple.cpp193 return StringSwitch<Triple::ArchType>(Name) in getArchTypeForLLVMName()
274 return StringSwitch<Triple::ArchType>(ArchName.substr(offset)) in parseARMArch()
291 return StringSwitch<Triple::ArchType>(ArchName) in parseArch()
333 return StringSwitch<Triple::VendorType>(VendorName) in parseVendor()
349 return StringSwitch<Triple::OSType>(OSName) in parseOS()
379 return StringSwitch<Triple::EnvironmentType>(EnvironmentName) in parseEnvironment()
395 return StringSwitch<Triple::ObjectFormatType>(EnvironmentName) in parseFormat()
406 return StringSwitch<Triple::SubArchType>(SubArchName) in parseSubArch()
1094 result = llvm::StringSwitch<const char *>(MArch.substr(offset)) in getARMCPUForArch()
1117 result = llvm::StringSwitch<const char *>(MArch) in getARMCPUForArch()
DHost.cpp594 return StringSwitch<const char *>(StringRef(CPUStart, CPULen)) in getHostCPUName()
644 return StringSwitch<const char *>(Lines[I].substr(8).ltrim("\t :")) in getHostCPUName()
665 return StringSwitch<const char *>(Lines[I].substr(8).ltrim("\t :")) in getHostCPUName()
827 StringRef LLVMFeatureStr = StringSwitch<StringRef>(CPUFeatures[I]) in getHostCPUFeatures()
/external/clang/lib/StaticAnalyzer/Core/
DAnalyzerOptions.cpp30 UserMode = llvm::StringSwitch<UserModeKind>(ModeStr) in getUserMode()
56 IPAKind IPAConfig = llvm::StringSwitch<IPAKind>(ModeStr) in getIPAMode()
86 MutableMode = llvm::StringSwitch<CXXInlineableMemberKind>(ModeStr) in mayInlineCXXMemberFunction()
136 return llvm::StringSwitch<bool>(V) in getBooleanOption()
/external/clang/test/Index/
Drecursive-cxx-member-calls.cpp83 template < typename T, typename R = T > class StringSwitch { class
87 explicit StringSwitch(StringRef Str) : Str(Str), Result(0) {} in StringSwitch() function in llvm::StringSwitch
88 template < unsigned N > StringSwitch & Case(const char (&S)[N], in Case()
105 return llvm::StringSwitch < AttributeList::Kind > (AttrName) in getKind()
/external/clang/unittests/Driver/
DMultilibTest.cpp163 ASSERT_TRUE(llvm::StringSwitch<bool>(*I) in TEST()
205 ASSERT_TRUE(llvm::StringSwitch<bool>(I->gccSuffix()) in TEST()
209 ASSERT_TRUE(llvm::StringSwitch<bool>(I->gccSuffix()) in TEST()
216 ASSERT_TRUE(llvm::StringSwitch<bool>(I->gccSuffix()) in TEST()
232 ASSERT_TRUE(llvm::StringSwitch<bool>(I->gccSuffix()) in TEST()
/external/llvm/lib/Transforms/ObjCARC/
DARCInstKind.cpp88 return StringSwitch<ARCInstKind>(F->getName()) in GetFunctionClass()
101 return StringSwitch<ARCInstKind>(F->getName()) in GetFunctionClass()
124 return StringSwitch<ARCInstKind>(F->getName()) in GetFunctionClass()
141 return StringSwitch<ARCInstKind>(F->getName()) in GetFunctionClass()
149 return StringSwitch<ARCInstKind>(F->getName()) in GetFunctionClass()
/external/clang/lib/Frontend/
DFrontendOptions.cpp15 return llvm::StringSwitch<InputKind>(Extension) in getInputKindForExtension()
DLangStandards.cpp32 Kind K = llvm::StringSwitch<Kind>(Name) in getLangStandardForName()
DCompilerInvocation.cpp140 AnalysisStores Value = llvm::StringSwitch<AnalysisStores>(Name) in ParseAnalyzerArgs()
156 AnalysisConstraints Value = llvm::StringSwitch<AnalysisConstraints>(Name) in ParseAnalyzerArgs()
172 AnalysisDiagClients Value = llvm::StringSwitch<AnalysisDiagClients>(Name) in ParseAnalyzerArgs()
188 AnalysisPurgeMode Value = llvm::StringSwitch<AnalysisPurgeMode>(Name) in ParseAnalyzerArgs()
204 AnalysisInliningMode Value = llvm::StringSwitch<AnalysisInliningMode>(Name) in ParseAnalyzerArgs()
332 SanitizerKind K = llvm::StringSwitch<SanitizerKind>(Sanitizer) in parseSanitizerKinds()
555 unsigned Method = llvm::StringSwitch<unsigned>(Name) in ParseCodeGenArgs()
571 unsigned Model = llvm::StringSwitch<unsigned>(Name) in ParseCodeGenArgs()
986 DashX = llvm::StringSwitch<InputKind>(A->getValue()) in ParseFrontendArgs()
1294 LangStd = llvm::StringSwitch<LangStandard::Kind>(A->getValue()) in ParseLangArgs()
[all …]
/external/llvm/tools/llvm-cov/
Dllvm-cov.cpp54 MainFunction Func = StringSwitch<MainFunction>(argv[1]) in main()
/external/clang/lib/Sema/
DSemaStmtAttr.cpp60 llvm::StringSwitch<const char *>(PragmaNameLoc->Ident->getName()) in handleLoopHintAttr()
80 Option = llvm::StringSwitch<LoopHintAttr::OptionType>(OptionInfo->getName()) in handleLoopHintAttr()
/external/clang/lib/StaticAnalyzer/Checkers/
DGenericTaintChecker.cpp206 TaintPropagationRule Rule = llvm::StringSwitch<TaintPropagationRule>(Name) in REGISTER_SET_WITH_PROGRAMSTATE()
315 FnCheck evalFunction = llvm::StringSwitch<FnCheck>(Name) in addSourcesPre()
379 FnCheck evalFunction = llvm::StringSwitch<FnCheck>(Name) in addSourcesPost()
673 unsigned ArgNum = llvm::StringSwitch<unsigned>(Name) in checkSystemCall()
DNoReturnFunctionChecker.cpp58 = llvm::StringSwitch<bool>(StringRef(II->getName())) in checkPostCall()
DMacOSXAPIChecker.cpp111 llvm::StringSwitch<SubChecker>(Name) in checkPreStmt()
DExprInspectionChecker.cpp40 FnCheck Handler = llvm::StringSwitch<FnCheck>(C.getCalleeName(CE)) in evalCall()
/external/clang/lib/Driver/
DJob.cpp40 bool Res = llvm::StringSwitch<bool>(Flag) in skipArgs()
60 Res = llvm::StringSwitch<bool>(Flag) in skipArgs()
/external/llvm/lib/Analysis/
DLibCallSemantics.cpp71 return StringSwitch<EHPersonality>(F->getName()) in classifyEHPersonality()
/external/llvm/lib/TableGen/
DTGLexer.cpp266 tgtok::TokKind Kind = StringSwitch<tgtok::TokKind>(Str) in LexIdentifier()
467 StringSwitch<tgtok::TokKind>(StringRef(Start, CurPtr - Start)) in LexExclaim()
/external/llvm/lib/Target/Mips/MCTargetDesc/
DMipsABIInfo.cpp73 return StringSwitch<MipsABIInfo>(CPU) in computeTargetABI()
/external/llvm/include/llvm/MC/
DMCLinkerOptimizationHint.h54 return StringSwitch<int>(Name) in MCLOHNameToId()

1234