/external/llvm/include/llvm/ADT/ |
D | StringSwitch.h | 42 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/ |
D | OpenMPKinds.cpp | 24 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()
|
D | Targets.cpp | 790 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/ |
D | instantiate-non-type-template-parameter.cpp | 6 class StringSwitch { class 14 (void)StringSwitch<int>(); in test_stringswitch()
|
/external/llvm/lib/Support/ |
D | Dwarf.cpp | 32 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()
|
D | Triple.cpp | 193 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()
|
D | Host.cpp | 594 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/ |
D | AnalyzerOptions.cpp | 30 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/ |
D | recursive-cxx-member-calls.cpp | 83 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/ |
D | MultilibTest.cpp | 163 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/ |
D | ARCInstKind.cpp | 88 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/ |
D | FrontendOptions.cpp | 15 return llvm::StringSwitch<InputKind>(Extension) in getInputKindForExtension()
|
D | LangStandards.cpp | 32 Kind K = llvm::StringSwitch<Kind>(Name) in getLangStandardForName()
|
D | CompilerInvocation.cpp | 140 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/ |
D | llvm-cov.cpp | 54 MainFunction Func = StringSwitch<MainFunction>(argv[1]) in main()
|
/external/clang/lib/Sema/ |
D | SemaStmtAttr.cpp | 60 llvm::StringSwitch<const char *>(PragmaNameLoc->Ident->getName()) in handleLoopHintAttr() 80 Option = llvm::StringSwitch<LoopHintAttr::OptionType>(OptionInfo->getName()) in handleLoopHintAttr()
|
/external/clang/lib/StaticAnalyzer/Checkers/ |
D | GenericTaintChecker.cpp | 206 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()
|
D | NoReturnFunctionChecker.cpp | 58 = llvm::StringSwitch<bool>(StringRef(II->getName())) in checkPostCall()
|
D | MacOSXAPIChecker.cpp | 111 llvm::StringSwitch<SubChecker>(Name) in checkPreStmt()
|
D | ExprInspectionChecker.cpp | 40 FnCheck Handler = llvm::StringSwitch<FnCheck>(C.getCalleeName(CE)) in evalCall()
|
/external/clang/lib/Driver/ |
D | Job.cpp | 40 bool Res = llvm::StringSwitch<bool>(Flag) in skipArgs() 60 Res = llvm::StringSwitch<bool>(Flag) in skipArgs()
|
/external/llvm/lib/Analysis/ |
D | LibCallSemantics.cpp | 71 return StringSwitch<EHPersonality>(F->getName()) in classifyEHPersonality()
|
/external/llvm/lib/TableGen/ |
D | TGLexer.cpp | 266 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/ |
D | MipsABIInfo.cpp | 73 return StringSwitch<MipsABIInfo>(CPU) in computeTargetABI()
|
/external/llvm/include/llvm/MC/ |
D | MCLinkerOptimizationHint.h | 54 return StringSwitch<int>(Name) in MCLOHNameToId()
|