Home
last modified time | relevance | path

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

1234567

/external/llvm/tools/llvm-diff/
DDiffLog.cpp34 Diff.push_back(DiffRecord(L, R)); in addMatch()
38 Diff.push_back(DiffRecord(L, DiffRecord::second_type(nullptr))); in addLeft()
42 Diff.push_back(DiffRecord(DiffRecord::first_type(nullptr), R)); in addRight()
45 unsigned DiffLogBuilder::getNumLines() const { return Diff.size(); } in getNumLines()
48 return (Diff[I].first ? (Diff[I].second ? DC_match : DC_left) in getLineKind()
51 Instruction *DiffLogBuilder::getLeft(unsigned I) const { return Diff[I].first; } in getLeft()
52 Instruction *DiffLogBuilder::getRight(unsigned I) const { return Diff[I].second; } in getRight()
/external/llvm-project/llvm/tools/llvm-diff/
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()
49 Instruction *DiffLogBuilder::getLeft(unsigned I) const { return Diff[I].first; } in getLeft()
50 Instruction *DiffLogBuilder::getRight(unsigned I) const { return Diff[I].second; } in getRight()
/external/rust/crates/itertools/src/
Ddiff.rs15 pub enum Diff<I, J> enum
41 -> Option<Diff<I::IntoIter, J::IntoIter>> in diff_with()
51 None => return Some(Diff::Shorter(idx, put_back(i).with_value(i_elem))), in diff_with()
55 return Some(Diff::FirstMismatch(idx, remaining_i, remaining_j)); in diff_with()
60 j.next().map(|j_elem| Diff::Longer(idx, put_back(j).with_value(j_elem))) in diff_with()
/external/llvm-project/clang-tools-extra/clangd/unittests/
DSemanticHighlightingTests.cpp808 auto Diff = diffTokens(Before, After); in TEST() local
809 ASSERT_THAT(Diff, SizeIs(1)); in TEST()
810 EXPECT_EQ(1u, Diff.front().startToken); in TEST()
811 EXPECT_EQ(2u, Diff.front().deleteTokens); in TEST()
812 ASSERT_THAT(Diff.front().tokens, SizeIs(3)); in TEST()
814 EXPECT_EQ(0u, Diff.front().tokens[0].deltaLine); in TEST()
815 EXPECT_EQ(4u, Diff.front().tokens[0].deltaStart); in TEST()
816 EXPECT_EQ(5u, Diff.front().tokens[0].length); in TEST()
818 EXPECT_EQ(0u, Diff.front().tokens[1].deltaLine); in TEST()
819 EXPECT_EQ(6u, Diff.front().tokens[1].deltaStart); in TEST()
[all …]
/external/llvm/test/Analysis/BasicAA/
Dmodref.ll158 %Diff = sub i32 %V1, %V2
159 ret i32 %Diff
163 ; CHECK: ret i32 %Diff
172 %Diff = sub i32 %V1, %V2
173 ret i32 %Diff
185 %Diff = sub i32 %V1, %V2
186 ret i32 %Diff
190 ; CHECK: ret i32 %Diff
198 %Diff = sub i32 %V1, %V2
199 ret i32 %Diff
[all …]
D2003-09-19-LocalArgument.ll13 %Diff = sub i32 %V1, %V2
14 ret i32 %Diff
/external/llvm-project/libcxx/test/std/containers/unord/
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()
/external/libcxx/test/std/containers/unord/
Diterator_difference_type.pass.cpp21 typedef typename Map::difference_type Diff; in testUnorderedMap() typedef
27 static_assert((std::is_same<typename It::difference_type, Diff>::value), ""); in testUnorderedMap()
34 static_assert((std::is_same<typename It::difference_type, Diff>::value), ""); in testUnorderedMap()
41 static_assert((std::is_same<typename It::difference_type, Diff>::value), ""); in testUnorderedMap()
48 static_assert((std::is_same<typename It::difference_type, Diff>::value), ""); in testUnorderedMap()
59 typedef typename Set::difference_type Diff; in testUnorderedSet() typedef
65 static_assert((std::is_same<typename It::difference_type, Diff>::value), ""); in testUnorderedSet()
73 static_assert((std::is_same<typename It::difference_type, Diff>::value), ""); in testUnorderedSet()
/external/llvm/test/Transforms/EarlyCSE/
Dbasic.ll41 %Diff = sub i32 %V1, %V2
42 ret i32 %Diff
51 %Diff = sub i32 %V1, %V2
52 ret i32 %Diff
66 %Diff = sub i32 %V1, %V2
67 ret i32 %Diff
82 %Diff = sub i32 %V1, %V2
83 ret i32 %Diff
100 %Diff = sub i32 %V1, %V2
101 ret i32 %Diff
[all …]
/external/llvm/lib/Support/
DFileUtilities.cpp141 double Diff; in CompareNumbers() local
143 Diff = std::abs(V1/V2 - 1.0); in CompareNumbers()
145 Diff = std::abs(V2/V1 - 1.0); in CompareNumbers()
147 Diff = 0; // Both zero. in CompareNumbers()
148 if (Diff > RelTolerance) { in CompareNumbers()
152 << "abs. diff = " << std::abs(V1-V2) << " rel.diff = " << Diff << '\n' in CompareNumbers()
/external/llvm-project/llvm/test/Transforms/EarlyCSE/
Dbasic.ll42 %Diff = sub i32 %V1, %V2
43 ret i32 %Diff
52 %Diff = sub i32 %V1, %V2
53 ret i32 %Diff
67 %Diff = sub i32 %V1, %V2
68 ret i32 %Diff
83 %Diff = sub i32 %V1, %V2
84 ret i32 %Diff
101 %Diff = sub i32 %V1, %V2
102 ret i32 %Diff
[all …]
/external/llvm/lib/Transforms/Scalar/
DConstantHoisting.cpp303 uint64_t Diff = LimVal1 - LimVal2; in calculateOffsetDiff() local
304 return APInt(BW, Diff, true); in calculateOffsetDiff()
361 llvm::Optional<APInt> Diff = calculateOffsetDiff( in maximizeConstantsInRange() local
364 if (Diff) { in maximizeConstantsInRange()
366 TTI->getIntImmCodeSizeCost(Opcode, OpndIdx, Diff.getValue(), Ty); in maximizeConstantsInRange()
368 DEBUG(dbgs() << "Offset " << Diff.getValue() << " " in maximizeConstantsInRange()
402 APInt Diff = ConstCand->ConstInt->getValue() - in findAndMakeBaseConstant() local
404 Constant *Offset = Diff == 0 ? nullptr : ConstantInt::get(Ty, Diff); in findAndMakeBaseConstant()
430 APInt Diff = CC->ConstInt->getValue() - MinValItr->ConstInt->getValue(); in findBaseConstants() local
431 if ((Diff.getBitWidth() <= 64) && in findBaseConstants()
[all …]
/external/libcxx/test/std/containers/associative/
Diterator_types.pass.cpp21 typedef typename Map::difference_type Diff; in testMap() typedef
27 static_assert((std::is_same<typename It::difference_type, Diff>::value), ""); in testMap()
34 static_assert((std::is_same<typename It::difference_type, Diff>::value), ""); in testMap()
43 typedef typename Set::difference_type Diff; in testSet() typedef
49 static_assert((std::is_same<typename It::difference_type, Diff>::value), ""); in testSet()
/external/llvm-project/libcxx/test/std/containers/associative/
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()
/external/llvm-project/llvm/tools/bugpoint/
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()
/external/llvm-project/llvm/lib/Support/
DFileUtilities.cpp148 double Diff; in CompareNumbers() local
150 Diff = std::abs(V1/V2 - 1.0); in CompareNumbers()
152 Diff = std::abs(V2/V1 - 1.0); in CompareNumbers()
154 Diff = 0; // Both zero. in CompareNumbers()
155 if (Diff > RelTolerance) { in CompareNumbers()
159 << "abs. diff = " << std::abs(V1-V2) << " rel.diff = " << Diff << '\n' in CompareNumbers()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Support/
DFileUtilities.cpp147 double Diff; in CompareNumbers() local
149 Diff = std::abs(V1/V2 - 1.0); in CompareNumbers()
151 Diff = std::abs(V2/V1 - 1.0); in CompareNumbers()
153 Diff = 0; // Both zero. in CompareNumbers()
154 if (Diff > RelTolerance) { in CompareNumbers()
158 << "abs. diff = " << std::abs(V1-V2) << " rel.diff = " << Diff << '\n' in CompareNumbers()
/external/llvm-project/llvm/test/Analysis/BasicAA/
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 …]
D2003-09-19-LocalArgument.ll13 %Diff = sub i32 %V1, %V2
14 ret i32 %Diff
/external/gwp_asan/gwp_asan/
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()
/external/llvm-project/compiler-rt/lib/gwp_asan/
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()
/external/llvm-project/llvm/lib/Target/X86/
DX86CmovConversion.cpp473 unsigned Diff[LoopIterations] = {LoopDepth[0].Depth - LoopDepth[0].OptDepth, in checkForProfitableCmovCandidates() local
503 if (Diff[1] < GainCycleThreshold) in checkForProfitableCmovCandidates()
507 if (Diff[1] == Diff[0]) in checkForProfitableCmovCandidates()
508 WorthOptLoop = Diff[0] * 8 >= LoopDepth[0].Depth; in checkForProfitableCmovCandidates()
509 else if (Diff[1] > Diff[0]) in checkForProfitableCmovCandidates()
511 (Diff[1] - Diff[0]) * 2 >= (LoopDepth[1].Depth - LoopDepth[0].Depth) && in checkForProfitableCmovCandidates()
512 (Diff[1] * 8 >= LoopDepth[1].Depth); in checkForProfitableCmovCandidates()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/X86/
DX86CmovConversion.cpp473 unsigned Diff[LoopIterations] = {LoopDepth[0].Depth - LoopDepth[0].OptDepth, in checkForProfitableCmovCandidates() local
503 if (Diff[1] < GainCycleThreshold) in checkForProfitableCmovCandidates()
507 if (Diff[1] == Diff[0]) in checkForProfitableCmovCandidates()
508 WorthOptLoop = Diff[0] * 8 >= LoopDepth[0].Depth; in checkForProfitableCmovCandidates()
509 else if (Diff[1] > Diff[0]) in checkForProfitableCmovCandidates()
511 (Diff[1] - Diff[0]) * 2 >= (LoopDepth[1].Depth - LoopDepth[0].Depth) && in checkForProfitableCmovCandidates()
512 (Diff[1] * 8 >= LoopDepth[1].Depth); in checkForProfitableCmovCandidates()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Scalar/
DConstantHoisting.cpp527 uint64_t Diff = LimVal1 - LimVal2; in calculateOffsetDiff() local
528 return APInt(BW, Diff, true); in calculateOffsetDiff()
589 Optional<APInt> Diff = calculateOffsetDiff( in maximizeConstantsInRange() local
592 if (Diff) { in maximizeConstantsInRange()
594 TTI->getIntImmCodeSizeCost(Opcode, OpndIdx, Diff.getValue(), Ty); in maximizeConstantsInRange()
596 LLVM_DEBUG(dbgs() << "Offset " << Diff.getValue() << " " in maximizeConstantsInRange()
634 APInt Diff = ConstCand->ConstInt->getValue() - ConstInt->getValue(); in findAndMakeBaseConstant() local
635 Constant *Offset = Diff == 0 ? nullptr : ConstantInt::get(Ty, Diff); in findAndMakeBaseConstant()
685 APInt Diff = CC->ConstInt->getValue() - MinValItr->ConstInt->getValue(); in findBaseConstants() local
686 if ((Diff.getBitWidth() <= 64) && in findBaseConstants()
[all …]
/external/llvm-project/llvm/lib/Transforms/Scalar/
DConstantHoisting.cpp531 uint64_t Diff = LimVal1 - LimVal2; in calculateOffsetDiff() local
532 return APInt(BW, Diff, true); in calculateOffsetDiff()
594 Optional<APInt> Diff = calculateOffsetDiff( in maximizeConstantsInRange() local
597 if (Diff) { in maximizeConstantsInRange()
599 TTI->getIntImmCodeSizeCost(Opcode, OpndIdx, Diff.getValue(), Ty); in maximizeConstantsInRange()
601 LLVM_DEBUG(dbgs() << "Offset " << Diff.getValue() << " " in maximizeConstantsInRange()
639 APInt Diff = ConstCand->ConstInt->getValue() - ConstInt->getValue(); in findAndMakeBaseConstant() local
640 Constant *Offset = Diff == 0 ? nullptr : ConstantInt::get(Ty, Diff); in findAndMakeBaseConstant()
690 APInt Diff = CC->ConstInt->getValue() - MinValItr->ConstInt->getValue(); in findBaseConstants() local
691 if ((Diff.getBitWidth() <= 64) && in findBaseConstants()
[all …]

1234567