Home
last modified time | relevance | path

Searched refs:StrVal (Results 1 – 25 of 27) 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;
DLLParser.cpp2690 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-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;
DLLParser.cpp2966 ID.StrVal = Lex.getStrVal(); in ParseValID()
2974 ID.StrVal = Lex.getStrVal(); in ParseValID()
3106 ParseStringConstant(ID.StrVal) || in ParseValID()
3140 } else if (!ForwardRefVals.count(Fn.StrVal)) { in ParseValID()
3141 GV = M->getNamedValue(Fn.StrVal); in ParseValID()
3176 BB = BlockAddressPFS->GetBB(Label.StrVal, Label.Loc); in ParseValID()
3184 F->getValueSymbolTable()->lookup(Label.StrVal)); in ParseValID()
4904 V = PFS->GetVal(ID.StrVal, Ty, ID.Loc, IsCall); in ConvertValIDToValue()
4909 V = InlineAsm::get(ID.FTy, ID.StrVal, ID.StrVal2, ID.UIntVal & 1, in ConvertValIDToValue()
4915 V = GetGlobalVal(ID.StrVal, Ty, ID.Loc); in ConvertValIDToValue()
[all …]
/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-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/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/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-7.0/llvm/lib/Analysis/
DConstantFolding.cpp632 APInt StrVal(NumBits, 0); in ConstantFoldLoadFromConstPtr() local
637 StrVal = (StrVal << 8) | SingleChar; in ConstantFoldLoadFromConstPtr()
642 StrVal = (StrVal << 8) | SingleChar; in ConstantFoldLoadFromConstPtr()
646 StrVal = (StrVal << 8) | SingleChar; in ConstantFoldLoadFromConstPtr()
649 Constant *Res = ConstantInt::get(CE->getContext(), StrVal); in ConstantFoldLoadFromConstPtr()
/external/llvm/lib/IR/
DAsmWriter.cpp1156 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/swiftshader/third_party/llvm-7.0/llvm/lib/IR/
DAsmWriter.cpp1304 SmallString<128> StrVal; in WriteConstantInternal() local
1305 APF.toString(StrVal, 6, 0, false); in WriteConstantInternal()
1310 assert(((StrVal[0] >= '0' && StrVal[0] <= '9') || in WriteConstantInternal()
1311 ((StrVal[0] == '-' || StrVal[0] == '+') && in WriteConstantInternal()
1312 (StrVal[1] >= '0' && StrVal[1] <= '9'))) && in WriteConstantInternal()
1315 if (APFloat(APFloat::IEEEdouble(), StrVal).convertToDouble() == Val) { in WriteConstantInternal()
1316 Out << StrVal; in WriteConstantInternal()
/external/clang/lib/CodeGen/
DCGStmt.cpp1774 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/
DCStringChecker.cpp2104 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/
DAsmPrinter.cpp2052 SmallString<8> StrVal; in emitGlobalConstantFP() local
2053 CFP->getValueAPF().toString(StrVal); in emitGlobalConstantFP()
2059 AP.OutStreamer->GetCommentOS() << ' ' << StrVal << '\n'; in emitGlobalConstantFP()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/CodeGen/AsmPrinter/
DAsmPrinter.cpp2353 SmallString<8> StrVal; in emitGlobalConstantFP() local
2354 APF.toString(StrVal); in emitGlobalConstantFP()
2360 AP.OutStreamer->GetCommentOS() << ' ' << StrVal << '\n'; in emitGlobalConstantFP()

12