Home
last modified time | relevance | path

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

1234

/freebsd/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()
/freebsd/contrib/llvm-project/llvm/tools/llvm-tapi-diff/
H A DDiffEngine.cpp
H A DDiffEngine.h
/freebsd/contrib/llvm-project/llvm/tools/bugpoint/
H A DFindBugs.cpp78 Expected<bool> Diff = diffProgram(*Program, Filename, "", false); in runManyPasses() local
79 if (Error E = Diff.takeError()) { in runManyPasses()
83 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 = BD.diffProgram(*Merged, "", "", false); in testMergedProgram() local
[all …]
H A DBugDriver.cpp218 Expected<bool> Diff = diffProgram(*Program, "", "", false); in run() local
219 if (Error E = Diff.takeError()) { in run()
223 if (!*Diff) { in run()
/freebsd/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/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86CmovConversion.cpp488 unsigned Diff[LoopIterations] = {LoopDepth[0].Depth - LoopDepth[0].OptDepth, in checkForProfitableCmovCandidates() local
518 if (Diff[1] < GainCycleThreshold) in checkForProfitableCmovCandidates()
522 if (Diff[1] == Diff[0]) in checkForProfitableCmovCandidates()
523 WorthOptLoop = Diff[0] * 8 >= LoopDepth[0].Depth; in checkForProfitableCmovCandidates()
524 else if (Diff[1] > Diff[0]) in checkForProfitableCmovCandidates()
526 (Diff[1] - Diff[0]) * 2 >= (LoopDepth[1].Depth - LoopDepth[0].Depth) && in checkForProfitableCmovCandidates()
527 (Diff[1] * 8 >= LoopDepth[1].Depth); in checkForProfitableCmovCandidates()
/freebsd/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/contrib/llvm-project/llvm/include/llvm/SandboxIR/
H A DUtils.h115 auto Diff = getPointerDiffInBytes(I0, I1, SE); in atLowerAddress() local
116 if (!Diff) in atLowerAddress()
118 return *Diff > 0; in atLowerAddress()
/freebsd/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/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 && "Failed to find comparison diff"); in getCompareLoadPairs()
474 Cmp = Builder.CreateICmpNE(OrList[0], ConstantInt::get(Diff->getType(), 0)); in getCompareLoadPairs()
H A DMIRSampleProfile.cpp262 BranchProbability Diff; in setBranchProbs() local
264 Diff = OldProb - NewProb; in setBranchProbs()
266 Diff = NewProb - OldProb; in setBranchProbs()
267 Show = (Diff >= BranchProbability(FSProfileDebugProbDiffThreshold, 100)); in setBranchProbs()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DConstantHoisting.cpp587 APInt Diff = C2->ConstInt->getValue() - ConstCand->ConstInt->getValue(); in maximizeConstantsInRange() local
589 TTI->getIntImmCodeSizeCost(Opcode, OpndIdx, Diff, Ty); in maximizeConstantsInRange()
591 LLVM_DEBUG(dbgs() << "Offset " << Diff << " " in maximizeConstantsInRange()
628 APInt Diff = ConstCand->ConstInt->getValue() - ConstInt->getValue(); in findAndMakeBaseConstant() local
629 Constant *Offset = Diff == 0 ? nullptr : ConstantInt::get(Ty, Diff); in findAndMakeBaseConstant()
678 APInt Diff = CC->ConstInt->getValue() - MinValItr->ConstInt->getValue(); in findBaseConstants() local
679 if ((Diff.getBitWidth() <= 64) && in findBaseConstants()
680 TTI->isLegalAddImmediate(Diff.getSExtValue()) && in findBaseConstants()
684 /*BaseGV*/nullptr, /*BaseOffset*/Diff.getSExtValue(), in findBaseConstants()
/freebsd/contrib/llvm-project/llvm/lib/Target/PowerPC/
H A DPPCLoopInstrFormPrep.cpp838 const SCEV *Diff = SE->getMinusSCEV(LSCEV, B.BaseSCEV); in addOneCandidate() local
839 if (isValidDiff(Diff)) { in addOneCandidate()
840 B.Elements.push_back(BucketElement(Diff, MemI)); in addOneCandidate()
1258 const SCEVConstant *Diff = dyn_cast<SCEVConstant>( in alreadyPrepared() local
1260 if (Diff && !Diff->getAPInt().urem(Form)) { in alreadyPrepared()
1404 auto isValidConstantDiff = [](const SCEV *Diff) { in runOnLoop() argument
1405 return dyn_cast<SCEVConstant>(Diff) != nullptr; in runOnLoop()
1410 auto isValidChainCommoningDiff = [](const SCEV *Diff) { in runOnLoop() argument
1411 assert(Diff && "Invalid Diff!\n"); in runOnLoop()
1414 if (isa<SCEVConstant>(Diff)) in runOnLoop()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/Hexagon/
H A DHexagonConstExtenders.cpp395 Register ExtR, int32_t &Diff);
1705 Register ExtR, int32_t &Diff) { in replaceInstrExpr() argument
1725 int32_t D = isInt<16>(Diff) ? Diff : (Diff > 0 ? 32767 : -32768); in replaceInstrExpr()
1726 if (Diff > 32767) { in replaceInstrExpr()
1730 uint32_t UD = Diff; in replaceInstrExpr()
1739 Diff -= D; in replaceInstrExpr()
1745 if (!Uses.contains(-Diff)) in replaceInstrExpr()
1746 dbgs() << "Diff: " << -Diff << " out of range " << Uses in replaceInstrExpr()
1748 assert(Uses.contains(-Diff)); in replaceInstrExpr()
1771 Diff = 0; in replaceInstrExpr()
[all …]
H A DHexagonFixupHwLoops.cpp140 unsigned Diff = AbsoluteDifference(InstOffset, in fixupLoopInstrs() local
142 if (Diff > MaxLoopRange) { in fixupLoopInstrs()
/freebsd/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()
/freebsd/contrib/llvm-project/llvm/include/llvm/Transforms/Vectorize/SandboxVectorizer/
H A DInterval.h192 auto Diff = *this - Other; in getSingleDiff() local
193 assert(Diff.size() == 1 && "Expected a single interval!"); in getSingleDiff()
194 return Diff[0]; in getSingleDiff()
H A DVecUtils.h63 auto Diff = Utils::getPointerDiffInBytes(I1, I2, SE);
64 if (!Diff)
67 return *Diff == ElmBytes;
/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DPrintPasses.cpp242 std::string Diff; in doSystemDiff() local
245 Diff = (*B)->getBuffer().str(); in doSystemDiff()
252 return Diff; in doSystemDiff()
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUPreLegalizerCombiner.cpp134 const auto Diff = std::abs(Cmp2 - Cmp1); in matchClampI64ToI16() local
138 if (Diff == 0 || Diff == 1) in matchClampI64ToI16()
H A DGCNRegPressure.h160 GCNRegPressure Diff = P1; variable
161 Diff -= P2;
162 return Diff;
/freebsd/crypto/openssl/util/
H A Dc-compress-test.pl40 use Text::Diff;
/freebsd/contrib/llvm-project/libc/src/__support/CPP/
H A Dstring_view.h36 if (int Diff = (int)Lhs[i] - (int)Rhs[i]) in compareMemory() local
37 return Diff; in compareMemory()

1234