Home
last modified time | relevance | path

Searched refs:StrVal (Results 1 – 25 of 38) sorted by relevance

12

/external/clang/lib/Lex/
DPragma.cpp229 std::string StrVal = getSpelling(StrTok); in Handle_Pragma() local
236 if (StrVal[0] == 'L' || StrVal[0] == 'U' || in Handle_Pragma()
237 (StrVal[0] == 'u' && StrVal[1] != '8')) in Handle_Pragma()
238 StrVal.erase(StrVal.begin()); in Handle_Pragma()
239 else if (StrVal[0] == 'u') in Handle_Pragma()
240 StrVal.erase(StrVal.begin(), StrVal.begin() + 2); in Handle_Pragma()
242 if (StrVal[0] == 'R') { in Handle_Pragma()
245 assert(StrVal[1] == '"' && StrVal[StrVal.size() - 1] == '"' && in Handle_Pragma()
250 while (StrVal[2 + NumDChars] != '(') { in Handle_Pragma()
251 assert(NumDChars < (StrVal.size() - 5) / 2 && in Handle_Pragma()
[all …]
/external/llvm/lib/AsmParser/
DLLLexer.cpp216 StrVal.assign(TokStart, CurPtr-1); in LexToken()
266 StrVal.assign(TokStart, CurPtr - 1); in LexDollar()
282 StrVal.assign(TokStart + 2, CurPtr - 1); in LexDollar()
283 UnEscapeLexed(StrVal); in LexDollar()
284 if (StringRef(StrVal).find_first_of(0) != StringRef::npos) { in LexDollar()
311 StrVal.assign(Start, CurPtr-1); in ReadString()
312 UnEscapeLexed(StrVal); in ReadString()
330 StrVal.assign(NameStart, CurPtr); in ReadVarName()
349 StrVal.assign(TokStart+2, CurPtr-1); in LexVar()
350 UnEscapeLexed(StrVal); in LexVar()
[all …]
DLLLexer.h39 std::string StrVal; variable
56 const std::string &getStrVal() const { return StrVal; } in getStrVal()
DLLParser.h63 std::string StrVal, StrVal2; member
72 StrVal(RHS.StrVal), StrVal2(RHS.StrVal2), APSIntVal(RHS.APSIntVal), in ValID()
83 return StrVal < RHS.StrVal;
/external/swiftshader/third_party/llvm-7.0/llvm/lib/AsmParser/
DLLLexer.cpp211 StrVal.assign(TokStart, CurPtr-1); in LexToken()
266 StrVal.assign(TokStart, CurPtr - 1); in LexDollar()
282 StrVal.assign(TokStart + 2, CurPtr - 1); in LexDollar()
283 UnEscapeLexed(StrVal); in LexDollar()
284 if (StringRef(StrVal).find_first_of(0) != StringRef::npos) { in LexDollar()
311 StrVal.assign(Start, CurPtr-1); in ReadString()
312 UnEscapeLexed(StrVal); in ReadString()
330 StrVal.assign(NameStart, CurPtr); in ReadVarName()
365 StrVal.assign(TokStart+2, CurPtr-1); in LexVar()
366 UnEscapeLexed(StrVal); in LexVar()
[all …]
DLLLexer.h39 std::string StrVal; variable
60 const std::string &getStrVal() const { return StrVal; } in getStrVal()
DLLParser.h64 std::string StrVal, StrVal2; member
73 StrVal(RHS.StrVal), StrVal2(RHS.StrVal2), APSIntVal(RHS.APSIntVal), in ValID()
84 return StrVal < RHS.StrVal;
/external/swiftshader/third_party/LLVM/lib/AsmParser/
DLLLexer.cpp241 StrVal.assign(TokStart, CurPtr-1); in LexToken()
252 StrVal.assign(TokStart, CurPtr-1); in LexToken()
303 StrVal.assign(TokStart+2, CurPtr-1); in LexAt()
304 UnEscapeLexed(StrVal); in LexAt()
340 StrVal.assign(Start, CurPtr-1); in ReadString()
341 UnEscapeLexed(StrVal); in ReadString()
357 StrVal.assign(NameStart, CurPtr); in ReadVarName()
421 StrVal.assign(TokStart+1, CurPtr); // Skip ! in LexExclaim()
422 UnEscapeLexed(StrVal); in LexExclaim()
446 StrVal.assign(StartChar-1, CurPtr++); in LexIdentifier()
[all …]
DLLLexer.h39 std::string StrVal; variable
58 const std::string &getStrVal() const { return StrVal; } in getStrVal()
DLLParser.h60 std::string StrVal, StrVal2; member
80 return StrVal < RHS.StrVal;
/external/swiftshader/third_party/llvm-7.0/llvm/lib/CodeGen/MIRParser/
DMILexer.cpp74 MIToken &MIToken::setStringValue(StringRef StrVal) { in setStringValue() argument
75 StringValue = StrVal; in setStringValue()
79 MIToken &MIToken::setOwnedStringValue(std::string StrVal) { in setOwnedStringValue() argument
80 StringValueStorage = std::move(StrVal); in setOwnedStringValue()
495 StringRef StrVal = Range.upto(C); in maybeLexHexadecimalLiteral() local
496 if (StrVal.size() <= PrefLen) in maybeLexHexadecimalLiteral()
514 StringRef StrVal = Range.upto(C); in maybeLexNumericalLiteral() local
515 Token.reset(MIToken::IntegerLiteral, StrVal).setIntegerValue(APSInt(StrVal)); in maybeLexNumericalLiteral()
541 StringRef StrVal = Range.upto(C); in maybeLexExlaim() local
542 Token.reset(getMetadataKeywordKind(StrVal), StrVal); in maybeLexExlaim()
[all …]
DMILexer.h164 MIToken &setStringValue(StringRef StrVal);
165 MIToken &setOwnedStringValue(std::string StrVal);
/external/llvm/lib/CodeGen/MIRParser/
DMILexer.cpp68 MIToken &MIToken::setStringValue(StringRef StrVal) { in setStringValue() argument
69 StringValue = StrVal; in setStringValue()
73 MIToken &MIToken::setOwnedStringValue(std::string StrVal) { in setOwnedStringValue() argument
74 StringValueStorage = std::move(StrVal); in setOwnedStringValue()
450 StringRef StrVal = Range.upto(C); in maybeLexNumericalLiteral() local
451 Token.reset(MIToken::IntegerLiteral, StrVal).setIntegerValue(APSInt(StrVal)); in maybeLexNumericalLiteral()
476 StringRef StrVal = Range.upto(C); in maybeLexExlaim() local
477 Token.reset(getMetadataKeywordKind(StrVal), StrVal); in maybeLexExlaim()
480 "use of unknown metadata keyword '" + StrVal + "'"); in maybeLexExlaim()
DMILexer.h137 MIToken &setStringValue(StringRef StrVal);
138 MIToken &setOwnedStringValue(std::string StrVal);
/external/swiftshader/third_party/LLVM/lib/TableGen/
DTGLexer.h55 Id, StrVal, VarName, CodeFragment enumerator
93 assert((CurCode == tgtok::Id || CurCode == tgtok::StrVal || in getCurStrVal()
DTGLexer.cpp190 return tgtok::StrVal; in LexString()
253 if (Tok != tgtok::StrVal) { in LexInclude()
/external/llvm/lib/TableGen/
DTGLexer.h61 Id, StrVal, VarName, CodeFragment enumerator
102 assert((CurCode == tgtok::Id || CurCode == tgtok::StrVal || in getCurStrVal()
DTGLexer.cpp232 return tgtok::StrVal; in LexString()
295 if (Tok != tgtok::StrVal) { in LexInclude()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/TableGen/
DTGLexer.h62 Id, StrVal, VarName, CodeFragment enumerator
103 assert((CurCode == tgtok::Id || CurCode == tgtok::StrVal || in getCurStrVal()
DTGLexer.cpp234 return tgtok::StrVal; in LexString()
297 if (Tok != tgtok::StrVal) { in LexInclude()
/external/swiftshader/third_party/LLVM/lib/Target/CppBackend/
DCPPBackend.cpp223 std::string StrVal = ftostr(CFP->getValueAPF()); in printCFP() local
225 while (StrVal[0] == ' ') in printCFP()
226 StrVal.erase(StrVal.begin()); in printCFP()
230 if (((StrVal[0] >= '0' && StrVal[0] <= '9') || in printCFP()
231 ((StrVal[0] == '-' || StrVal[0] == '+') && in printCFP()
232 (StrVal[1] >= '0' && StrVal[1] <= '9'))) && in printCFP()
233 (CFP->isExactlyValue(atof(StrVal.c_str())))) { in printCFP()
235 Out << StrVal; in printCFP()
237 Out << StrVal << "f"; in printCFP()
241 << "ULL) /* " << StrVal << " */"; in printCFP()
[all …]
/external/swiftshader/third_party/LLVM/lib/Analysis/
DConstantFolding.cpp457 APInt StrVal(NumBits, 0); in ConstantFoldLoadFromConstPtr() local
462 StrVal = (StrVal << 8) | SingleChar; in ConstantFoldLoadFromConstPtr()
467 StrVal = (StrVal << 8) | SingleChar; in ConstantFoldLoadFromConstPtr()
471 StrVal = (StrVal << 8) | SingleChar; in ConstantFoldLoadFromConstPtr()
474 Constant *Res = ConstantInt::get(CE->getContext(), StrVal); in ConstantFoldLoadFromConstPtr()
/external/swiftshader/third_party/LLVM/lib/VMCore/
DAsmWriter.cpp722 SmallString<128> StrVal; in WriteConstantInternal() local
723 raw_svector_ostream(StrVal) << Val; in WriteConstantInternal()
729 if ((StrVal[0] >= '0' && StrVal[0] <= '9') || in WriteConstantInternal()
730 ((StrVal[0] == '-' || StrVal[0] == '+') && in WriteConstantInternal()
731 (StrVal[1] >= '0' && StrVal[1] <= '9'))) { in WriteConstantInternal()
733 if (atof(StrVal.c_str()) == Val) { in WriteConstantInternal()
734 Out << StrVal.str(); in WriteConstantInternal()
/external/llvm/lib/Analysis/
DConstantFolding.cpp584 APInt StrVal(NumBits, 0); in ConstantFoldLoadFromConstPtr() local
589 StrVal = (StrVal << 8) | SingleChar; in ConstantFoldLoadFromConstPtr()
594 StrVal = (StrVal << 8) | SingleChar; in ConstantFoldLoadFromConstPtr()
598 StrVal = (StrVal << 8) | SingleChar; in ConstantFoldLoadFromConstPtr()
601 Constant *Res = ConstantInt::get(CE->getContext(), StrVal); in ConstantFoldLoadFromConstPtr()
/external/swiftshader/third_party/LLVM/lib/Target/CBackend/
DCBackend.cpp668 std::string StrVal = ftostr(APF); in isFPCSafeToPrint() local
670 while (StrVal[0] == ' ') in isFPCSafeToPrint()
671 StrVal.erase(StrVal.begin()); in isFPCSafeToPrint()
675 if ((StrVal[0] >= '0' && StrVal[0] <= '9') || in isFPCSafeToPrint()
676 ((StrVal[0] == '-' || StrVal[0] == '+') && in isFPCSafeToPrint()
677 (StrVal[1] >= '0' && StrVal[1] <= '9'))) in isFPCSafeToPrint()
679 return APF.bitwiseIsEqual(APFloat(atof(StrVal.c_str()))); in isFPCSafeToPrint()

12