Home
last modified time | relevance | path

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

1234

/external/llvm/include/llvm/ADT/
DStringSwitch.h43 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/
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()
95 return llvm::StringSwitch<OpenMPDependClauseKind>(Str) in getOpenMPSimpleClauseType()
100 return llvm::StringSwitch<OpenMPLinearClauseKind>(Str) in getOpenMPSimpleClauseType()
105 return llvm::StringSwitch<OpenMPMapClauseKind>(Str) in getOpenMPSimpleClauseType()
DSanitizers.cpp21 SanitizerMask ParsedKind = llvm::StringSwitch<SanitizerMask>(Value) in parseSanitizerValue()
DTargets.cpp829 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/
DDwarf.cpp32 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()
DTargetParser.cpp163 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()
DHost.cpp602 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()
DTriple.cpp230 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/
Dinstantiate-non-type-template-parameter.cpp6 class StringSwitch { class
14 (void)StringSwitch<int>(); in test_stringswitch()
/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/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/llvm/lib/Analysis/
DObjCARCInstKind.cpp90 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()
DEHPersonalities.cpp27 return StringSwitch<EHPersonality>(F->getName()) in classifyEHPersonality()
/external/clang/lib/Frontend/
DFrontendOptions.cpp15 return llvm::StringSwitch<InputKind>(Extension) in getInputKindForExtension()
DLangStandards.cpp32 Kind K = llvm::StringSwitch<Kind>(Name) in getLangStandardForName()
DCompilerInvocation.cpp144 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/
Dllvm-cov.cpp61 MainFunction Func = StringSwitch<MainFunction>(argv[1]) in main()
/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()
DMacOSXAPIChecker.cpp111 llvm::StringSwitch<SubChecker>(Name) in checkPreStmt()
DNoReturnFunctionChecker.cpp58 = llvm::StringSwitch<bool>(StringRef(II->getName())) in checkPostCall()
/external/clang/lib/Driver/
DJob.cpp42 bool Res = llvm::StringSwitch<bool>(Flag) in skipArgs()
63 Res = llvm::StringSwitch<bool>(Flag) in skipArgs()
/external/clang/lib/Sema/
DSemaStmtAttr.cpp60 llvm::StringSwitch<const char *>(PragmaNameLoc->Ident->getName()) in handleLoopHintAttr()
92 Option = llvm::StringSwitch<LoopHintAttr::OptionType>( in handleLoopHintAttr()
/external/clang/lib/CodeGen/
DBackendUtil.cpp452 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/
DTGLexer.cpp266 tgtok::TokKind Kind = StringSwitch<tgtok::TokKind>(Str) in LexIdentifier()
467 StringSwitch<tgtok::TokKind>(StringRef(Start, CurPtr - Start)) in LexExclaim()

1234