/external/clang/lib/Lex/ |
D | Pragma.cpp | 229 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/ |
D | LLLexer.cpp | 216 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 …]
|
D | LLLexer.h | 39 std::string StrVal; variable 56 const std::string &getStrVal() const { return StrVal; } in getStrVal()
|
D | LLParser.h | 63 std::string StrVal, StrVal2; member 72 StrVal(RHS.StrVal), StrVal2(RHS.StrVal2), APSIntVal(RHS.APSIntVal), in ValID() 83 return StrVal < RHS.StrVal;
|
D | LLParser.cpp | 2690 ID.StrVal = Lex.getStrVal(); in ParseValID() 2698 ID.StrVal = Lex.getStrVal(); in ParseValID() 2830 ParseStringConstant(ID.StrVal) || in ParseValID() 2864 } else if (!ForwardRefVals.count(Fn.StrVal)) { in ParseValID() 2865 GV = M->getNamedValue(Fn.StrVal); in ParseValID() 2900 BB = BlockAddressPFS->GetBB(Label.StrVal, Label.Loc); in ParseValID() 2908 F->getValueSymbolTable().lookup(Label.StrVal)); in ParseValID() 4393 V = PFS->GetVal(ID.StrVal, Ty, ID.Loc); in ConvertValIDToValue() 4398 V = InlineAsm::get(ID.FTy, ID.StrVal, ID.StrVal2, ID.UIntVal & 1, in ConvertValIDToValue() 4404 V = GetGlobalVal(ID.StrVal, Ty, ID.Loc); in ConvertValIDToValue() [all …]
|
/external/swiftshader/third_party/LLVM/lib/AsmParser/ |
D | LLLexer.cpp | 241 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 …]
|
D | LLLexer.h | 39 std::string StrVal; variable 58 const std::string &getStrVal() const { return StrVal; } in getStrVal()
|
D | LLParser.h | 60 std::string StrVal, StrVal2; member 80 return StrVal < RHS.StrVal;
|
D | LLParser.cpp | 76 TheFn = M->getFunction(Fn.StrVal); in ValidateEndOfModule() 139 Res = PFS->GetBB(Refs[i].first.StrVal, Refs[i].first.Loc); in ResolveForwardRefBlockAddresses() 147 TheFn->getValueSymbolTable().lookup(Refs[i].first.StrVal)); in ResolveForwardRefBlockAddresses() 1667 FunctionID.StrVal = F.getName(); in FinishFunction() 1901 ID.StrVal = Lex.getStrVal(); in ParseValID() 1909 ID.StrVal = Lex.getStrVal(); in ParseValID() 2036 ParseStringConstant(ID.StrVal) || in ParseValID() 2450 V = PFS->GetVal(ID.StrVal, Ty, ID.Loc); in ConvertValIDToValue() 2458 V = InlineAsm::get(FTy, ID.StrVal, ID.StrVal2, ID.UIntVal&1, ID.UIntVal>>1); in ConvertValIDToValue() 2472 V = GetGlobalVal(ID.StrVal, Ty, ID.Loc); in ConvertValIDToValue()
|
/external/llvm/lib/CodeGen/MIRParser/ |
D | MILexer.cpp | 68 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()
|
D | MILexer.h | 137 MIToken &setStringValue(StringRef StrVal); 138 MIToken &setOwnedStringValue(std::string StrVal);
|
/external/swiftshader/third_party/LLVM/lib/TableGen/ |
D | TGLexer.h | 55 Id, StrVal, VarName, CodeFragment enumerator 93 assert((CurCode == tgtok::Id || CurCode == tgtok::StrVal || in getCurStrVal()
|
D | TGLexer.cpp | 190 return tgtok::StrVal; in LexString() 253 if (Tok != tgtok::StrVal) { in LexInclude()
|
D | TGParser.cpp | 1049 case tgtok::StrVal: { in ParseSimpleValue() 1054 while (Lex.getCode() == tgtok::StrVal) { in ParseSimpleValue()
|
/external/llvm/lib/TableGen/ |
D | TGLexer.h | 61 Id, StrVal, VarName, CodeFragment enumerator 102 assert((CurCode == tgtok::Id || CurCode == tgtok::StrVal || in getCurStrVal()
|
D | TGLexer.cpp | 232 return tgtok::StrVal; in LexString() 295 if (Tok != tgtok::StrVal) { in LexInclude()
|
/external/swiftshader/third_party/LLVM/lib/Target/CppBackend/ |
D | CPPBackend.cpp | 223 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/ |
D | ConstantFolding.cpp | 457 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/ |
D | AsmWriter.cpp | 722 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/ |
D | ConstantFolding.cpp | 584 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/ |
D | CBackend.cpp | 668 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()
|
/external/llvm/lib/IR/ |
D | AsmWriter.cpp | 1156 SmallString<128> StrVal; in WriteConstantInternal() local 1157 raw_svector_ostream(StrVal) << Val; in WriteConstantInternal() 1163 if ((StrVal[0] >= '0' && StrVal[0] <= '9') || in WriteConstantInternal() 1164 ((StrVal[0] == '-' || StrVal[0] == '+') && in WriteConstantInternal() 1165 (StrVal[1] >= '0' && StrVal[1] <= '9'))) { in WriteConstantInternal() 1167 if (APFloat(APFloat::IEEEdouble, StrVal).convertToDouble() == Val) { in WriteConstantInternal() 1168 Out << StrVal; in WriteConstantInternal()
|
/external/clang/lib/CodeGen/ |
D | CGStmt.cpp | 1774 StringRef StrVal = Str->getString(); in getAsmSrcLocInfo() local 1775 if (!StrVal.empty()) { in getAsmSrcLocInfo() 1783 for (unsigned i = 0, e = StrVal.size() - 1; i != e; ++i) { in getAsmSrcLocInfo() 1784 if (StrVal[i] != '\n') continue; in getAsmSrcLocInfo()
|
/external/clang/lib/StaticAnalyzer/Checkers/ |
D | CStringChecker.cpp | 2104 SVal StrVal = state->getSVal(Init, C.getLocationContext()); in checkPreStmt() local 2105 assert(StrVal.isValid() && "Initializer string is unknown or undefined"); in checkPreStmt() 2107 getCStringLength(C, state, Init, StrVal).castAs<DefinedOrUnknownSVal>(); in checkPreStmt()
|
/external/llvm/lib/CodeGen/AsmPrinter/ |
D | AsmPrinter.cpp | 2052 SmallString<8> StrVal; in emitGlobalConstantFP() local 2053 CFP->getValueAPF().toString(StrVal); in emitGlobalConstantFP() 2059 AP.OutStreamer->GetCommentOS() << ' ' << StrVal << '\n'; in emitGlobalConstantFP()
|