/external/llvm/include/llvm/ADT/ |
D | StringSwitch.h | 43 class StringSwitch { 53 explicit StringSwitch(StringRef S) in StringSwitch() function 58 StringSwitch& Case(const char (&S)[N], const T& Value) { in Case() 69 StringSwitch& EndsWith(const char (&S)[N], const T &Value) { in EndsWith() 80 StringSwitch& StartsWith(const char (&S)[N], const T &Value) { in StartsWith() 91 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() 118 StringSwitch& Cases(const char (&S0)[N0], const char (&S1)[N1], in Cases() 134 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() 95 return llvm::StringSwitch<OpenMPDependClauseKind>(Str) in getOpenMPSimpleClauseType() 100 return llvm::StringSwitch<OpenMPLinearClauseKind>(Str) in getOpenMPSimpleClauseType() 105 return llvm::StringSwitch<OpenMPMapClauseKind>(Str) in getOpenMPSimpleClauseType()
|
D | Sanitizers.cpp | 21 SanitizerMask ParsedKind = llvm::StringSwitch<SanitizerMask>(Value) in parseSanitizerValue()
|
D | Targets.cpp | 829 bool CPUKnown = llvm::StringSwitch<bool>(Name) in setCPU() 1126 ArchDefineTypes defs = (ArchDefineTypes)llvm::StringSwitch<int>(CPU) in getTargetDefines() 1287 Features["altivec"] = llvm::StringSwitch<bool>(CPU) in initFeatureMap() 1302 Features["crypto"] = llvm::StringSwitch<bool>(CPU) in initFeatureMap() 1306 Features["power8-vector"] = llvm::StringSwitch<bool>(CPU) in initFeatureMap() 1310 Features["bpermd"] = llvm::StringSwitch<bool>(CPU) in initFeatureMap() 1315 Features["extdiv"] = llvm::StringSwitch<bool>(CPU) in initFeatureMap() 1320 Features["direct-move"] = llvm::StringSwitch<bool>(CPU) in initFeatureMap() 1324 Features["vsx"] = llvm::StringSwitch<bool>(CPU) in initFeatureMap() 1337 return llvm::StringSwitch<bool>(Feature) in hasFeature() [all …]
|
/external/llvm/lib/Support/ |
D | Dwarf.cpp | 32 return StringSwitch<unsigned>(TagString) in getTag() 276 return StringSwitch<unsigned>(OperationEncodingString) in getOperationEncoding() 293 return StringSwitch<unsigned>(EncodingString) in getAttributeEncoding() 352 return StringSwitch<unsigned>(VirtualityString) in getVirtuality() 371 return StringSwitch<unsigned>(LanguageString) in getLanguage() 477 return StringSwitch<unsigned>(MacinfoString) in getMacinfo()
|
D | TargetParser.cpp | 163 return StringSwitch<unsigned>(CPU) in getDefaultFPU() 174 return StringSwitch<unsigned>(CPU) in getDefaultExtensions() 377 return StringSwitch<StringRef>(HWDiv) in getHWDivSynonym() 383 return StringSwitch<StringRef>(FPU) in getFPUSynonym() 400 return StringSwitch<StringRef>(Arch) in getArchSynonym() 517 return StringSwitch<unsigned>(Arch) in parseArchISA()
|
D | Host.cpp | 602 return StringSwitch<const char *>(StringRef(CPUStart, CPULen)) in getHostCPUName() 652 return StringSwitch<const char *>(Lines[I].substr(8).ltrim("\t :")) in getHostCPUName() 673 return StringSwitch<const char *>(Lines[I].substr(8).ltrim("\t :")) in getHostCPUName() 872 StringRef LLVMFeatureStr = StringSwitch<StringRef>(CPUFeatures[I]) in getHostCPUFeatures()
|
D | Triple.cpp | 230 return StringSwitch<Triple::ArchType>(Name) in getArchTypeForLLVMName() 336 auto AT = StringSwitch<Triple::ArchType>(ArchName) in parseArch() 398 return StringSwitch<Triple::VendorType>(VendorName) in parseVendor() 415 return StringSwitch<Triple::OSType>(OSName) in parseOS() 448 return StringSwitch<Triple::EnvironmentType>(EnvironmentName) in parseEnvironment() 466 return StringSwitch<Triple::ObjectFormatType>(EnvironmentName) in parseFormat() 478 return StringSwitch<Triple::SubArchType>(SubArchName) in parseSubArch()
|
/external/clang/test/SemaTemplate/ |
D | instantiate-non-type-template-parameter.cpp | 6 class StringSwitch { class 14 (void)StringSwitch<int>(); in test_stringswitch()
|
/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/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/llvm/lib/Analysis/ |
D | ObjCARCInstKind.cpp | 90 return StringSwitch<ARCInstKind>(F->getName()) in GetFunctionClass() 103 return StringSwitch<ARCInstKind>(F->getName()) in GetFunctionClass() 126 return StringSwitch<ARCInstKind>(F->getName()) in GetFunctionClass() 143 return StringSwitch<ARCInstKind>(F->getName()) in GetFunctionClass() 151 return StringSwitch<ARCInstKind>(F->getName()) in GetFunctionClass()
|
D | EHPersonalities.cpp | 27 return StringSwitch<EHPersonality>(F->getName()) in classifyEHPersonality()
|
/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 | 144 AnalysisStores Value = llvm::StringSwitch<AnalysisStores>(Name) in ParseAnalyzerArgs() 160 AnalysisConstraints Value = llvm::StringSwitch<AnalysisConstraints>(Name) in ParseAnalyzerArgs() 176 AnalysisDiagClients Value = llvm::StringSwitch<AnalysisDiagClients>(Name) in ParseAnalyzerArgs() 192 AnalysisPurgeMode Value = llvm::StringSwitch<AnalysisPurgeMode>(Name) in ParseAnalyzerArgs() 208 AnalysisInliningMode Value = llvm::StringSwitch<AnalysisInliningMode>(Name) in ParseAnalyzerArgs() 335 llvm::StringSwitch<DiagnosticLevelMask>(Level) in parseDiagnosticLevelMask() 403 llvm::StringSwitch<CodeGenOptions::DebugInfoKind>(A->getValue()) in ParseCodeGenArgs() 410 llvm::StringSwitch<CodeGenOptions::DebuggerKind>(A->getValue()) in ParseCodeGenArgs() 473 llvm::EABI EABIVersion = llvm::StringSwitch<llvm::EABI>(Value) in ParseCodeGenArgs() 618 unsigned Method = llvm::StringSwitch<unsigned>(Name) in ParseCodeGenArgs() [all …]
|
/external/llvm/tools/llvm-cov/ |
D | llvm-cov.cpp | 61 MainFunction Func = StringSwitch<MainFunction>(argv[1]) in main()
|
/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 | MacOSXAPIChecker.cpp | 111 llvm::StringSwitch<SubChecker>(Name) in checkPreStmt()
|
D | NoReturnFunctionChecker.cpp | 58 = llvm::StringSwitch<bool>(StringRef(II->getName())) in checkPostCall()
|
/external/clang/lib/Driver/ |
D | Job.cpp | 42 bool Res = llvm::StringSwitch<bool>(Flag) in skipArgs() 63 Res = llvm::StringSwitch<bool>(Flag) in skipArgs()
|
/external/clang/lib/Sema/ |
D | SemaStmtAttr.cpp | 60 llvm::StringSwitch<const char *>(PragmaNameLoc->Ident->getName()) in handleLoopHintAttr() 92 Option = llvm::StringSwitch<LoopHintAttr::OptionType>( in handleLoopHintAttr()
|
/external/clang/lib/CodeGen/ |
D | BackendUtil.cpp | 452 llvm::StringSwitch<unsigned>(CodeGenOpts.CodeModel) in CreateTargetMachine() 506 llvm::StringSwitch<llvm::ThreadModel::Model>(CodeGenOpts.ThreadModel) in CreateTargetMachine() 515 llvm::StringSwitch<llvm::FloatABI::ABIType>(CodeGenOpts.FloatABI) in CreateTargetMachine() 539 Options.EABIVersion = llvm::StringSwitch<llvm::EABI>(CodeGenOpts.EABIVersion) in CreateTargetMachine()
|
/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()
|