| /llvm-project-15.0.7/clang/lib/Tooling/Core/ |
| H A D | Replacement.cpp | 102 if (LHS.getLength() != RHS.getLength()) in operator <() 103 return LHS.getLength() < RHS.getLength(); in operator <() 112 LHS.getLength() == RHS.getLength() && in operator ==() 207 R.getFilePath(), Prev.getOffset(), Prev.getLength() + R.getLength(), in getCanonicalReplacements() 270 assert(R.getLength() == 0); in add() 272 if (I->getLength() == 0) { in add() 306 return Range(R1.getOffset(), R1.getLength()) in add() 401 Length += R.getLength() - RText.size(); in merge() 403 DeltaFirst += RText.size() - R.getLength(); in merge() 488 return LHS.getLength() < RHS.getLength(); in combineAndSortRanges() [all …]
|
| /llvm-project-15.0.7/llvm/include/llvm/Support/ |
| H A D | BinaryStreamRef.h | 29 Length = BorrowedImpl.getLength(); in BinaryStreamRefBase() 50 uint64_t getLength() const { in getLength() function 64 N = std::min(N, getLength()); in drop_front() 83 N = std::min(N, getLength()); in drop_back() 91 Result.Length = getLength(); in drop_back() 99 assert(N <= getLength()); in keep_front() 100 return drop_back(getLength() - N); in keep_front() 105 assert(N <= getLength()); in keep_back() 106 return drop_front(getLength() - N); in keep_back() 135 if (Offset > getLength()) in checkOffsetForRead() [all …]
|
| H A D | BinaryStream.h | 53 virtual uint64_t getLength() = 0; 60 if (Offset > getLength()) in checkOffsetForRead() 62 if (getLength() < DataSize + Offset) in checkOffsetForRead() 93 if (Offset > getLength()) in checkOffsetForWrite()
|
| H A D | BinaryByteStream.h | 56 uint64_t getLength() override { return Data.size(); } in getLength() function 109 uint64_t getLength() override { return ImmutableStream.getLength(); } in getLength() function 169 uint64_t getLength() override { return Data.size(); } in getLength() function 181 if (Offset > getLength()) in writeBytes() 250 uint64_t getLength() override { return Impl.getLength(); } in getLength() function
|
| H A D | BinaryStreamWriter.h | 179 uint64_t getLength() const { return Stream.getLength(); } in getLength() function 180 uint64_t bytesRemaining() const { return getLength() - getOffset(); } in bytesRemaining()
|
| H A D | BinaryStreamArray.h | 119 bool empty() const { return Stream.getLength() == 0; } in empty() 167 if (IterRef.getLength() == 0) in VarStreamArrayIterator() 208 if (IterRef.getLength() == 0) { 267 assert(Stream.getLength() % sizeof(T) == 0); in FixedStreamArray() 295 uint32_t size() const { return Stream.getLength() / sizeof(T); } in size()
|
| /llvm-project-15.0.7/llvm/lib/DebugInfo/PDB/Native/ |
| H A D | NativeTypeArray.cpp | 39 dumpSymbolField(OS, "length", getLength(), Indent); in dump() 59 return getLength() / Element.getLength(); in getCount() 67 uint64_t NativeTypeArray::getLength() const { return Record.Size; } in getLength() function in NativeTypeArray
|
| H A D | NativeSymbolEnumerator.cpp | 83 assert(Record.Value.isSignedIntN(BT.getLength() * 8)); in getValue() 85 switch (BT.getLength()) { in getValue() 99 assert(Record.Value.isIntN(BT.getLength() * 8)); in getValue() 101 switch (BT.getLength()) { in getValue() 114 assert(Record.Value.isIntN(BT.getLength() * 8)); in getValue()
|
| /llvm-project-15.0.7/llvm/unittests/Support/ |
| H A D | BinaryStreamTest.cpp | 224 ASSERT_EQ(InputData.size(), Ref.getLength()); in TEST_F() 279 EXPECT_EQ(0U, ConstRef.getLength()); in TEST_F() 285 EXPECT_EQ(2U, ConstRef.getLength()); in TEST_F() 296 EXPECT_EQ(1U, Dropped.getLength()); in TEST_F() 299 EXPECT_EQ(4U, ConstRef.getLength()); in TEST_F() 300 EXPECT_EQ(3U, Dropped.getLength()); in TEST_F() 306 EXPECT_EQ(6U, ConstRef.getLength()); in TEST_F() 307 EXPECT_EQ(5U, Dropped.getLength()); in TEST_F() 313 EXPECT_EQ(8U, ConstRef.getLength()); in TEST_F() 314 EXPECT_EQ(4U, Dropped.getLength()); in TEST_F() [all …]
|
| /llvm-project-15.0.7/llvm/lib/Support/ |
| H A D | BinaryStreamRef.cpp | 32 uint64_t getLength() override { return BBS.getLength(); } in getLength() function in __anon5a058c9a0111::ArrayRefImpl 55 uint64_t getLength() override { return BBS.getLength(); } in getLength() function in __anon5a058c9a0111::MutableArrayRefImpl 97 uint64_t MaxLength = getLength() - Offset; in readLongestContiguousChunk()
|
| /llvm-project-15.0.7/llvm/tools/llvm-pdbutil/ |
| H A D | PrettyBuiltinDumper.cpp | 32 if (Symbol.getLength() == 4) in getTypeName() 36 switch (Symbol.getLength()) { in getTypeName() 49 switch (Symbol.getLength()) { in getTypeName()
|
| H A D | PrettyCompilandDumper.cpp | 97 if (Line->getLength() > 0) { in start() 99 uint64_t AddrEnd = AddrStart + Line->getLength() - 1; in start() 103 Printer << " (" << Line->getLength() << " bytes)"; in start() 163 if (Symbol.getLength() == 0) in dump() 202 << format_hex(VA + Symbol.getLength(), 10) << "]"; in dump()
|
| /llvm-project-15.0.7/llvm/include/llvm/CodeGen/PBQP/ |
| H A D | ReductionRules.h | 49 for (unsigned j = 0; j < YCosts.getLength(); ++j) { in applyR1() 51 for (unsigned i = 1; i < XCosts.getLength(); ++i) { in applyR1() 59 for (unsigned i = 0; i < YCosts.getLength(); ++i) { in applyR1() 61 for (unsigned j = 1; j < XCosts.getLength(); ++j) { in applyR1() 104 unsigned XLen = XCosts.getLength(), in applyR2() 152 unsigned VL = V.getLength(); in hasRegisterOptions()
|
| /llvm-project-15.0.7/clang-tools-extra/clangd/ |
| H A D | Format.cpp | 242 if (R.getOffset() + R.getLength() <= OldCursor) { // before cursor in split() 244 LengthChange += R.getReplacementText().size() - R.getLength(); in split() 255 R.getLength() - (OldCursor - R.getOffset()), in split() 295 FormatLimit = std::max(FormatLimit, R.getOffset() + R.getLength()); in formatIncremental() 308 R.getLength()); in formatIncremental() 321 if (R.getOffset() + R.getLength() <= FormatLimit) // Before limit. in formatIncremental() 387 if (R.getOffset() + R.getLength() <= OriginalOffset) { in transformCursorPosition() 390 Offset -= R.getLength(); in transformCursorPosition()
|
| /llvm-project-15.0.7/clang/lib/Lex/ |
| H A D | TokenConcatenation.cpp | 51 if (Tok.getLength() < 1 || Tok.getLength() > 3) in IsIdentifierStringPrefix() 55 return IsStringPrefix(StringRef(Ptr, Tok.getLength()), in IsIdentifierStringPrefix() 59 if (Tok.getLength() < 256) { in IsIdentifierStringPrefix() 139 } else if (Tok.getLength() < 256) { in GetFirstChar() 174 if (PrevSpellLoc.getLocWithOffset(PrevTok.getLength()) == SpellLoc) in AvoidConcat()
|
| /llvm-project-15.0.7/clang/unittests/Tooling/ |
| H A D | ReplacementsYamlTest.cpp | 94 ASSERT_EQ(56u, DocActual.Replacements[0].getLength()); in TEST() 98 ASSERT_EQ(2u, DocActual.Replacements[1].getLength()); in TEST() 120 ASSERT_EQ(10u, DocActual.Replacements[0].getLength()); in TEST()
|
| /llvm-project-15.0.7/llvm/lib/DebugInfo/CodeView/ |
| H A D | DebugSubsectionRecord.cpp | 44 return sizeof(DebugSubsectionHeader) + Data.getLength(); in getRecordLength() 61 : Contents.getRecordData().getLength(); in calculateSerializedLength() 77 : Contents.getRecordData().getLength(); in commit()
|
| /llvm-project-15.0.7/llvm/lib/Transforms/Scalar/ |
| H A D | MemCpyOptimizer.cpp | 464 !isa<ConstantInt>(MSI->getLength())) in tryMergingIntoMemset() 841 if (isa<ConstantInt>(MSI->getLength()) && !MSI->isVolatile()) in processMemSet() 1127 if (MDep->getLength() != M->getLength()) { in processMemCpyMemCpyDependence() 1128 auto *MDepLen = dyn_cast<ConstantInt>(MDep->getLength()); in processMemCpyMemCpyDependence() 1129 auto *MLen = dyn_cast<ConstantInt>(M->getLength()); in processMemCpyMemCpyDependence() 1228 Value *DestSize = MemSet->getLength(); in processMemSetMemCpyDependence() 1229 Value *SrcSize = MemCpy->getLength(); in processMemSetMemCpyDependence() 1344 Value *MemSetSize = MemSet->getLength(); in performMemCpyToMemSetOptzn() 1345 Value *CopySize = MemCpy->getLength(); in performMemCpyToMemSetOptzn() 1512 M->getLength()->getType() }; in processMemMove() [all …]
|
| /llvm-project-15.0.7/llvm/lib/Target/AMDGPU/ |
| H A D | AMDGPULowerIntrinsics.cpp | 84 if (shouldExpandOperationWithSize(Memcpy->getLength())) { in expandMemIntrinsicUses() 97 if (shouldExpandOperationWithSize(Memmove->getLength())) { in expandMemIntrinsicUses() 107 if (shouldExpandOperationWithSize(Memset->getLength())) { in expandMemIntrinsicUses()
|
| /llvm-project-15.0.7/llvm/lib/DebugInfo/PDB/ |
| H A D | UDTLayout.cpp | 47 return RawType.getLength(); in getTypeLength() 104 ElementSize = VTableType->getLength(); in VTableLayoutItem() 134 : UDTLayoutBase(nullptr, UDT, UDT.getName(), 0, UDT.getLength(), false), in ClassLayout() 157 : UDTLayoutBase(&Parent, *B, B->getName(), OffsetInParent, B->getLength(), in BaseClassLayout() 243 VBPO, VBP->getLength()); in initializeChildren()
|
| /llvm-project-15.0.7/llvm/lib/DebugInfo/DWARF/ |
| H A D | DWARFTypeUnit.cpp | 26 << ", length = " << format("0x%0*" PRIx64, OffsetDumpWidth, getLength()) in dump() 32 << " length = " << format("0x%0*" PRIx64, OffsetDumpWidth, getLength()) in dump()
|
| /llvm-project-15.0.7/clang/include/clang/Tooling/Core/ |
| H A D | Replacement.h | 52 unsigned getLength() const { return Length; } in getLength() function 70 return Offset == RHS.getOffset() && Length == RHS.getLength(); 122 unsigned getLength() const { return ReplacementRange.getLength(); } in getLength() function
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/bugprone/ |
| H A D | NotNullTerminatedResultCheck.cpp | 63 static unsigned getLength(const Expr *E, in getLength() function 86 return StrSL->getLength(); in getLength() 89 return SrcSL->getLength(); in getLength() 98 return getLength(DestCapacityExpr, Result); in getDestCapacity() 123 getLength(Result.Nodes.getNodeAs<Expr>(WrongLengthExprName), Result)) in getGivenLength() 127 getLength(Result.Nodes.getNodeAs<Expr>(LengthExprName), Result)) in getGivenLength() 133 if (int ArgLength = getLength(Arg, Result)) in getGivenLength() 263 int DestCapacity = getLength(DestCapacityExpr, Result); in isDestCapacityOverflows() 281 return !getLength(Result.Nodes.getNodeAs<Expr>(SrcExprName), Result); in isFixedGivenLengthAndUnknownSrc() 428 FunctionExpr->getDirectCallee()->getIdentifier()->getLength(); in renameFunc() [all …]
|
| H A D | StringLiteralWithEmbeddedNulCheck.cpp | 21 for (size_t I = 0; I < Node.getLength(); ++I) in AST_MATCHER() 63 for (size_t Offset = 0, Length = SL->getLength(); Offset < Length; in check()
|
| /llvm-project-15.0.7/clang/lib/Analysis/ |
| H A D | MacroExpansionContext.cpp | 43 MacroName.getLocation().getLocWithOffset(MacroName.getLength())); in MacroExpands() 53 << "' with length " << MacroName.getLength() << " at "; in MacroExpands() 190 OS << StringRef(Tok.getLiteralData(), Tok.getLength()); in dumpTokenInto() 193 if (Tok.getLength() < sizeof(Tmp)) { in dumpTokenInto()
|