Home
last modified time | relevance | path

Searched refs:CharNo (Results 1 – 9 of 9) sorted by relevance

/external/llvm/lib/TableGen/
DStringMatcher.cpp45 unsigned CharNo, unsigned IndentCount) const { in EmitStringMatcherForChar() argument
51 if (CharNo == Matches[0]->first.size()) { in EmitStringMatcherForChar()
73 MatchesByLetter[Matches[i]->first[CharNo]].push_back(Matches[i]); in EmitStringMatcherForChar()
80 unsigned NumChars = FirstNonCommonLetter-CharNo; in EmitStringMatcherForChar()
86 OS << Indent << "if (" << StrVariableName << "[" << CharNo << "] != '" in EmitStringMatcherForChar()
87 << Matches[0]->first[CharNo] << "')\n"; in EmitStringMatcherForChar()
92 OS << Indent << "if (memcmp(" << StrVariableName << ".data()+" << CharNo in EmitStringMatcherForChar()
93 << ", \"" << Matches[0]->first.substr(CharNo, NumChars) << "\", " in EmitStringMatcherForChar()
103 OS << Indent << "switch (" << StrVariableName << "[" << CharNo << "]) {\n"; in EmitStringMatcherForChar()
113 if (EmitStringMatcherForChar(LI->second, CharNo+1, IndentCount+1)) in EmitStringMatcherForChar()
/external/swiftshader/third_party/LLVM/utils/TableGen/
DStringMatcher.cpp45 unsigned CharNo, unsigned IndentCount) const { in EmitStringMatcherForChar() argument
51 if (CharNo == Matches[0]->first.size()) { in EmitStringMatcherForChar()
73 MatchesByLetter[Matches[i]->first[CharNo]].push_back(Matches[i]); in EmitStringMatcherForChar()
80 unsigned NumChars = FirstNonCommonLetter-CharNo; in EmitStringMatcherForChar()
86 OS << Indent << "if (" << StrVariableName << "[" << CharNo << "] != '" in EmitStringMatcherForChar()
87 << Matches[0]->first[CharNo] << "')\n"; in EmitStringMatcherForChar()
92 OS << Indent << "if (" << StrVariableName << ".substr(" << CharNo << ", " in EmitStringMatcherForChar()
94 OS << Matches[0]->first.substr(CharNo, NumChars) << "\")\n"; in EmitStringMatcherForChar()
103 OS << Indent << "switch (" << StrVariableName << "[" << CharNo << "]) {\n"; in EmitStringMatcherForChar()
113 if (EmitStringMatcherForChar(LI->second, CharNo+1, IndentCount+1)) in EmitStringMatcherForChar()
DStringMatcher.h49 unsigned CharNo, unsigned IndentCount) const;
/external/swiftshader/third_party/llvm-7.0/llvm/lib/TableGen/
DStringMatcher.cpp50 const std::vector<const StringPair *> &Matches, unsigned CharNo, in EmitStringMatcherForChar() argument
57 if (CharNo == Matches[0]->first.size()) { in EmitStringMatcherForChar()
80 MatchesByLetter[Matches[i]->first[CharNo]].push_back(Matches[i]); in EmitStringMatcherForChar()
87 unsigned NumChars = FirstNonCommonLetter-CharNo; in EmitStringMatcherForChar()
93 OS << Indent << "if (" << StrVariableName << "[" << CharNo << "] != '" in EmitStringMatcherForChar()
94 << Matches[0]->first[CharNo] << "')\n"; in EmitStringMatcherForChar()
99 OS << Indent << "if (memcmp(" << StrVariableName << ".data()+" << CharNo in EmitStringMatcherForChar()
100 << ", \"" << Matches[0]->first.substr(CharNo, NumChars) << "\", " in EmitStringMatcherForChar()
111 OS << Indent << "switch (" << StrVariableName << "[" << CharNo << "]) {\n"; in EmitStringMatcherForChar()
121 if (EmitStringMatcherForChar(LI->second, CharNo + 1, IndentCount + 1, in EmitStringMatcherForChar()
/external/llvm/include/llvm/TableGen/
DStringMatcher.h49 unsigned CharNo, unsigned IndentCount) const;
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/TableGen/
DStringMatcher.h50 unsigned CharNo, unsigned IndentCount,
/external/clang/include/clang/AST/
DCommentLexer.h308 const unsigned CharNo = Loc - BufferStart; in getSourceLocation() local
309 return FileLoc.getLocWithOffset(CharNo); in getSourceLocation()
/external/clang/lib/Lex/
DLexer.cpp701 unsigned CharNo, in AdvanceToTokenCharacter() argument
711 if (Invalid || (CharNo == 0 && Lexer::isObviouslySimpleCharacter(*TokPtr))) in AdvanceToTokenCharacter()
720 if (CharNo == 0) in AdvanceToTokenCharacter()
723 --CharNo; in AdvanceToTokenCharacter()
729 for (; CharNo; --CharNo) { in AdvanceToTokenCharacter()
1044 Preprocessor &PP, SourceLocation FileLoc, unsigned CharNo, unsigned TokLen);
1047 unsigned CharNo, unsigned TokLen) { in GetMappedTokenLoc() argument
1058 SpellingLoc = SpellingLoc.getLocWithOffset(CharNo); in GetMappedTokenLoc()
1077 unsigned CharNo = Loc-BufferStart; in getSourceLocation() local
1079 return FileLoc.getLocWithOffset(CharNo); in getSourceLocation()
[all …]
/external/clang/lib/AST/
DCommentParser.cpp69 const unsigned CharNo = Pos.BufferPtr - Pos.BufferStart; in getSourceLocation() local
70 return Pos.BufferStartLoc.getLocWithOffset(CharNo); in getSourceLocation()