/external/clang/lib/Lex/ |
D | Pragma.cpp | 224 std::string StrVal = getSpelling(StrTok); in Handle_Pragma() local 231 if (StrVal[0] == 'L' || StrVal[0] == 'U' || in Handle_Pragma() 232 (StrVal[0] == 'u' && StrVal[1] != '8')) in Handle_Pragma() 233 StrVal.erase(StrVal.begin()); in Handle_Pragma() 234 else if (StrVal[0] == 'u') in Handle_Pragma() 235 StrVal.erase(StrVal.begin(), StrVal.begin() + 2); in Handle_Pragma() 237 if (StrVal[0] == 'R') { in Handle_Pragma() 240 assert(StrVal[1] == '"' && StrVal[StrVal.size() - 1] == '"' && in Handle_Pragma() 245 while (StrVal[2 + NumDChars] != '(') { in Handle_Pragma() 246 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 | 61 std::string StrVal, StrVal2; member 79 return StrVal < RHS.StrVal;
|
D | LLParser.cpp | 2351 ID.StrVal = Lex.getStrVal(); in ParseValID() 2359 ID.StrVal = Lex.getStrVal(); in ParseValID() 2488 ParseStringConstant(ID.StrVal) || in ParseValID() 2522 } else if (!ForwardRefVals.count(Fn.StrVal)) { in ParseValID() 2523 GV = M->getNamedValue(Fn.StrVal); in ParseValID() 2558 BB = BlockAddressPFS->GetBB(Label.StrVal, Label.Loc); in ParseValID() 2566 F->getValueSymbolTable().lookup(Label.StrVal)); in ParseValID() 3908 V = PFS->GetVal(ID.StrVal, Ty, ID.Loc); in ConvertValIDToValue() 3916 V = InlineAsm::get(FTy, ID.StrVal, ID.StrVal2, ID.UIntVal&1, in ConvertValIDToValue() 3921 V = GetGlobalVal(ID.StrVal, Ty, ID.Loc); in ConvertValIDToValue() [all …]
|
/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()
|
D | TGParser.cpp | 1184 case tgtok::StrVal: { in ParseSimpleValue() 1189 while (Lex.getCode() == tgtok::StrVal) { in ParseSimpleValue()
|
/external/llvm/lib/Target/CppBackend/ |
D | CPPBackend.cpp | 241 std::string StrVal = ftostr(CFP->getValueAPF()); in printCFP() local 243 while (StrVal[0] == ' ') in printCFP() 244 StrVal.erase(StrVal.begin()); in printCFP() 248 if (((StrVal[0] >= '0' && StrVal[0] <= '9') || in printCFP() 249 ((StrVal[0] == '-' || StrVal[0] == '+') && in printCFP() 250 (StrVal[1] >= '0' && StrVal[1] <= '9'))) && in printCFP() 251 (CFP->isExactlyValue(atof(StrVal.c_str())))) { in printCFP() 253 Out << StrVal; in printCFP() 255 Out << StrVal << "f"; in printCFP() 259 << "ULL) /* " << StrVal << " */"; in printCFP() [all …]
|
/external/llvm/lib/Analysis/ |
D | ConstantFolding.cpp | 565 APInt StrVal(NumBits, 0); in ConstantFoldLoadFromConstPtr() local 570 StrVal = (StrVal << 8) | SingleChar; in ConstantFoldLoadFromConstPtr() 575 StrVal = (StrVal << 8) | SingleChar; in ConstantFoldLoadFromConstPtr() 579 StrVal = (StrVal << 8) | SingleChar; in ConstantFoldLoadFromConstPtr() 582 Constant *Res = ConstantInt::get(CE->getContext(), StrVal); in ConstantFoldLoadFromConstPtr()
|
/external/llvm/lib/IR/ |
D | AsmWriter.cpp | 1064 SmallString<128> StrVal; in WriteConstantInternal() local 1065 raw_svector_ostream(StrVal) << Val; in WriteConstantInternal() 1071 if ((StrVal[0] >= '0' && StrVal[0] <= '9') || in WriteConstantInternal() 1072 ((StrVal[0] == '-' || StrVal[0] == '+') && in WriteConstantInternal() 1073 (StrVal[1] >= '0' && StrVal[1] <= '9'))) { in WriteConstantInternal() 1075 if (APFloat(APFloat::IEEEdouble, StrVal).convertToDouble() == Val) { in WriteConstantInternal() 1076 Out << StrVal; in WriteConstantInternal()
|
/external/clang/lib/CodeGen/ |
D | CGStmt.cpp | 1787 StringRef StrVal = Str->getString(); in getAsmSrcLocInfo() local 1788 if (!StrVal.empty()) { in getAsmSrcLocInfo() 1794 for (unsigned i = 0, e = StrVal.size()-1; i != e; ++i) { in getAsmSrcLocInfo() 1795 if (StrVal[i] != '\n') continue; in getAsmSrcLocInfo()
|
/external/clang/lib/StaticAnalyzer/Checkers/ |
D | CStringChecker.cpp | 1968 SVal StrVal = state->getSVal(Init, C.getLocationContext()); in checkPreStmt() local 1969 assert(StrVal.isValid() && "Initializer string is unknown or undefined"); in checkPreStmt() 1971 getCStringLength(C, state, Init, StrVal).castAs<DefinedOrUnknownSVal>(); in checkPreStmt()
|
/external/llvm/lib/CodeGen/AsmPrinter/ |
D | AsmPrinter.cpp | 1984 SmallString<8> StrVal; in emitGlobalConstantFP() local 1985 CFP->getValueAPF().toString(StrVal); in emitGlobalConstantFP() 1991 AP.OutStreamer.GetCommentOS() << ' ' << StrVal << '\n'; in emitGlobalConstantFP()
|