| /llvm-project-15.0.7/llvm/tools/llvm-diff/lib/ |
| H A D | DiffLog.cpp | 32 Diff.push_back(DiffRecord(L, R)); in addMatch() 36 Diff.push_back(DiffRecord(L, DiffRecord::second_type(nullptr))); in addLeft() 40 Diff.push_back(DiffRecord(DiffRecord::first_type(nullptr), R)); in addRight() 43 unsigned DiffLogBuilder::getNumLines() const { return Diff.size(); } in getNumLines() 46 return (Diff[I].first ? (Diff[I].second ? DC_match : DC_left) in getLineKind() 50 return Diff[I].first; in getLeft() 53 return Diff[I].second; in getRight()
|
| /llvm-project-15.0.7/llvm/tools/llvm-tapi-diff/ |
| H A D | DiffEngine.cpp | 140 DiffOutput Diff(Name); in getSingleAttrDiff() local 141 Diff.Kind = AD_Str_Vec; in getSingleAttrDiff() 147 return Diff; in getSingleAttrDiff() 153 DiffOutput Diff(Name); in getSingleAttrDiff() local 159 return Diff; in getSingleAttrDiff() 164 DiffOutput Diff(Name); in getSingleAttrDiff() local 169 return Diff; in getSingleAttrDiff() 177 return Diff; in getSingleAttrDiff() 290 return Diff; in recordDifferences() 300 return Diff; in recordDifferences() [all …]
|
| /llvm-project-15.0.7/clang-tools-extra/clangd/unittests/ |
| H A D | SemanticHighlightingTests.cpp | 1020 auto Diff = diffTokens(Before, After); in TEST() local 1021 ASSERT_THAT(Diff, SizeIs(1)); in TEST() 1022 EXPECT_EQ(1u, Diff.front().startToken); in TEST() 1023 EXPECT_EQ(2u, Diff.front().deleteTokens); in TEST() 1024 ASSERT_THAT(Diff.front().tokens, SizeIs(3)); in TEST() 1026 EXPECT_EQ(0u, Diff.front().tokens[0].deltaLine); in TEST() 1028 EXPECT_EQ(5u, Diff.front().tokens[0].length); in TEST() 1030 EXPECT_EQ(0u, Diff.front().tokens[1].deltaLine); in TEST() 1032 EXPECT_EQ(5u, Diff.front().tokens[1].length); in TEST() 1034 EXPECT_EQ(0u, Diff.front().tokens[2].deltaLine); in TEST() [all …]
|
| /llvm-project-15.0.7/libcxx/test/std/containers/unord/ |
| H A D | iterator_difference_type.pass.cpp | 20 typedef typename Map::difference_type Diff; in testUnorderedMap() typedef 26 static_assert((std::is_same<typename It::difference_type, Diff>::value), ""); in testUnorderedMap() 33 static_assert((std::is_same<typename It::difference_type, Diff>::value), ""); in testUnorderedMap() 40 static_assert((std::is_same<typename It::difference_type, Diff>::value), ""); in testUnorderedMap() 47 static_assert((std::is_same<typename It::difference_type, Diff>::value), ""); in testUnorderedMap() 58 typedef typename Set::difference_type Diff; in testUnorderedSet() typedef 64 static_assert((std::is_same<typename It::difference_type, Diff>::value), ""); in testUnorderedSet() 72 static_assert((std::is_same<typename It::difference_type, Diff>::value), ""); in testUnorderedSet()
|
| /llvm-project-15.0.7/libcxx/test/std/containers/associative/ |
| H A D | iterator_types.pass.cpp | 20 typedef typename Map::difference_type Diff; in testMap() typedef 26 static_assert((std::is_same<typename It::difference_type, Diff>::value), ""); in testMap() 33 static_assert((std::is_same<typename It::difference_type, Diff>::value), ""); in testMap() 42 typedef typename Set::difference_type Diff; in testSet() typedef 48 static_assert((std::is_same<typename It::difference_type, Diff>::value), ""); in testSet()
|
| /llvm-project-15.0.7/llvm/tools/bugpoint/ |
| H A D | FindBugs.cpp | 79 Expected<bool> Diff = diffProgram(*Program, Filename, "", false); in runManyPasses() local 80 if (Error E = Diff.takeError()) { in runManyPasses() 84 if (*Diff) { in runManyPasses()
|
| H A D | Miscompilation.cpp | 84 if (Error E = Diff.takeError()) in doTest() 86 if (*Diff) { in doTest() 124 Diff = BD.diffProgram(BD.getProgram(), BitcodeResult, "", false); in doTest() 125 if (Error E = Diff.takeError()) in doTest() 127 if (*Diff) { in doTest() 169 Diff = BD.diffProgram(BD.getProgram(), BitcodeResult, "", in doTest() 171 if (Error E = Diff.takeError()) in doTest() 173 if (*Diff) { in doTest() 238 Expected<bool> Diff = BD.diffProgram(*Merged, "", "", false); in testMergedProgram() local 239 if (Error E = Diff.takeError()) in testMergedProgram() [all …]
|
| H A D | BugDriver.cpp | 217 Expected<bool> Diff = diffProgram(*Program, "", "", false); in run() local 218 if (Error E = Diff.takeError()) { in run() 222 if (!*Diff) { in run()
|
| /llvm-project-15.0.7/llvm/test/Analysis/BasicAA/ |
| H A D | modref.ll | 180 %Diff = sub i32 %V1, %V2 181 ret i32 %Diff 193 %Diff = sub i32 %V1, %V2 194 ret i32 %Diff 210 %Diff = sub i32 %V1, %V2 211 ret i32 %Diff 222 %Diff = sub i32 %V1, %V2 223 ret i32 %Diff 240 %Diff = sub i32 %V1, %V2 241 ret i32 %Diff [all …]
|
| H A D | 2003-09-19-LocalArgument.ll | 13 %Diff = sub i32 %V1, %V2 14 ret i32 %Diff
|
| /llvm-project-15.0.7/llvm/test/Transforms/EarlyCSE/ |
| H A D | basic.ll | 48 %Diff = sub i32 %V1, %V2 49 ret i32 %Diff 61 %Diff = sub i32 %V1, %V2 62 ret i32 %Diff 83 %Diff = sub i32 %V1, %V2 84 ret i32 %Diff 106 %Diff = sub i32 %V1, %V2 107 ret i32 %Diff 132 ret i32 %Diff 146 ret i32 %Diff [all …]
|
| /llvm-project-15.0.7/llvm/lib/Target/X86/ |
| H A D | X86CmovConversion.cpp | 483 unsigned Diff[LoopIterations] = {LoopDepth[0].Depth - LoopDepth[0].OptDepth, in checkForProfitableCmovCandidates() local 513 if (Diff[1] < GainCycleThreshold) in checkForProfitableCmovCandidates() 517 if (Diff[1] == Diff[0]) in checkForProfitableCmovCandidates() 518 WorthOptLoop = Diff[0] * 8 >= LoopDepth[0].Depth; in checkForProfitableCmovCandidates() 519 else if (Diff[1] > Diff[0]) in checkForProfitableCmovCandidates() 521 (Diff[1] - Diff[0]) * 2 >= (LoopDepth[1].Depth - LoopDepth[0].Depth) && in checkForProfitableCmovCandidates() 522 (Diff[1] * 8 >= LoopDepth[1].Depth); in checkForProfitableCmovCandidates()
|
| /llvm-project-15.0.7/compiler-rt/lib/gwp_asan/ |
| H A D | stack_trace_compressor.cpp | 73 uintptr_t Diff = Unpacked[CurrentDepth]; in pack() local 75 Diff -= Unpacked[CurrentDepth - 1]; in pack() 77 varIntEncode(zigzagEncode(Diff), Packed + Index, PackedMaxSize - Index); in pack()
|
| /llvm-project-15.0.7/llvm/lib/Support/ |
| H A D | FileUtilities.cpp | 145 double Diff; in CompareNumbers() local 147 Diff = std::abs(V1/V2 - 1.0); in CompareNumbers() 149 Diff = std::abs(V2/V1 - 1.0); in CompareNumbers() 151 Diff = 0; // Both zero. in CompareNumbers() 152 if (Diff > RelTolerance) { in CompareNumbers() 156 << "abs. diff = " << std::abs(V1-V2) << " rel.diff = " << Diff << '\n' in CompareNumbers()
|
| /llvm-project-15.0.7/llvm/lib/Transforms/Scalar/ |
| H A D | ConstantHoisting.cpp | 546 uint64_t Diff = LimVal1 - LimVal2; in calculateOffsetDiff() local 547 return APInt(BW, Diff, true); in calculateOffsetDiff() 609 Optional<APInt> Diff = calculateOffsetDiff( in maximizeConstantsInRange() local 612 if (Diff) { in maximizeConstantsInRange() 614 TTI->getIntImmCodeSizeCost(Opcode, OpndIdx, Diff.value(), Ty); in maximizeConstantsInRange() 616 LLVM_DEBUG(dbgs() << "Offset " << Diff.value() << " " in maximizeConstantsInRange() 654 APInt Diff = ConstCand->ConstInt->getValue() - ConstInt->getValue(); in findAndMakeBaseConstant() local 655 Constant *Offset = Diff == 0 ? nullptr : ConstantInt::get(Ty, Diff); in findAndMakeBaseConstant() 706 if ((Diff.getBitWidth() <= 64) && in findBaseConstants() 707 TTI->isLegalAddImmediate(Diff.getSExtValue()) && in findBaseConstants() [all …]
|
| /llvm-project-15.0.7/llvm/tools/llvm-remark-size-diff/ |
| H A D | RemarkSizeDiff.cpp | 403 for (auto &Diff : FunctionDiffs) { in getFunctionDiffListAsJSON() local 409 InstCountA = Diff.getInstCountA(); in getFunctionDiffListAsJSON() 410 StackSizeA = Diff.getStackSizeA(); in getFunctionDiffListAsJSON() 415 InstCountB = Diff.getInstCountB(); in getFunctionDiffListAsJSON() 416 StackSizeB = Diff.getStackSizeB(); in getFunctionDiffListAsJSON() 426 json::Object FunctionObject({{"FunctionName", Diff.FuncName}, in getFunctionDiffListAsJSON()
|
| /llvm-project-15.0.7/llvm/lib/CodeGen/ |
| H A D | ExpandMemCmp.cpp | 342 Value *Diff = Builder.CreateSub(Loads.Lhs, Loads.Rhs); in emitLoadCompareByteBlock() local 344 PhiRes->addIncoming(Diff, BB); in emitLoadCompareByteBlock() 349 Value *Cmp = Builder.CreateICmp(ICmpInst::ICMP_NE, Diff, in emitLoadCompareByteBlock() 350 ConstantInt::get(Diff->getType(), 0)); in emitLoadCompareByteBlock() 375 Value *Diff = nullptr; in getCompareLoadPairs() local 402 Diff = Builder.CreateXor(Loads.Lhs, Loads.Rhs); in getCompareLoadPairs() 403 Diff = Builder.CreateZExt(Diff, MaxLoadType); in getCompareLoadPairs() 404 XorList.push_back(Diff); in getCompareLoadPairs() 431 assert(Diff && "Failed to find comparison diff"); in getCompareLoadPairs() 432 Cmp = Builder.CreateICmpNE(OrList[0], ConstantInt::get(Diff->getType(), 0)); in getCompareLoadPairs()
|
| H A D | MIRSampleProfile.cpp | 227 BranchProbability Diff; in setBranchProbs() local 229 Diff = OldProb - NewProb; in setBranchProbs() 231 Diff = NewProb - OldProb; in setBranchProbs() 232 Show = (Diff >= BranchProbability(FSProfileDebugProbDiffThreshold, 100)); in setBranchProbs()
|
| /llvm-project-15.0.7/llvm/tools/llvm-exegesis/lib/ |
| H A D | Clustering.h | 116 const auto Diff = P[I].PerInstructionValue - Q[I].PerInstructionValue; in isNeighbour() local 117 DistanceSquared += Diff * Diff; in isNeighbour()
|
| /llvm-project-15.0.7/llvm/lib/Target/PowerPC/ |
| H A D | PPCLoopInstrFormPrep.cpp | 841 const SCEV *Diff = SE->getMinusSCEV(LSCEV, B.BaseSCEV); in addOneCandidate() local 842 if (isValidDiff(Diff)) { in addOneCandidate() 843 B.Elements.push_back(BucketElement(Diff, MemI)); in addOneCandidate() 1262 if (Diff && !Diff->getAPInt().urem(Form)) { in alreadyPrepared() 1406 auto isValidConstantDiff = [](const SCEV *Diff) { in runOnLoop() argument 1407 return dyn_cast<SCEVConstant>(Diff) != nullptr; in runOnLoop() 1412 auto isValidChainCommoningDiff = [](const SCEV *Diff) { in runOnLoop() argument 1413 assert(Diff && "Invalid Diff!\n"); in runOnLoop() 1416 if (isa<SCEVConstant>(Diff)) in runOnLoop() 1420 if (isa<SCEVUnknown>(Diff) && Diff->getType()->isIntegerTy()) in runOnLoop() [all …]
|
| /llvm-project-15.0.7/libc/benchmarks/automemcpy/lib/ |
| H A D | ResultAnalyzer.cpp | 86 const double Diff = S - SampleMean; in computeUnbiasedSampleVariance() local 87 DiffSquaresSum += Diff * Diff; in computeUnbiasedSampleVariance()
|
| /llvm-project-15.0.7/llvm/lib/Analysis/ |
| H A D | ScalarEvolutionDivision.cpp | 229 const SCEV *Diff = SE.getMinusSCEV(Numerator, Remainder); in visitMulExpr() local 231 if (sizeOfSCEV(Diff) > sizeOfSCEV(Numerator)) in visitMulExpr() 233 divide(SE, Diff, Denominator, &Q, &R); in visitMulExpr()
|
| /llvm-project-15.0.7/llvm/lib/Target/Hexagon/ |
| H A D | HexagonConstExtenders.cpp | 1721 Register ExtR, int32_t &Diff) { in replaceInstrExpr() argument 1741 int32_t D = isInt<16>(Diff) ? Diff : (Diff > 0 ? 32767 : -32768); in replaceInstrExpr() 1742 if (Diff > 32767) { in replaceInstrExpr() 1746 uint32_t UD = Diff; in replaceInstrExpr() 1755 Diff -= D; in replaceInstrExpr() 1761 if (!Uses.contains(-Diff)) in replaceInstrExpr() 1764 assert(Uses.contains(-Diff)); in replaceInstrExpr() 1787 Diff = 0; in replaceInstrExpr() 1829 MIB.addImm(Diff); in replaceInstrExpr() 1858 int32_t Diff = EV.Offset - DefV.Offset; in replaceInstr() local [all …]
|
| H A D | HexagonFixupHwLoops.cpp | 148 unsigned Diff = AbsoluteDifference(InstOffset, in fixupLoopInstrs() local 150 if (Diff > MaxLoopRange) { in fixupLoopInstrs()
|
| /llvm-project-15.0.7/clang/tools/clang-diff/ |
| H A D | ClangDiff.cpp | 266 static unsigned printHtmlForNode(raw_ostream &OS, const diff::ASTDiff &Diff, in printHtmlForNode() argument 272 diff::NodeId TargetId = Diff.getMapped(Tree, Id); in printHtmlForNode() 306 Offset = printHtmlForNode(OS, Diff, Tree, IsLeft, Child, Offset); in printHtmlForNode()
|