/freebsd/contrib/llvm-project/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()
|
H A D | DiffLog.h | 62 SmallVector<DiffRecord, 20> Diff; variable
|
/freebsd/contrib/llvm-project/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()
|
/freebsd/contrib/llvm-project/llvm/lib/Support/ |
H A D | FileUtilities.cpp | 146 double Diff; in CompareNumbers() local 148 Diff = std::abs(V1/V2 - 1.0); in CompareNumbers() 150 Diff = std::abs(V2/V1 - 1.0); in CompareNumbers() 152 Diff = 0; // Both zero. in CompareNumbers() 153 if (Diff > RelTolerance) { in CompareNumbers() 157 << "abs. diff = " << std::abs(V1-V2) << " rel.diff = " << Diff << '\n' in CompareNumbers()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/ |
H A D | X86CmovConversion.cpp | 491 unsigned Diff[LoopIterations] = {LoopDepth[0].Depth - LoopDepth[0].OptDepth, in checkForProfitableCmovCandidates() local 521 if (Diff[1] < GainCycleThreshold) in checkForProfitableCmovCandidates() 525 if (Diff[1] == Diff[0]) in checkForProfitableCmovCandidates() 526 WorthOptLoop = Diff[0] * 8 >= LoopDepth[0].Depth; in checkForProfitableCmovCandidates() 527 else if (Diff[1] > Diff[0]) in checkForProfitableCmovCandidates() 529 (Diff[1] - Diff[0]) * 2 >= (LoopDepth[1].Depth - LoopDepth[0].Depth) && in checkForProfitableCmovCandidates() 530 (Diff[1] * 8 >= LoopDepth[1].Depth); in checkForProfitableCmovCandidates()
|
/freebsd/contrib/llvm-project/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()
|
/freebsd/contrib/llvm-project/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() 606 std::optional<APInt> Diff = calculateOffsetDiff( in maximizeConstantsInRange() local 608 if (Diff) { in maximizeConstantsInRange() 610 TTI->getIntImmCodeSizeCost(Opcode, OpndIdx, *Diff, Ty); in maximizeConstantsInRange() 612 LLVM_DEBUG(dbgs() << "Offset " << *Diff << " " in maximizeConstantsInRange() 650 APInt Diff = ConstCand->ConstInt->getValue() - ConstInt->getValue(); in findAndMakeBaseConstant() local 651 Constant *Offset = Diff == 0 ? nullptr : ConstantInt::get(Ty, Diff); in findAndMakeBaseConstant() 701 if ((Diff.getBitWidth() <= 64) && in findBaseConstants() 702 TTI->isLegalAddImmediate(Diff.getSExtValue()) && in findBaseConstants() [all …]
|
/freebsd/contrib/llvm-project/llvm/tools/llvm-remarkutil/ |
H A D | RemarkSizeDiff.cpp | 383 for (auto &Diff : FunctionDiffs) { in getFunctionDiffListAsJSON() local 389 InstCountA = Diff.getInstCountA(); in getFunctionDiffListAsJSON() 390 StackSizeA = Diff.getStackSizeA(); in getFunctionDiffListAsJSON() 395 InstCountB = Diff.getInstCountB(); in getFunctionDiffListAsJSON() 396 StackSizeB = Diff.getStackSizeB(); in getFunctionDiffListAsJSON() 406 json::Object FunctionObject({{"FunctionName", Diff.FuncName}, in getFunctionDiffListAsJSON()
|
/freebsd/contrib/diff/ |
H A D | AUTHORS | 42 Assigns changes to GNU Diff. 61 Disclaims changes to GNU Diff. 65 Disclaims changes to GNU Diff by Paul Eggert. 68 Disclaims changes to GNU Diff by Paul Eggert.
|
/freebsd/contrib/llvm-project/llvm/lib/Target/PowerPC/ |
H A D | PPCLoopInstrFormPrep.cpp | 842 const SCEV *Diff = SE->getMinusSCEV(LSCEV, B.BaseSCEV); in addOneCandidate() local 843 if (isValidDiff(Diff)) { in addOneCandidate() 844 B.Elements.push_back(BucketElement(Diff, MemI)); in addOneCandidate() 1264 if (Diff && !Diff->getAPInt().urem(Form)) { in alreadyPrepared() 1408 auto isValidConstantDiff = [](const SCEV *Diff) { in runOnLoop() argument 1409 return dyn_cast<SCEVConstant>(Diff) != nullptr; in runOnLoop() 1414 auto isValidChainCommoningDiff = [](const SCEV *Diff) { in runOnLoop() argument 1415 assert(Diff && "Invalid Diff!\n"); in runOnLoop() 1418 if (isa<SCEVConstant>(Diff)) in runOnLoop() 1422 if (isa<SCEVUnknown>(Diff) && Diff->getType()->isIntegerTy()) in runOnLoop() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/ |
H A D | ExpandMemCmp.cpp | 383 Value *Diff = Builder.CreateSub(Loads.Lhs, Loads.Rhs); in emitLoadCompareByteBlock() local 385 PhiRes->addIncoming(Diff, BB); in emitLoadCompareByteBlock() 390 Value *Cmp = Builder.CreateICmp(ICmpInst::ICMP_NE, Diff, in emitLoadCompareByteBlock() 391 ConstantInt::get(Diff->getType(), 0)); in emitLoadCompareByteBlock() 416 Value *Diff = nullptr; in getCompareLoadPairs() local 444 Diff = Builder.CreateXor(Loads.Lhs, Loads.Rhs); in getCompareLoadPairs() 445 Diff = Builder.CreateZExt(Diff, MaxLoadType); in getCompareLoadPairs() 446 XorList.push_back(Diff); in getCompareLoadPairs() 473 assert(Diff && "Failed to find comparison diff"); in getCompareLoadPairs() 474 Cmp = Builder.CreateICmpNE(OrList[0], ConstantInt::get(Diff->getType(), 0)); in getCompareLoadPairs()
|
H A D | MIRSampleProfile.cpp | 259 BranchProbability Diff; in setBranchProbs() local 261 Diff = OldProb - NewProb; in setBranchProbs() 263 Diff = NewProb - OldProb; in setBranchProbs() 264 Show = (Diff >= BranchProbability(FSProfileDebugProbDiffThreshold, 100)); in setBranchProbs()
|
H A D | RegisterScavenging.cpp | 233 unsigned SI = Scavenged.size(), Diff = std::numeric_limits<unsigned>::max(); in spill() local 253 if (D < Diff) { in spill() 255 Diff = D; in spill()
|
/freebsd/contrib/llvm-project/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()
|
/freebsd/contrib/llvm-project/llvm/lib/Analysis/ |
H A D | ScalarEvolutionDivision.cpp | 233 const SCEV *Diff = SE.getMinusSCEV(Numerator, Remainder); in visitMulExpr() local 235 if (sizeOfSCEV(Diff) > sizeOfSCEV(Numerator)) in visitMulExpr() 237 divide(SE, Diff, Denominator, &Q, &R); in visitMulExpr()
|
H A D | StackSafetyAnalysis.cpp | 278 const SCEV *Diff = SE.getMinusSCEV(AddrExp, BaseExp); in offsetFrom() local 279 if (isa<SCEVCouldNotCompute>(Diff)) in offsetFrom() 282 ConstantRange Offset = SE.getSignedRange(Diff); in offsetFrom() 372 const SCEV *Diff = SE.getMinusSCEV(AddrExp, BaseExp); in isSafeAccess() local 373 if (isa<SCEVCouldNotCompute>(Diff)) in isSafeAccess() 385 return SE.evaluatePredicateAt(ICmpInst::Predicate::ICMP_SGE, Diff, Min, I) in isSafeAccess() 387 SE.evaluatePredicateAt(ICmpInst::Predicate::ICMP_SLE, Diff, Max, I) in isSafeAccess()
|
/freebsd/contrib/llvm-project/llvm/lib/IR/ |
H A D | PrintPasses.cpp | 234 std::string Diff; in doSystemDiff() local 237 Diff = (*B)->getBuffer().str(); in doSystemDiff() 244 return Diff; in doSystemDiff()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/ |
H A D | AMDGPUPreLegalizerCombiner.cpp | 137 const auto Diff = std::abs(Cmp2 - Cmp1); in matchClampI64ToI16() local 141 if (Diff == 0 || Diff == 1) in matchClampI64ToI16()
|
H A D | GCNRegPressure.h | 129 GCNRegPressure Diff = P1; variable 130 Diff -= P2; 131 return Diff;
|
/freebsd/crypto/openssl/util/ |
H A D | c-compress-test.pl | 40 use Text::Diff;
|
/freebsd/contrib/llvm-project/clang/lib/Tooling/Refactoring/ |
H A D | Lookup.cpp | 64 unsigned Diff = UseNamespaces.size() - FromNamespaces.size(); in usingFromDifferentCanonicalNamespace() local 69 auto UseIter = UseNamespaces.begin() + Diff; in usingFromDifferentCanonicalNamespace()
|
/freebsd/contrib/llvm-project/clang/utils/TableGen/ |
H A D | ClangDiagnosticsEmitter.cpp | 737 CASE(Diff); in Visit() 1135 DiffPiece *Diff = New<DiffPiece>(); in parseDiagText() local 1137 Diff->Parts[0] = parseDiagText(Text, StopAt::Dollar); in parseDiagText() 1139 Diff->Parts[1] = parseDiagText(Text, StopAt::Dollar); in parseDiagText() 1141 Diff->Parts[2] = parseDiagText(Text, StopAt::PipeOrCloseBrace); in parseDiagText() 1143 Diff->Parts[3] = parseDiagText(Text, StopAt::PipeOrCloseBrace); in parseDiagText() 1145 Diff->Indexes[0] = parseModifier(Text); in parseDiagText() 1147 Diff->Indexes[1] = parseModifier(Text); in parseDiagText() 1148 Parsed.push_back(Diff); in parseDiagText()
|