Home
last modified time | relevance | path

Searched full:checksum (Results 1 – 25 of 714) sorted by relevance

12345678910>>...29

/llvm-project/lldb/source/Utility/
H A DChecksum.cpp1 //===-- Checksum.cpp ------------------------------------------------------===//
9 #include "lldb/Utility/Checksum.h"
15 Checksum::Checksum(llvm::MD5::MD5Result md5) { SetMD5(md5); } in Checksum() function in Checksum
17 Checksum::Checksum(const Checksum &checksum) { SetMD5(checksum.m_checksum); } in Checksum() function in Checksum
19 Checksum &Checksum::operator=(const Checksum &checksum) { in operator =() argument
20 SetMD5(checksum.m_checksum); in operator =()
24 void Checksum::SetMD5(llvm::MD5::MD5Result md5) { in SetMD5()
29 Checksum::operator bool() const { return !llvm::equal(m_checksum, g_sentinel); } in operator bool()
31 bool Checksum::operator==(const Checksum &checksum) const { in operator ==()
32 return llvm::equal(m_checksum, checksum.m_checksum); in operator ==()
[all …]
/llvm-project/lldb/unittests/Utility/
H A DChecksumTest.cpp11 #include "lldb/Utility/Checksum.h"
25 Checksum checksum1; in TEST()
27 EXPECT_EQ(checksum1, Checksum()); in TEST()
29 Checksum checksum2 = Checksum(hash1); in TEST()
30 EXPECT_EQ(checksum2, Checksum(hash1)); in TEST()
32 Checksum checksum3(checksum2); in TEST()
33 EXPECT_EQ(checksum3, Checksum(hash1)); in TEST()
37 Checksum checksum1; in TEST()
39 EXPECT_EQ(checksum1, Checksum()); in TEST()
41 Checksum checksum2 = checksum1; in TEST()
[all …]
H A DSupportFileTest.cpp12 #include "lldb/Utility/Checksum.h"
28 EXPECT_EQ(support_file.GetChecksum(), Checksum()); in TEST()
33 Checksum checksum(hash1); in TEST() local
34 SupportFile support_file(file_spec, checksum); in TEST()
37 EXPECT_EQ(support_file.GetChecksum(), checksum); in TEST()
48 Checksum checksum_foo_bar(hash1); in TEST()
51 Checksum checksum_bar_baz(hash2); in TEST()
65 // Support file C is has the same path but no checksum. in TEST()
74 // Support file D has a different path and checksum. in TEST()
83 // Support file E has a different path but the same checksum. in TEST()
/llvm-project/clang/test/CodeGen/
H A Ddebug-info-file-checksum.c5 // RUN: %S/Inputs/debug-info-file-checksum.c -o - | FileCheck %s
7 // RUN: -x c %S/Inputs/debug-info-file-checksum.c -o - | FileCheck %s
9 // RUN: -x c %S/Inputs/debug-info-file-checksum.c -o - \
12 // RUN: -x c %S/Inputs/debug-info-file-checksum.c -o - \
14 // RUN: %clang -emit-llvm -S -g -gcodeview -x c %S/Inputs/debug-info-file-checksum.c -o - | FileChe…
15 // RUN: %clang -emit-llvm -S -gdwarf-5 -x c %S/Inputs/debug-info-file-checksum.c -o - | FileCheck %s
17 // Check that "checksum" is created correctly for the compiled file.
19 // CHECK: !DIFile(filename:{{.*}}, directory:{{.*}}, checksumkind: CSK_MD5, checksum: "a3b7d27af071…
20 // SHA1: !DIFile(filename:{{.*}}, directory:{{.*}}, checksumkind: CSK_SHA1, checksum: "6f6eeaba705a…
21 // SHA256: !DIFile(filename:{{.*}}, directory:{{.*}}, checksumkind: CSK_SHA256, checksum: "2d49b538…
[all …]
/llvm-project/lldb/include/lldb/Utility/
H A DChecksum.h1 //===-- Checksum.h ----------------------------------------------*- C++ -*-===//
15 class Checksum {
19 Checksum(llvm::MD5::MD5Result md5 = g_sentinel);
20 Checksum(const Checksum &checksum);
21 Checksum &operator=(const Checksum &checksum);
24 bool operator==(const Checksum &checksum) const;
25 bool operator!=(const Checksum &checksum) const;
H A DSupportFile.h12 #include "lldb/Utility/Checksum.h"
17 /// Wraps a FileSpec and an optional Checksum. The FileSpec represents either a
25 SupportFile(const FileSpec &spec, const Checksum &checksum) in SupportFile() argument
26 : m_file_spec(spec), m_checksum(checksum) {} in SupportFile()
68 /// Return the checksum or all zeros if there is none.
69 const Checksum &GetChecksum() const { return m_checksum; }; in GetChecksum()
76 const Checksum m_checksum;
/llvm-project/clang/lib/Headers/
H A Dcrc32intrin.h16 /// Adds the unsigned integer operand to the CRC-32C checksum of the
24 /// An unsigned integer operand to add to the CRC-32C checksum of operand
27 /// An unsigned 8-bit integer operand used to compute the CRC-32C checksum.
28 /// \returns The result of adding operand \a __C to the CRC-32C checksum of
36 /// Adds the unsigned integer operand to the CRC-32C checksum of the
44 /// An unsigned integer operand to add to the CRC-32C checksum of operand
47 /// An unsigned 16-bit integer operand used to compute the CRC-32C checksum.
48 /// \returns The result of adding operand \a __C to the CRC-32C checksum of
56 /// Adds the first unsigned integer operand to the CRC-32C checksum of
64 /// An unsigned integer operand to add to the CRC-32C checksum of operand
[all …]
/llvm-project/llvm/utils/docker/scripts/llvm_checksum/
H A Dllvm_checksum.py81 A dict mapping from project name to project checksum.
119 logging.debug("Checksum %s for file %s", file_digest, file_path)
122 logging.info("Computing checksum for %s", proj.name)
125 # Compute final checksum.
140 checksums: a dict mapping from project name to project checksum (result of
153 A dict, mapping from project name to project checksum.
160 checksum, proj = line.split()
161 checksums[proj] = checksum
170 name to a project checksum.
172 name to a project checksum.
[all …]
/llvm-project/compiler-rt/lib/scudo/standalone/
H A Dchunk.h15 #include "checksum.h"
21 extern Checksum HashAlgorithm;
34 if (HashAlgorithm == Checksum::HardwareCRC32) { in computeChecksum()
40 u16 Checksum = computeBSDChecksum(static_cast<u16>(Seed), Value); in computeChecksum()
42 Checksum = computeBSDChecksum(Checksum, Array[I]); in computeChecksum()
43 return Checksum; in computeChecksum()
73 uptr Checksum : 16; member
101 // We do not need a cryptographically strong hash for the checksum, but a CRC
107 ZeroChecksumHeader.Checksum = 0; in computeHeaderChecksum()
116 NewUnpackedHeader->Checksum = in storeHeader()
[all …]
/llvm-project/llvm/test/tools/llvm-objcopy/COFF/Inputs/
H A Dx86_64-obj.yaml143 CheckSum: 4237828689
155 CheckSum: 3099354981
167 CheckSum: 0
179 CheckSum: 3415491858
191 CheckSum: 2876129505
203 CheckSum: 2218663305
215 CheckSum: 603506744
227 CheckSum: 0
239 CheckSum: 2036901199
251 CheckSum: 633454091
[all …]
H A Di386-obj.yaml116 CheckSum: 4183332250
128 CheckSum: 3099354981
140 CheckSum: 0
152 CheckSum: 2876129505
164 CheckSum: 2218663305
176 CheckSum: 2577207131
188 CheckSum: 0
200 CheckSum: 2357396799
212 CheckSum: 2067109359
/llvm-project/llvm/test/MC/COFF/
H A Dsection-comdat.s65 # CHECK-NEXT: AUX scnlen 0x0 nreloc 0 nlnno 0 checksum 0x0 assoc 1 comdat 0
67 # CHECK-NEXT: AUX scnlen 0x0 nreloc 0 nlnno 0 checksum 0x0 assoc 2 comdat 0
69 # CHECK-NEXT: AUX scnlen 0x0 nreloc 0 nlnno 0 checksum 0x0 assoc 3 comdat 0
71 # CHECK-NEXT: AUX scnlen 0x4 nreloc 1 nlnno 0 checksum 0x0 assoc 4 comdat 2
74 # CHECK-NEXT: AUX scnlen 0x4 nreloc 1 nlnno 0 checksum 0x0 assoc 5 comdat 2
77 # CHECK-NEXT: AUX scnlen 0x4 nreloc 0 nlnno 0 checksum 0xb8bc6765 assoc 6 comdat 1
80 # CHECK-NEXT: AUX scnlen 0x4 nreloc 0 nlnno 0 checksum 0xb8bc6765 assoc 7 comdat 3
83 # CHECK-NEXT: AUX scnlen 0x4 nreloc 0 nlnno 0 checksum 0xb8bc6765 assoc 8 comdat 4
86 # CHECK-NEXT: AUX scnlen 0x4 nreloc 0 nlnno 0 checksum 0xb8bc6765 assoc 4 comdat 5
88 # CHECK-NEXT: AUX scnlen 0x4 nreloc 0 nlnno 0 checksum 0xb8bc6765 assoc 9 comdat 6
[all …]
/llvm-project/llvm/test/tools/obj2yaml/COFF/
H A Dsection-aux-symbol.yaml118 CheckSum: 0
130 CheckSum: 0
142 CheckSum: 0
154 CheckSum: 0
166 CheckSum: 0
178 CheckSum: 0
190 CheckSum: 0
202 CheckSum: 0
214 CheckSum: 0
226 CheckSum: 0
[all …]
/llvm-project/lld/test/COFF/Inputs/
H A Dpdb_lines_1_relative.yaml104 Checksum: 9A64DD4298487888B1D99F825D520C5E
107 Checksum: A9D05E6DC184DE20A57797E24F8B0E97
289 CheckSum: 3051916600
301 CheckSum: 0
313 CheckSum: 0
325 CheckSum: 264583633
337 CheckSum: 236440503
356 CheckSum: 264583633
369 CheckSum: 149686238
381 CheckSum: 3390249978
[all …]
H A Dgeneric.yaml109 Checksum: 39E9A066A1995A99DD01F5A392F26D7C
190 CheckSum: 594448369
202 CheckSum: 0
214 CheckSum: 0
226 CheckSum: 1192424177
238 CheckSum: 149686238
250 CheckSum: 4196717433
262 CheckSum: 485351071
274 CheckSum: 722740324
H A Dpdb_comdat_bar.yaml89 Checksum: 365279DB4FCBEDD721BBFC3B14A953C2
92 Checksum: D74D834EFAC3AE2B45E606A8320B1D5C
305 CheckSum: 0
317 CheckSum: 0
329 CheckSum: 0
341 CheckSum: 0
359 CheckSum: 1682752513
371 CheckSum: 1746394828
384 CheckSum: 0
415 CheckSum: 264583633
[all …]
H A Dpdb_lines_1.yaml87 Checksum: 4EB19DCD86C3BA2238A255C718572E7B
90 Checksum: 061EB73ABB642532857A4F1D9CBAC323
312 CheckSum: 0
324 CheckSum: 0
336 CheckSum: 0
348 CheckSum: 791570821
360 CheckSum: 1682752513
373 CheckSum: 0
416 CheckSum: 264583633
435 CheckSum: 361370162
[all …]
H A Dpdb_comdat_main.yaml97 Checksum: F969E51BBE373436D81492EB61387F36
100 Checksum: D74D834EFAC3AE2B45E606A8320B1D5C
316 CheckSum: 0
328 CheckSum: 0
340 CheckSum: 0
352 CheckSum: 492663294
364 CheckSum: 1746394828
377 CheckSum: 0
414 CheckSum: 264583633
432 CheckSum: 2942184094
/llvm-project/lld/test/COFF/
H A Dsort-debug.test94 Checksum: ''
207 CheckSum: 0
219 CheckSum: 0
231 CheckSum: 0
243 CheckSum: 0
255 CheckSum: 0
267 CheckSum: 0
279 CheckSum: 0
291 CheckSum: 0
303 CheckSum: 0
[all …]
/llvm-project/llvm/test/Assembler/
H A Ddbg-checksum.ll1 ; Test that DIFile(checksumkind, checksum) can round-trip through bitcode.
14 ; CHECK: !DIFile(filename: "b.h", directory: "/test", checksumkind: CSK_MD5, checksum: "595f44fec1e…
15 !6 = !DIFile(filename: "b.h", directory: "/test", checksumkind: CSK_MD5, checksum: "595f44fec1e92a7…
16 ; CHECK: !DIFile(filename: "c.h", directory: "/test", checksumkind: CSK_SHA1, checksum: "d5db29cd03…
17 !7 = !DIFile(filename: "c.h", directory: "/test", checksumkind: CSK_SHA1, checksum: "d5db29cd03a2ed…
18 ; CHECK: !DIFile(filename: "d.h", directory: "/test", checksumkind: CSK_SHA256, checksum: "e3b0c442…
19 !8 = !DIFile(filename: "d.h", directory: "/test", checksumkind: CSK_SHA256, checksum: "e3b0c44298fc…
/llvm-project/lldb/test/Shell/ObjectFile/COFF/
H A Dbasic.yaml117 CheckSum: 0
129 CheckSum: 0
141 CheckSum: 0
153 CheckSum: 479132390
165 CheckSum: 937319867
177 CheckSum: 1429914004
189 CheckSum: 580727506
201 CheckSum: 2878960311
213 CheckSum: 0
/llvm-project/llvm/lib/DebugInfo/PDB/Native/
H A DNativeSourceFile.cpp19 const codeview::FileChecksumEntry &Checksum) in NativeSourceFile() argument
20 : Session(Session), FileId(FileId), Checksum(Checksum) {} in NativeSourceFile()
28 auto FileName = ST->getStringTable().getString(Checksum.FileNameOffset); in getFileName()
40 return toStringRef(Checksum.Checksum).str(); in getChecksum()
44 return static_cast<PDB_Checksum>(Checksum.Kind); in getChecksumType()
/llvm-project/llvm/test/Bitcode/
H A Dupgrade-dbg-checksum.ll1 ; Test that DIFile(checksumkind, checksum) representation in Bitcode does
14 !4 = !DIFile(filename: "a.c", directory: "/test", checksumkind: CSK_None, checksum: "")
15 ; CHECK: !DIFile(filename: "b.h", directory: "/test", checksumkind: CSK_MD5, checksum: "595f44fec1e…
16 !5 = !DIFile(filename: "b.h", directory: "/test", checksumkind: CSK_MD5, checksum: "595f44fec1e92a7…
17 ; CHECK: !DIFile(filename: "c.h", directory: "/test", checksumkind: CSK_SHA1, checksum: "d5db29cd03…
18 !6 = !DIFile(filename: "c.h", directory: "/test", checksumkind: CSK_SHA1, checksum: "d5db29cd03a2ed…
/llvm-project/llvm/lib/DebugInfo/CodeView/
H A DDebugChecksumsSubsection.cpp29 uint8_t ChecksumSize; // Number of bytes of checksum.
31 // Checksum bytes follow.
44 if (auto EC = Reader.readBytes(Item.Checksum, Header->ChecksumSize)) in operator ()()
74 Entry.Checksum = ArrayRef(Copy, Bytes.size()); in addChecksum()
82 // of this checksum entry in the checksum buffer. in addChecksum()
98 Header.ChecksumSize = FC.Checksum.size(); in commit()
102 if (auto EC = Writer.writeArray(ArrayRef(FC.Checksum))) in commit()
/llvm-project/lldb/test/Shell/ObjectFile/PECOFF/
H A Ddep-modules.yaml78 CheckSum: 373303044
90 CheckSum: 0
102 CheckSum: 0
114 CheckSum: 2657791889
126 CheckSum: 149686238
138 CheckSum: 2420588879
150 CheckSum: 498536548

12345678910>>...29