Home
last modified time | relevance | path

Searched refs:Diff (Results 1 – 25 of 75) sorted by relevance

123

/freebsd-src/contrib/llvm-project/llvm/tools/llvm-diff/lib/
H A DDiffLog.cpp32 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 DDiffLog.h62 SmallVector<DiffRecord, 20> Diff; variable
/freebsd-src/contrib/llvm-project/llvm/tools/bugpoint/
H A DFindBugs.cpp79 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 DMiscompilation.cpp82 Expected<bool> Diff = BD.diffProgram(BD.getProgram(), BitcodeResult, "", in doTest() local
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 in testMergedProgram() local
[all...]
H A DBugDriver.cpp213 // Diff the output of the raw program against the reference output. If it in run()
217 Expected<bool> Diff = diffProgram(*Program, "", "", false); in run() local
218 if (Error E = Diff.takeError()) { in run()
222 if (!*Diff) { in run()
/freebsd-src/contrib/llvm-project/llvm/lib/Support/
H A DFileUtilities.cpp146 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-src/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86CmovConversion.cpp441 // Depth-Diff[i]: in checkForProfitableCmovCandidates()
491 unsigned Diff[LoopIterations] = {LoopDepth[0].Depth - LoopDepth[0].OptDepth, in checkForProfitableCmovCandidates() local
497 // case 1: Diff[1] == Diff[0] in checkForProfitableCmovCandidates()
505 // case 2: Diff[1] > Diff[0] in checkForProfitableCmovCandidates()
511 // the gain - the change in Depth-Diff compared to the change in in checkForProfitableCmovCandidates()
517 // threshold. Thus, the check (Diff[1] >= GainCycleThreshold) must apply. in checkForProfitableCmovCandidates()
521 if (Diff[1] < GainCycleThreshold) in checkForProfitableCmovCandidates()
525 if (Diff[ in checkForProfitableCmovCandidates()
[all...]
/freebsd-src/contrib/llvm-project/compiler-rt/lib/gwp_asan/
H A Dstack_trace_compressor.cpp73 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-src/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DConstantHoisting.cpp551 uint64_t Diff = LimVal1 - LimVal2;
552 return APInt(BW, Diff, true);
611 std::optional<APInt> Diff = calculateOffsetDiff( in maximizeConstantsInRange()
613 if (Diff) { in maximizeConstantsInRange()
615 TTI->getIntImmCodeSizeCost(Opcode, OpndIdx, *Diff, Ty); in maximizeConstantsInRange()
617 LLVM_DEBUG(dbgs() << "Offset " << *Diff << " " in maximizeConstantsInRange()
655 APInt Diff = ConstCand->ConstInt->getValue() - ConstInt->getValue(); in findAndMakeBaseConstant()
656 Constant *Offset = Diff == 0 ? nullptr : ConstantInt::get(Ty, Diff); in findAndMakeBaseConstant()
705 APInt Diff in findBaseConstants()
546 uint64_t Diff = LimVal1 - LimVal2; calculateOffsetDiff() local
606 std::optional<APInt> Diff = calculateOffsetDiff( maximizeConstantsInRange() local
650 APInt Diff = ConstCand->ConstInt->getValue() - ConstInt->getValue(); findAndMakeBaseConstant() local
700 APInt Diff = CC->ConstInt->getValue() - MinValItr->ConstInt->getValue(); findBaseConstants() local
[all...]
/freebsd-src/contrib/llvm-project/llvm/tools/llvm-remarkutil/
H A DRemarkSizeDiff.cpp383 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-src/contrib/diff/
H A DAUTHORS42 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-src/contrib/llvm-project/llvm/lib/Target/PowerPC/
H A DPPCLoopInstrFormPrep.cpp847 const SCEV *Diff = SE->getMinusSCEV(LSCEV, B.BaseSCEV); in addOneCandidate()
848 if (isValidDiff(Diff)) { in addOneCandidate()
849 B.Elements.push_back(BucketElement(Diff, MemI)); in addOneCandidate()
1267 const SCEVConstant *Diff = dyn_cast<SCEVConstant>( in alreadyPrepared()
1269 if (Diff && !Diff->getAPInt().urem(Form)) { in alreadyPrepared()
1413 auto isValidConstantDiff = [](const SCEV *Diff) { in runOnLoop()
1414 return dyn_cast<SCEVConstant>(Diff) != nullptr; in runOnLoop() argument
1419 auto isValidChainCommoningDiff = [](const SCEV *Diff) { in runOnLoop()
1420 assert(Diff in runOnLoop()
842 const SCEV *Diff = SE->getMinusSCEV(LSCEV, B.BaseSCEV); addOneCandidate() local
1262 const SCEVConstant *Diff = dyn_cast<SCEVConstant>( alreadyPrepared() local
1408 __anon5d2d199f0702(const SCEV *Diff) runOnLoop() argument
[all...]
/freebsd-src/contrib/llvm-project/llvm/lib/CodeGen/
H A DExpandMemCmp.cpp383 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 in getCompareLoadPairs()
[all...]
H A DMIRSampleProfile.cpp259 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 DRegisterScavenging.cpp233 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-src/contrib/llvm-project/llvm/lib/Target/Hexagon/
H A DHexagonConstExtenders.cpp408 Register ExtR, int32_t &Diff);
1724 Register ExtR, int32_t &Diff) { in replaceInstrExpr()
1737 // Most of the time, simply adding Diff will make the addi produce exact in replaceInstrExpr()
1738 // result, but if Diff is outside of the 16-bit range, some adjustment in replaceInstrExpr()
1743 // Clamp Diff to the 16 bit range. in replaceInstrExpr()
1744 int32_t D = isInt<16>(Diff) ? Diff : (Diff > 0 ? 32767 : -32768); in replaceInstrExpr()
1745 if (Diff > 32767) { in replaceInstrExpr()
1746 // Split Diff int in replaceInstrExpr()
1721 replaceInstrExpr(const ExtDesc & ED,const ExtenderInit & ExtI,Register ExtR,int32_t & Diff) replaceInstrExpr() argument
1858 int32_t Diff = EV.Offset - DefV.Offset; replaceInstr() local
[all...]
H A DHexagonFixupHwLoops.cpp148 unsigned Diff = AbsoluteDifference(InstOffset, in fixupLoopInstrs() local
150 if (Diff > MaxLoopRange) { in fixupLoopInstrs()
/freebsd-src/contrib/llvm-project/llvm/lib/IR/
H A DPrintPasses.cpp234 std::string Diff; in doSystemDiff() local
237 Diff = (*B)->getBuffer().str(); in doSystemDiff()
244 return Diff; in doSystemDiff()
/freebsd-src/contrib/llvm-project/llvm/lib/Analysis/
H A DScalarEvolutionDivision.cpp233 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 DStackSafetyAnalysis.cpp302 const SCEV *Diff = SE.getMinusSCEV(AddrExp, BaseExp); in getAccessRange()
303 if (isa<SCEVCouldNotCompute>(Diff)) in getAccessRange()
306 ConstantRange Offset = SE.getSignedRange(Diff); in getAccessRange()
394 const SCEV *Diff = SE.getMinusSCEV(AddrExp, BaseExp); in analyzeAllUses()
395 if (isa<SCEVCouldNotCompute>(Diff)) in analyzeAllUses()
407 return SE.evaluatePredicateAt(ICmpInst::Predicate::ICMP_SGE, Diff, Min, I) in analyzeAllUses()
409 SE.evaluatePredicateAt(ICmpInst::Predicate::ICMP_SLE, Diff, Max, I) in analyzeAllUses()
278 const SCEV *Diff = SE.getMinusSCEV(AddrExp, BaseExp); offsetFrom() local
372 const SCEV *Diff = SE.getMinusSCEV(AddrExp, BaseExp); isSafeAccess() local
/freebsd-src/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUPreLegalizerCombiner.cpp135 const auto Diff = std::abs(Cmp2 - Cmp1); in matchClampI64ToI16()
139 if (Diff == 0 || Diff == 1) in matchClampI64ToI16()
137 const auto Diff = std::abs(Cmp2 - Cmp1); matchClampI64ToI16() local
H A DGCNRegPressure.h141 GCNRegPressure Diff = P1;
142 Diff -= P2;
143 return Diff;
129 GCNRegPressure Diff = P1; global() variable
/freebsd-src/crypto/openssl/util/
H A Dc-compress-test.pl40 use Text::Diff;
/freebsd-src/contrib/llvm-project/clang/lib/Tooling/Refactoring/
H A DLookup.cpp64 unsigned Diff = UseNamespaces.size() - FromNamespaces.size(); in usingFromDifferentCanonicalNamespace() local
69 auto UseIter = UseNamespaces.begin() + Diff; in usingFromDifferentCanonicalNamespace()
/freebsd-src/contrib/llvm-project/clang/utils/TableGen/
H A DClangDiagnosticsEmitter.cpp737 CASE(Diff); in Visit()
1130 DiffPiece *Diff = New<DiffPiece>(); in parseDiagText()
1132 Diff->Parts[0] = parseDiagText(Text, StopAt::Dollar); in parseDiagText()
1134 Diff->Parts[1] = parseDiagText(Text, StopAt::Dollar); in parseDiagText()
1136 Diff->Parts[2] = parseDiagText(Text, StopAt::PipeOrCloseBrace); in parseDiagText()
1138 Diff->Parts[3] = parseDiagText(Text, StopAt::PipeOrCloseBrace); in parseDiagText()
1140 Diff->Indexes[0] = parseModifier(Text); in parseDiagText()
1142 Diff->Indexes[1] = parseModifier(Text); in parseDiagText()
1143 Parsed.push_back(Diff); in parseDiagText()
1135 DiffPiece *Diff = New<DiffPiece>(); parseDiagText() local

123