Home
last modified time | relevance | path

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

1234

/llvm-project/llvm/tools/llvm-readtapi/
H A DDiffEngine.cpp127 void addDiffForTargSlice(V Val, Target Targ, DiffOutput &Diff, in addDiffForTargSlice() argument
130 Diff.Values, [&](const std::unique_ptr<AttributeDiff> &RawTVec) { in addDiffForTargSlice()
135 if (TargetVector != Diff.Values.end()) { in addDiffForTargSlice()
142 Diff.Values.push_back(std::move(NewTargetVec)); in addDiffForTargSlice()
148 DiffOutput Diff(Name); in getSingleAttrDiff() local
149 Diff.Kind = AD_Str_Vec; in getSingleAttrDiff()
154 IRef.getInstallName(), Targ, Diff, Order); in getSingleAttrDiff()
155 return Diff; in getSingleAttrDiff()
161 DiffOutput Diff(Name); in getSingleAttrDiff() local
162 Diff.Kind = AD_Str_Vec; in getSingleAttrDiff()
[all …]
/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()
/llvm-project/clang-tools-extra/clangd/unittests/
H A DSemanticHighlightingTests.cpp1265 auto Diff = diffTokens(Before, After); in TEST()
1266 ASSERT_THAT(Diff, SizeIs(1)); in TEST()
1267 EXPECT_EQ(1u, Diff.front().startToken); in TEST()
1268 EXPECT_EQ(2u, Diff.front().deleteTokens); in TEST()
1269 ASSERT_THAT(Diff.front().tokens, SizeIs(3)); in TEST()
1271 EXPECT_EQ(0u, Diff.front().tokens[0].deltaLine); in TEST()
1272 EXPECT_EQ(4u, Diff.front().tokens[0].deltaStart); in TEST()
1273 EXPECT_EQ(5u, Diff.front().tokens[0].length); in TEST()
1275 EXPECT_EQ(0u, Diff.front().tokens[1].deltaLine); in TEST()
1276 EXPECT_EQ(6u, Diff in TEST()
1258 auto Diff = diffTokens(Before, After); TEST() local
[all...]
/llvm-project/llvm/test/CodeGen/AMDGPU/
H A Dschedule-regpressure.mir10 # CHECK: Pressure Diff : {{$}}
15 # NORP-NOT: Pressure Diff : {{$}}
16 # NORP-NOT: Pressure Diff : {{$}}
17 # NORP-NOT: Pressure Diff : {{$}}
18 # NORP-NOT: Pressure Diff : {{$}}
19 # NORP-NOT: Pressure Diff : {{$}}
20 # NORP-NOT: Pressure Diff : {{$}}
/llvm-project/libcxx/test/std/containers/unord/
H A Diterator_difference_type.pass.cpp20 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/libcxx/test/std/containers/associative/
H A Diterator_types.pass.cpp20 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/llvm/test/Analysis/BasicAA/
H A Dmodref.ll180 %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 D2003-09-19-LocalArgument.ll13 %Diff = sub i32 %V1, %V2
14 ret i32 %Diff
/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()
/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.cpp217 Expected<bool> Diff = diffProgram(*Program, "", "", false); in run() local
218 if (Error E = Diff.takeError()) { in run()
222 if (!*Diff) { in run()
/llvm-project/llvm/test/Transforms/EarlyCSE/
H A Dbasic.ll48 %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
131 %Diff = sub i32 %V1, %V2
132 ret i32 %Diff
[all …]
/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...]
/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()
/llvm-project/llvm/lib/Transforms/Scalar/
H A DConstantHoisting.cpp590 APInt Diff = C2->ConstInt->getValue() - ConstCand->ConstInt->getValue(); in maximizeConstantsInRange()
592 TTI->getIntImmCodeSizeCost(Opcode, OpndIdx, Diff, Ty); in maximizeConstantsInRange()
594 LLVM_DEBUG(dbgs() << "Offset " << Diff << " " in maximizeConstantsInRange()
631 APInt Diff = ConstCand->ConstInt->getValue() - ConstInt->getValue(); in maximizeConstantsInRange()
632 Constant *Offset = Diff == 0 ? nullptr : ConstantInt::get(Ty, Diff); in maximizeConstantsInRange()
681 APInt Diff = CC->ConstInt->getValue() - MinValItr->ConstInt->getValue(); in findBaseConstants()
682 if ((Diff.getBitWidth() <= 64) && in findBaseConstants()
683 TTI->isLegalAddImmediate(Diff.getSExtValue()) && in findBaseConstants()
684 // Check if Diff ca in findBaseConstants()
551 uint64_t Diff = LimVal1 - LimVal2; calculateOffsetDiff() local
611 std::optional<APInt> Diff = calculateOffsetDiff( maximizeConstantsInRange() local
655 APInt Diff = ConstCand->ConstInt->getValue() - ConstInt->getValue(); findAndMakeBaseConstant() local
705 APInt Diff = CC->ConstInt->getValue() - MinValItr->ConstInt->getValue(); findBaseConstants() local
[all...]
/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()
/llvm-project/clang/lib/StaticAnalyzer/Core/
H A DZ3CrosscheckVisitor.cpp83 llvm::TimeRecord Diff = llvm::TimeRecord::getCurrentTime(/*Start=*/false); finalizeVisitor() local
/llvm-project/llvm/tools/llvm-exegesis/lib/
H A DClustering.h115 const auto Diff = P[I].PerInstructionValue - Q[I].PerInstructionValue; in isNeighbour() local
116 DistanceSquared += Diff * Diff; in isNeighbour()
/llvm-project/llvm/lib/Target/PowerPC/
H A DPPCLoopInstrFormPrep.cpp845 const SCEV *Diff = SE->getMinusSCEV(LSCEV, B.BaseSCEV); in addOneCandidate()
846 if (isValidDiff(Diff)) { in addOneCandidate()
847 B.Elements.push_back(BucketElement(Diff, MemI)); in addOneCandidate() local
1265 const SCEVConstant *Diff = dyn_cast<SCEVConstant>( in alreadyPrepared()
1267 if (Diff && !Diff->getAPInt().urem(Form)) { in alreadyPrepared() local
1411 auto isValidConstantDiff = [](const SCEV *Diff) { in runOnLoop()
1412 return dyn_cast<SCEVConstant>(Diff) != nullptr; in runOnLoop()
1417 auto isValidChainCommoningDiff = [](const SCEV *Diff) { in runOnLoop()
1418 assert(Diff in runOnLoop()
1413 __anon091fa8600702(const SCEV *Diff) runOnLoop() argument
1419 __anon091fa8600802(const SCEV *Diff) runOnLoop() argument
[all...]
/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.cpp262 BranchProbability Diff; in setBranchProbs()
264 Diff = OldProb - NewProb; in setBranchProbs()
266 Diff = NewProb - OldProb; in setBranchProbs()
267 Show = (Diff >= BranchProbability(FSProfileDebugProbDiffThreshold, 100)); in setBranchProbs()
259 BranchProbability Diff; setBranchProbs() local
/llvm-project/libc/benchmarks/automemcpy/lib/
H A DResultAnalyzer.cpp
/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()
1720 replaceInstrExpr(const ExtDesc & ED,const ExtenderInit & ExtI,Register ExtR,int32_t & Diff) replaceInstrExpr() argument
1857 int32_t Diff = EV.Offset - DefV.Offset; replaceInstr() local
[all...]
/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()

1234