/external/llvm-project/llvm/lib/Support/ |
D | SymbolRemappingReader.cpp | 42 SmallVector<StringRef, 4> Parts; in read() local 43 Line.split(Parts, ' ', /*MaxSplits*/-1, /*KeepEmpty*/false); in read() 45 if (Parts.size() != 3) in read() 50 Optional<FK> FragmentKind = StringSwitch<Optional<FK>>(Parts[0]) in read() 57 " found '" + Parts[0] + "'"); in read() 60 switch (Canonicalizer.addEquivalence(*FragmentKind, Parts[1], Parts[2])) { in read() 65 return ReportError("Manglings '" + Parts[1] + "' and '" + Parts[2] + "' " in read() 70 return ReportError("Could not demangle '" + Parts[1] + "' " in read() 71 "as a <" + Parts[0] + ">; invalid mangling?"); in read() 74 return ReportError("Could not demangle '" + Parts[2] + "' " in read() [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Support/ |
D | SymbolRemappingReader.cpp | 42 SmallVector<StringRef, 4> Parts; in read() local 43 Line.split(Parts, ' ', /*MaxSplits*/-1, /*KeepEmpty*/false); in read() 45 if (Parts.size() != 3) in read() 50 Optional<FK> FragmentKind = StringSwitch<Optional<FK>>(Parts[0]) in read() 57 " found '" + Parts[0] + "'"); in read() 60 switch (Canonicalizer.addEquivalence(*FragmentKind, Parts[1], Parts[2])) { in read() 65 return ReportError("Manglings '" + Parts[1] + "' and '" + Parts[2] + "' " in read() 70 return ReportError("Could not demangle '" + Parts[1] + "' " in read() 71 "as a <" + Parts[0] + ">; invalid mangling?"); in read() 74 return ReportError("Could not demangle '" + Parts[2] + "' " in read() [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/TextAPI/MachO/ |
D | PackedVersion.cpp | 29 SmallVector<StringRef, 3> Parts; in parse32() local 30 SplitString(Str, Parts, "."); in parse32() 32 if (Parts.size() > 3) in parse32() 36 if (getAsUnsignedInteger(Parts[0], 10, Num)) in parse32() 44 for (unsigned i = 1, ShiftNum = 8; i < Parts.size(); ++i, ShiftNum -= 8) { in parse32() 45 if (getAsUnsignedInteger(Parts[i], 10, Num)) in parse32() 64 SmallVector<StringRef, 5> Parts; in parse64() local 65 SplitString(Str, Parts, "."); in parse64() 67 if (Parts.size() > 5) in parse64() 71 if (getAsUnsignedInteger(Parts[0], 10, Num)) in parse64() [all …]
|
/external/llvm-project/llvm/lib/TextAPI/MachO/ |
D | PackedVersion.cpp | 29 SmallVector<StringRef, 3> Parts; in parse32() local 30 SplitString(Str, Parts, "."); in parse32() 32 if (Parts.size() > 3) in parse32() 36 if (getAsUnsignedInteger(Parts[0], 10, Num)) in parse32() 44 for (unsigned i = 1, ShiftNum = 8; i < Parts.size(); ++i, ShiftNum -= 8) { in parse32() 45 if (getAsUnsignedInteger(Parts[i], 10, Num)) in parse32() 64 SmallVector<StringRef, 5> Parts; in parse64() local 65 SplitString(Str, Parts, "."); in parse64() 67 if (Parts.size() > 5) in parse64() 71 if (getAsUnsignedInteger(Parts[0], 10, Num)) in parse64() [all …]
|
/external/llvm-project/clang/lib/Index/ |
D | CommentToXML.cpp | 443 FullCommentParts Parts(C, Traits); in visitFullComment() local 446 if (Parts.Headerfile) in visitFullComment() 447 visit(Parts.Headerfile); in visitFullComment() 448 if (Parts.Brief) in visitFullComment() 449 visit(Parts.Brief); in visitFullComment() 450 else if (Parts.FirstParagraph) { in visitFullComment() 452 visitNonStandaloneParagraphComment(Parts.FirstParagraph); in visitFullComment() 457 for (unsigned i = 0, e = Parts.MiscBlocks.size(); i != e; ++i) { in visitFullComment() 458 const Comment *C = Parts.MiscBlocks[i]; in visitFullComment() 459 if (FirstParagraphIsBrief && C == Parts.FirstParagraph) in visitFullComment() [all …]
|
/external/clang/lib/Index/ |
D | CommentToXML.cpp | 442 FullCommentParts Parts(C, Traits); in visitFullComment() local 445 if (Parts.Headerfile) in visitFullComment() 446 visit(Parts.Headerfile); in visitFullComment() 447 if (Parts.Brief) in visitFullComment() 448 visit(Parts.Brief); in visitFullComment() 449 else if (Parts.FirstParagraph) { in visitFullComment() 451 visitNonStandaloneParagraphComment(Parts.FirstParagraph); in visitFullComment() 456 for (unsigned i = 0, e = Parts.MiscBlocks.size(); i != e; ++i) { in visitFullComment() 457 const Comment *C = Parts.MiscBlocks[i]; in visitFullComment() 458 if (FirstParagraphIsBrief && C == Parts.FirstParagraph) in visitFullComment() [all …]
|
/external/llvm-project/libcxx/test/std/input.output/filesystems/class.path/path.member/path.decompose/ |
D | path.decompose.pass.cpp | 155 std::vector<fs::path> Parts; in decompPathTest() local 157 Parts.push_back(*--it); in decompPathTest() 158 … assert(static_cast<std::size_t>(std::distance(Parts.begin(), Parts.end())) == TC.elements.size()); in decompPathTest() 159 assert(std::equal(Parts.begin(), Parts.end(), TC.elements.rbegin(), ComparePathExact())); in decompPathTest()
|
/external/llvm-project/llvm/tools/llvm-exegesis/lib/ |
D | SnippetFile.cpp | 51 SmallVector<StringRef, 2> Parts; in HandleComment() local 52 CommentText.split(Parts, ' ', /*unlimited splits*/ -1, in HandleComment() 54 if (Parts.size() != 2) { in HandleComment() 60 if (!(RegVal.Register = findRegisterByName(Parts[0].trim()))) { in HandleComment() 61 errs() << "unknown register '" << Parts[0] in HandleComment() 66 const StringRef HexValue = Parts[1].trim(); in HandleComment()
|
/external/llvm-project/llvm/lib/Analysis/ |
D | ConstraintSystem.cpp | 115 SmallVector<std::string, 16> Parts; in dump() local 122 Parts.push_back(Coefficient + Names[I - 1]); in dump() 124 assert(!Parts.empty() && "need to have at least some parts"); in dump() 125 LLVM_DEBUG(dbgs() << join(Parts, std::string(" + ")) in dump()
|
/external/libcxx/test/std/input.output/filesystems/class.path/path.member/path.decompose/ |
D | path.decompose.pass.cpp | 160 std::vector<fs::path> Parts; in decompPathTest() local 162 Parts.push_back(*--it); in decompPathTest() 163 ASSERT_COLLECTION_EQ_COMP(Parts.begin(), Parts.end(), in decompPathTest()
|
/external/llvm-project/llvm/utils/TableGen/ |
D | CodeGenRegisters.cpp | 92 std::vector<Record*> Parts = in updateComponents() local 94 if (!Parts.empty()) { in updateComponents() 95 if (Parts.size() < 2) in updateComponents() 99 for (Record *Part : Parts) in updateComponents() 123 ArrayRef<CodeGenSubRegIndex*> Parts) { in setConcatenationOf() argument 125 ConcatenationOf.assign(Parts.begin(), Parts.end()); in setConcatenationOf() 127 assert(std::equal(Parts.begin(), Parts.end(), in setConcatenationOf() 396 SmallVector<CodeGenSubRegIndex*, 8> Parts; in computeSubRegs() local 400 Parts.push_back(getSubRegIndex(SR->ExplicitSubRegs[j])); in computeSubRegs() 405 Idx.setConcatenationOf(Parts); in computeSubRegs() [all …]
|
/external/llvm-project/clang/include/clang/Tooling/Transformer/ |
D | Stencil.h | 60 Stencil catVector(std::vector<Stencil> Parts); 64 template <typename... Ts> Stencil cat(Ts &&... Parts) { in cat() argument 65 return catVector({detail::makeStencil(std::forward<Ts>(Parts))...}); in cat()
|
/external/llvm-project/clang-tools-extra/clang-tidy/utils/ |
D | IncludeSorter.cpp | 86 std::pair<StringRef, StringRef> Parts = CanonicalInclude.split("/public/"); in DetermineIncludeKind() local 88 Parts.first.str() + "/internal/" + Parts.second.str(); in DetermineIncludeKind() 90 Parts.first.str() + "/proto/" + Parts.second.str(); in DetermineIncludeKind()
|
/external/llvm-project/clang/lib/Tooling/Transformer/ |
D | Stencil.cpp | 164 llvm::SmallVector<std::string, 2> Parts; in toStringData() local 165 Parts.reserve(Data.Stencils.size()); in toStringData() 167 Parts.push_back(S->toString()); in toStringData() 168 return (llvm::Twine("seq(") + llvm::join(Parts, ", ") + ")").str(); in toStringData() 398 Stencil transformer::catVector(std::vector<Stencil> Parts) { in catVector() argument 400 if (Parts.size() == 1) in catVector() 401 return std::move(Parts[0]); in catVector() 402 return std::make_shared<StencilImpl<SequenceData>>(std::move(Parts)); in catVector()
|
/external/llvm/utils/TableGen/ |
D | CodeGenRegisters.cpp | 72 std::vector<Record*> Parts = in updateComponents() local 74 if (!Parts.empty()) { in updateComponents() 75 if (Parts.size() < 2) in updateComponents() 79 for (unsigned i = 0, e = Parts.size(); i != e; ++i) in updateComponents() 80 IdxParts.push_back(RegBank.getSubRegIdx(Parts[i])); in updateComponents() 345 SmallVector<CodeGenSubRegIndex*, 8> Parts; in computeSubRegs() local 347 Parts.push_back(getSubRegIndex(SR->ExplicitSubRegs[j])); in computeSubRegs() 350 RegBank.addConcatSubRegIndex(Parts, ExplicitSubRegIndices[i]); in computeSubRegs() 428 SmallVector<CodeGenSubRegIndex*, 8> Parts(1, I->first); in computeSecondarySubRegs() local 433 Parts.push_back(Idx); in computeSecondarySubRegs() [all …]
|
/external/llvm-project/clang-tools-extra/clangd/unittests/ |
D | TestIndex.cpp | 32 llvm::SmallVector<llvm::StringRef, 8> Parts; in replace() local 33 Haystack.split(Parts, Needle); in replace() 34 return llvm::join(Parts, Repl); in replace()
|
D | CompileCommandsTests.cpp | 211 llvm::SmallVector<llvm::StringRef, 8> Parts; in strip() local 212 llvm::SplitString(Argv, Parts); in strip() 213 std::vector<std::string> Args = {Parts.begin(), Parts.end()}; in strip()
|
/external/llvm-project/clang/lib/Driver/ToolChains/ |
D | AMDGPU.cpp | 160 SmallVector<StringRef, 3> Parts; in RocmInstallationDetector() local 161 HIPVersionArg.split(Parts, '.'); in RocmInstallationDetector() 162 if (Parts.size()) in RocmInstallationDetector() 163 Parts[0].getAsInteger(0, Major); in RocmInstallationDetector() 164 if (Parts.size() > 1) in RocmInstallationDetector() 165 Parts[1].getAsInteger(0, Minor); in RocmInstallationDetector() 166 if (Parts.size() > 2) in RocmInstallationDetector() 167 VersionPatch = Parts[2].str(); in RocmInstallationDetector()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/SelectionDAG/ |
D | LegalizeTypesGeneric.cpp | 315 SDValue Parts[2]; in IntegerToVector() local 319 SplitInteger(Op, Parts[0], Parts[1]); in IntegerToVector() 321 std::swap(Parts[0], Parts[1]); in IntegerToVector() 322 IntegerToVector(Parts[0], NumElements, Ops, EltVT); in IntegerToVector() 323 IntegerToVector(Parts[1], NumElements, Ops, EltVT); in IntegerToVector()
|
/external/llvm/lib/CodeGen/SelectionDAG/ |
D | LegalizeTypesGeneric.cpp | 330 SDValue Parts[2]; in IntegerToVector() local 334 SplitInteger(Op, Parts[0], Parts[1]); in IntegerToVector() 336 std::swap(Parts[0], Parts[1]); in IntegerToVector() 337 IntegerToVector(Parts[0], NumElements, Ops, EltVT); in IntegerToVector() 338 IntegerToVector(Parts[1], NumElements, Ops, EltVT); in IntegerToVector()
|
/external/llvm-project/llvm/lib/CodeGen/SelectionDAG/ |
D | LegalizeTypesGeneric.cpp | 320 SDValue Parts[2]; in IntegerToVector() local 324 SplitInteger(Op, Parts[0], Parts[1]); in IntegerToVector() 326 std::swap(Parts[0], Parts[1]); in IntegerToVector() 327 IntegerToVector(Parts[0], NumElements, Ops, EltVT); in IntegerToVector() 328 IntegerToVector(Parts[1], NumElements, Ops, EltVT); in IntegerToVector()
|
/external/llvm-project/libcxx/src/filesystem/ |
D | operations.cpp | 1402 vector<PartKindPair> Parts; in lexically_normal() local 1404 Parts.reserve(32); in lexically_normal() 1411 Parts.emplace_back(P, K); in lexically_normal() 1414 if (Parts.empty()) in lexically_normal() 1416 return Parts.back().second; in lexically_normal() 1438 NewPathSize -= Parts.back().first.size(); in lexically_normal() 1439 Parts.pop_back(); in lexically_normal() 1455 if (Parts.empty()) in lexically_normal() 1463 Result.__pn_.reserve(Parts.size() + NewPathSize + NeedTrailingSep); in lexically_normal() 1464 for (auto& PK : Parts) in lexically_normal()
|
/external/libcxx/src/filesystem/ |
D | operations.cpp | 1404 vector<PartKindPair> Parts; in lexically_normal() local 1406 Parts.reserve(32); in lexically_normal() 1413 Parts.emplace_back(P, K); in lexically_normal() 1416 if (Parts.empty()) in lexically_normal() 1418 return Parts.back().second; in lexically_normal() 1440 NewPathSize -= Parts.back().first.size(); in lexically_normal() 1441 Parts.pop_back(); in lexically_normal() 1457 if (Parts.empty()) in lexically_normal() 1465 Result.__pn_.reserve(Parts.size() + NewPathSize + NeedTrailingSep); in lexically_normal() 1466 for (auto& PK : Parts) in lexically_normal()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/ProfileData/ |
D | InstrProfReader.cpp | 650 std::pair<StringRef, StringRef> Parts = {StringRef(), Name}; in extractName() local 652 Parts = Parts.second.split(':'); in extractName() 653 if (Parts.first.startswith("_Z")) in extractName() 654 return Parts.first; in extractName() 655 if (Parts.second.empty()) in extractName()
|
/external/llvm-project/llvm/lib/ProfileData/ |
D | InstrProfReader.cpp | 657 std::pair<StringRef, StringRef> Parts = {StringRef(), Name}; in extractName() local 659 Parts = Parts.second.split(':'); in extractName() 660 if (Parts.first.startswith("_Z")) in extractName() 661 return Parts.first; in extractName() 662 if (Parts.second.empty()) in extractName()
|