/llvm-project/llvm/lib/TextAPI/ |
H A D | PackedVersion.cpp | 28 SmallVector<StringRef, 3> Parts; in parse32() local 29 SplitString(Str, Parts, "."); in parse32() 31 if (Parts.size() > 3 || Parts.empty()) in parse32() 35 if (getAsUnsignedInteger(Parts[0], 10, Num)) in parse32() 43 for (unsigned i = 1, ShiftNum = 8; i < Parts.size(); ++i, ShiftNum -= 8) { in parse32() 44 if (getAsUnsignedInteger(Parts[i], 10, Num)) in parse32() 63 SmallVector<StringRef, 5> Parts; in parse64() local 64 SplitString(Str, Parts, "."); in parse64() 66 if (Parts.size() > 5 || Parts.empty()) in parse64() 70 if (getAsUnsignedInteger(Parts[0], 10, Num)) in parse64() [all …]
|
/llvm-project/llvm/lib/ProfileData/ |
H A D | SymbolRemappingReader.cpp | 43 SmallVector<StringRef, 4> Parts; in read() local 44 Line.split(Parts, ' ', /*MaxSplits*/-1, /*KeepEmpty*/false); in read() 46 if (Parts.size() != 3) in read() 51 std::optional<FK> FragmentKind = StringSwitch<std::optional<FK>>(Parts[0]) in read() 58 " found '" + Parts[0] + "'"); in read() 61 switch (Canonicalizer.addEquivalence(*FragmentKind, Parts[1], Parts[2])) { in read() 66 return ReportError("Manglings '" + Parts[1] + "' and '" + Parts[2] + "' " in read() 71 return ReportError("Could not demangle '" + Parts[1] + "' " in read() 72 "as a <" + Parts[0] + ">; invalid mangling?"); in read() 75 return ReportError("Could not demangle '" + Parts[2] + "' " in read() [all …]
|
/llvm-project/llvm/unittests/ADT/ |
H A D | StringRefTest.cpp | 198 SmallVector<StringRef, 5> parts; in TEST() 202 StringRef(",ab,,c,").split(parts, ",", -1, false); in TEST() 203 EXPECT_TRUE(parts == expected); 205 expected.clear(); parts.clear(); in TEST() local 208 StringRef(",ab,,c,").split(parts, ",", -1, true); in TEST() 209 EXPECT_TRUE(parts == expected); in TEST() 211 expected.clear(); parts.clear(); in TEST() 213 StringRef("").split(parts, ",", -1, true); in TEST() 214 EXPECT_TRUE(parts == expected); in TEST() 216 expected.clear(); parts in TEST() [all...] |
/llvm-project/libcxx/utils/libcxx/sym_check/ |
H A D | extract.py | 154 parts = s.split() 155 if not parts: 157 assert len(parts) == 7 or len(parts) == 8 or len(parts) == 9 158 if len(parts) == 7: 161 "name": parts[7], 162 "size": int(parts[2]), 163 "type": parts[3], 164 "is_defined": (parts[6] != "UND"), 242 parts = s.split() 243 if not parts: [all …]
|
/llvm-project/flang/include/flang/Evaluate/ |
H A D | integer.h | 42 // Implements an integer as an assembly of smaller host integer parts 44 // For best performance, the type of these parts should be half of the 46 // These parts are stored in either little- or big-endian order, which can 52 // types &/or partial fields in the parts. The radix (i.e., the number 82 static constexpr int parts{(bits + partBits - 1) / partBits}; 83 static_assert(parts >= 1); 85 extraPartBits + (parts * partBits) - bits}; 88 static_assert((parts - 1) * partBits + topPartBits == bits); 137 for (int j{1}; j < parts; ++j) { in Integer() 147 if constexpr (parts > in Integer() [all...] |
/llvm-project/llvm/tools/llvm-exegesis/lib/ |
H A D | SnippetFile.cpp | 59 SmallVector<StringRef, 2> Parts; in HandleComment() 60 CommentText.split(Parts, ' ', /*unlimited splits*/ -1, in HandleComment() 62 if (Parts.size() != 2) { in HandleComment() 68 if (!(RegVal.Register = findRegisterByName(Parts[0].trim()))) { in HandleComment() 69 errs() << "unknown register '" << Parts[0] in HandleComment() 74 const StringRef HexValue = Parts[1].trim(); in HandleComment() 94 SmallVector<StringRef, 3> Parts; in HandleComment() 95 CommentText.split(Parts, ' ', -1, false); in HandleComment() 96 if (Parts.size() != 3) { in HandleComment() 102 const StringRef HexValue = Parts[ in HandleComment() 58 SmallVector<StringRef, 2> Parts; HandleComment() local 93 SmallVector<StringRef, 3> Parts; HandleComment() local 115 SmallVector<StringRef, 2> Parts; HandleComment() local [all...] |
/llvm-project/clang/lib/Index/ |
H A D | CommentToXML.cpp | 82 /// Separate parts of a FullComment. 444 FullCommentParts Parts(C, Traits); in visitFullComment() local 447 if (Parts.Headerfile) in visitFullComment() 448 visit(Parts.Headerfile); in visitFullComment() 449 if (Parts.Brief) in visitFullComment() 450 visit(Parts.Brief); in visitFullComment() 451 else if (Parts.FirstParagraph) { in visitFullComment() 453 visitNonStandaloneParagraphComment(Parts.FirstParagraph); in visitFullComment() 458 for (unsigned i = 0, e = Parts.MiscBlocks.size(); i != e; ++i) { in visitFullComment() 459 const Comment *C = Parts.MiscBlocks[i]; in visitFullComment() [all …]
|
/llvm-project/bolt/docs/ |
H A D | generate_doc.py | 71 parts = cleaned_line.split(" ", 1) 72 if len(parts) > 1: 73 option = parts[0].strip() 74 descr = parts[1].strip() 84 parts = cleaned_line.split(maxsplit=1) 85 # Split into two parts: sub-option and description 86 if len(parts) == 2: 88 cleaned_line = parts[0] + " " + parts[1].rstrip()
|
/llvm-project/compiler-rt/lib/tsan/rtl/ |
H A D | tsan_trace.h | 73 // Note: precisely specifying the unused parts of the bitfield is critical for 78 // constant parts). 168 INode trace_parts; // in Trace::parts 173 // There are a lot of goroutines in Go, so we use smaller parts. 191 IList<TraceHeader, &TraceHeader::trace_parts, TracePart> parts; member 196 // Number of trace parts allocated on behalf of this trace specifically. 197 // Total number of parts in this trace can be larger if we retake some 198 // parts from other traces. 203 // We need at least 3 parts per thread, because we want to keep at last 204 // 2 parts per thread that are not queued into ctx->trace_part_recycle
|
H A D | tsan_rtl.cpp | 94 TracePart* part1 = trace1->parts.PopFront(); in TracePartAlloc() 96 if (trace1->parts_allocated > trace1->parts.Size()) { in TracePartAlloc() 98 trace1->parts_allocated - trace1->parts.Size(); in TracePartAlloc() 99 trace1->parts_allocated = trace1->parts.Size(); in TracePartAlloc() 128 CHECK_EQ(trace->parts.PopFront(), part); in TraceResetForTesting() 153 auto parts = &trace->parts; in DoResetImpl() 155 while (!parts->Empty()) { in DoResetImpl() 156 auto part = parts->Front(); in DoResetImpl() 162 if (attached && parts in DoResetImpl() 154 auto parts = &trace->parts; DoResetImpl() local 331 auto* parts = &trace->parts; SlotDetachImpl() local [all...] |
H A D | tsan_rtl_thread.cpp | 258 // Queue all trace parts into the global recycle queue. in OnFinished() 259 auto parts = &trace.parts; in OnFinished() 261 CHECK(parts->Queued(trace.local_head)); in OnFinished() 263 trace.local_head = parts->Next(trace.local_head); in OnFinished() 265 ctx->trace_part_recycle_finished += parts->Size(); in OnFinished() 267 ctx->trace_part_finished_excess += parts->Size(); in OnFinished() 270 parts->Size() > 1) { in OnFinished() 271 ctx->trace_part_finished_excess += parts->Size() - 1; in OnFinished() 257 auto parts = &trace.parts; OnFinished() local
|
/llvm-project/libcxx/src/filesystem/ |
H A D | path.cpp | 165 vector<PartKindPair> Parts; in lexically_normal() 167 Parts.reserve(32); in lexically_normal() 169 // Track the total size of the parts as we collect them. This allows the in lexically_normal() 174 Parts.emplace_back(P, K); in lexically_normal() 177 if (Parts.empty()) in lexically_normal() 179 return Parts.back().second; in lexically_normal() 201 NewPathSize -= Parts.back().first.size(); in lexically_normal() 202 Parts.pop_back(); in lexically_normal() 218 if (Parts.empty()) in lexically_normal() 226 Result.__pn_.reserve(Parts in lexically_normal() 162 vector<PartKindPair> Parts; lexically_normal() local [all...] |
/llvm-project/llvm/lib/Support/ |
H A D | APInt.cpp | 340 static void tcComplement(APInt::WordType *dst, unsigned parts) { in tcComplement() 341 for (unsigned i = 0; i < parts; i++) in tcComplement() 606 // We can check that all parts of an integer are equal by making use of a 2313 /// out higher parts. in tcSet() 2314 void APInt::tcSet(WordType *dst, WordType part, unsigned parts) { in tcSet() 2315 assert(parts > 0); in tcSet() 2317 for (unsigned i = 1; i < parts; i++) 2322 void APInt::tcAssign(WordType *dst, const WordType *src, unsigned parts) { 2323 for (unsigned i = 0; i < parts; i++) 2328 bool APInt::tcIsZero(const WordType *src, unsigned parts) { in tcIsZero() 338 tcComplement(APInt::WordType * dst,unsigned parts) tcComplement() argument 2310 tcSet(WordType * dst,WordType part,unsigned parts) tcSet() argument 2318 tcAssign(WordType * dst,const WordType * src,unsigned parts) tcAssign() argument 2324 tcIsZero(const WordType * src,unsigned parts) tcIsZero() argument 2333 tcExtractBit(const WordType * parts,unsigned bit) tcExtractBit() argument 2338 tcSetBit(WordType * parts,unsigned bit) tcSetBit() argument 2343 tcClearBit(WordType * parts,unsigned bit) tcClearBit() argument 2349 tcLSB(const WordType * parts,unsigned n) tcLSB() argument 2362 tcMSB(const WordType * parts,unsigned n) tcMSB() argument 2413 tcAdd(WordType * dst,const WordType * rhs,WordType c,unsigned parts) tcAdd() argument 2435 tcAddPart(WordType * dst,WordType src,unsigned parts) tcAddPart() argument 2448 tcSubtract(WordType * dst,const WordType * rhs,WordType c,unsigned parts) tcSubtract() argument 2473 tcSubtractPart(WordType * dst,WordType src,unsigned parts) tcSubtractPart() argument 2486 tcNegate(WordType * dst,unsigned parts) tcNegate() argument 2584 tcMultiply(WordType * dst,const WordType * lhs,const WordType * rhs,unsigned parts) tcMultiply() argument 2628 tcDivide(WordType * lhs,const WordType * rhs,WordType * remainder,WordType * srhs,unsigned parts) tcDivide() argument 2722 tcCompare(const WordType * lhs,const WordType * rhs,unsigned parts) tcCompare() argument [all...] |
H A D | APFloat.cpp | 297 /* A tight upper bound on number of parts required to hold the value 302 However, whilst the result may require only this many parts, 306 requires two parts to hold the single-part result). So we add an 656 lostFractionThroughTruncation(const APFloatBase::integerPart *parts, in lostFractionThroughTruncation() 662 lsb = APInt::tcLSB(parts, partCount); in shiftRight() argument 670 APInt::tcExtractBit(parts, bits - 1)) in shiftRight() 678 shiftRight(APFloatBase::integerPart *dst, unsigned int parts, unsigned int bits) in combineLostFractions() 682 lost_fraction = lostFractionThroughTruncation(dst, parts, bits); in combineLostFractions() 684 APInt::tcShiftRight(dst, parts, bits); in combineLostFractions() 726 ulpsFromBoundary(const APFloatBase::integerPart *parts, unsigne in ulpsFromBoundary() 640 lostFractionThroughTruncation(const APFloatBase::integerPart * parts,unsigned int partCount,unsigned int bits) lostFractionThroughTruncation() argument 710 ulpsFromBoundary(const APFloatBase::integerPart * parts,unsigned int bits,bool isNearest) ulpsFromBoundary() argument 1019 const integerPart *Parts = significandParts(); isSignificandAllOnes() local 1041 const integerPart *Parts = significandParts(); isSignificandAllOnesExceptLSB() local 1068 const integerPart *Parts = significandParts(); isSignificandAllZeros() local 1089 const integerPart *Parts = significandParts(); isSignificandAllZerosExceptMSB() local 1207 integerPart *parts; addSignificand() local 1221 integerPart *parts; subtractSignificand() local 1512 tcSetLeastSignificantBits(APInt::WordType * dst,unsigned parts,unsigned bits) tcSetLeastSignificantBits() argument 2611 convertToSignExtendedInteger(MutableArrayRef<integerPart> parts,unsigned int width,bool isSigned,roundingMode rounding_mode,bool * isExact) const convertToSignExtendedInteger() argument 2724 convertToInteger(MutableArrayRef<integerPart> parts,unsigned int width,bool isSigned,roundingMode rounding_mode,bool * isExact) const convertToInteger() argument 2828 convertFromZeroExtendedInteger(const integerPart * parts,unsigned int width,bool isSigned,roundingMode rounding_mode) convertFromZeroExtendedInteger() argument 2941 unsigned int parts, pow5PartCount; roundSignificandWithExponent() local 4392 const integerPart *Parts = significandParts(); getExactLog2Abs() local 4518 integerPart *Parts = significandParts(); next() local 4540 integerPart *Parts = significandParts(); next() local 5348 SmallVector<uint64_t, 4> parts(result.getNumWords()); convertToInteger() local [all...] |
/llvm-project/llvm/docs/DirectX/ |
H A D | DXContainer.rst | 29 "parts", which are analogous to object file sections. Each part contains a part 67 number of parts. 85 format does not explicitly require 32-bit alignment of parts, although LLVM does 94 used by DXC and FXC. Not all compiled shaders contain all parts. In the list 95 below parts generated only by DXC are marked with †, and parts generated only by 146 Program Signature (SG1) Parts 159 The program signature parts (ISG1, OSG1, & PSG1) all use the same data 225 <ISG1>` parts. The use of an index table allows de-duplciation of data for a more
|
/llvm-project/clang/lib/Driver/ToolChains/ |
H A D | HLSL.cpp | 71 SmallVector<StringRef, 3> Parts; in tryParseProfile() local 72 Profile.split(Parts, "_"); in tryParseProfile() 73 if (Parts.size() != 3) in tryParseProfile() 77 StringSwitch<Triple::EnvironmentType>(Parts[0]) in tryParseProfile() 92 if (llvm::getAsUnsignedInteger(Parts[1], 0, Major)) in tryParseProfile() 96 if (Parts[2] == "x" && Kind == Triple::EnvironmentType::Library) in tryParseProfile() 98 else if (llvm::getAsUnsignedInteger(Parts[2], 0, Minor)) in tryParseProfile()
|
/llvm-project/lldb/source/Commands/ |
H A D | CommandObjectRegexCommand.cpp | 36 llvm::SmallVector<llvm::StringRef, 4> parts; in SubstituteVariables() local 37 input.split(parts, '%'); in SubstituteVariables() 39 output << parts[0]; in SubstituteVariables() 40 for (llvm::StringRef part : drop_begin(parts)) { in SubstituteVariables()
|
/llvm-project/llvm/ |
H A D | CODE_OWNERS.TXT |
|
/llvm-project/clang/include/clang/Tooling/Transformer/ |
H A D | Stencil.h | 59 /// Parts. If only one element is passed in \p Parts, returns that element. 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() 108 /// Chooses between the two stencil parts, based on whether \p ID is bound in
|
/llvm-project/llvm/lib/ObjectYAML/ |
H A D | DXContainerEmitter.cpp | 54 if (ObjectFile.Parts.size() != ObjectFile.Header.PartOffsets->size()) in validatePartOffsets() 57 "Mismatch between number of parts and part offsets."); in validatePartOffsets() 60 for (auto I : llvm::zip(ObjectFile.Parts, *ObjectFile.Header.PartOffsets)) { in validatePartOffsets() 79 for (const auto &Part : ObjectFile.Parts) { in computePartOffsets() 96 Header.PartCount = ObjectFile.Parts.size(); in writeHeader() 112 for (auto I : llvm::zip(ObjectFile.Parts, *ObjectFile.Header.PartOffsets)) { in writeParts() 263 break; // Skip any handling for unrecognized parts. in writeParts()
|
/llvm-project/lldb/bindings/python/ |
H A D | get-python-config.py | 12 parts = rel.split(os.path.sep) 13 if parts and parts[0] == "..":
|
/llvm-project/llvm/lib/Analysis/ |
H A D | ConstraintSystem.cpp | 162 SmallVector<std::string, 16> Parts; in dump() 171 Parts.push_back(Coefficient + Names[E.Id - 1]); in dump() 173 // assert(!Parts.empty() && "need to have at least some parts"); in dump() 177 LLVM_DEBUG(dbgs() << join(Parts, std::string(" + ")) in dump() 165 SmallVector<std::string, 16> Parts; dump() local
|
/llvm-project/llvm/lib/Target/AMDGPU/ |
H A D | AMDGPULowerBufferFatPointers.cpp | 35 // and offset parts into separate variables, but combine them together when 42 // `{vector<Nxp8>, vector<Nxi32 >}` and its component parts. 55 // parts of aggregates as needed. In the case of a store, each pointer is 115 // resource and offset parts. This is accomplished throgh the `SplitPtrStructs` 122 // parts. 124 // Split users do not necessarily need to produce parts themselves ( 129 // When these new instructions are created, they use the split parts recorded 135 // sources that do not have split parts, have such parts generated using 141 // PHI nodes are initially given resource parts vi [all...] |
/llvm-project/llvm/docs/ |
H A D | SupportPolicy.rst | 17 help parts of the community to integrate LLVM into their own development tools 18 or external projects. Those parts of the main repository don't always have 19 rigorous testing like the core parts, nor are they validated and shipped with 73 The peripheral tier encompass the parts of LLVM that cater to a specific 80 It is the responsibility of each sub-community to care about their own parts 81 and the intersection of that with the core tier and other peripheral parts.
|
/llvm-project/third-party/benchmark/tools/gbench/ |
H A D | report.py | 588 parts = [x for x in output_lines[i].split(" ") if x] 589 self.assertEqual(len(parts), 7) 590 self.assertEqual(expect_lines[i], parts) 865 parts = [x for x in output_lines[i].split(" ") if x] 866 self.assertEqual(len(parts), 7) 867 self.assertEqual(expect_lines[i], parts) 1029 parts = [x for x in output_lines[i].split(" ") if x] 1030 self.assertEqual(expect_lines[i], parts) 1085 parts = [x for x in output_lines[i].split(" ") if x] 1086 self.assertEqual(expect_lines[i], parts) [all …]
|