LLVM: include/llvm/ADT/StableHashing.h Source File (original) (raw)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18#ifndef LLVM_ADT_STABLEHASHING_H
19#define LLVM_ADT_STABLEHASHING_H
20
23
24namespace llvm {
25
26
27
29
34}
35
39}
40
45}
46
51}
52
53
54
56
57 auto [P0, S0] = Name.rsplit(".content.");
58 if (!S0.empty())
59 return S0;
60
61
62 auto [P1, S1] = Name.rsplit(".llvm.");
63 auto [P2, S2] = P1.rsplit(".__uniq.");
64 return P2;
65}
66
67
68
69
70
71
74}
75
76}
77
78#endif
static GCRegistry::Add< OcamlGC > B("ocaml", "ocaml 3.10-compatible GC")
static GCRegistry::Add< ErlangGC > A("erlang", "erlang-compatible garbage collector")
static GCRegistry::Add< StatepointGC > D("statepoint-example", "an example strategy for statepoint")
ArrayRef - Represent a constant reference to an array (0 or more elements consecutively in memory),...
size_t size() const
size - Get the array size.
StringRef - Represent a constant reference to a string, i.e.
@ C
The default llvm calling convention, compatible with C.
This is an optimization pass for GlobalISel generic memory operations.
uint64_t xxh3_64bits(ArrayRef< uint8_t > data)
StringRef get_stable_name(StringRef Name)
stable_hash stable_hash_name(StringRef Name)
stable_hash stable_hash_combine(ArrayRef< stable_hash > Buffer)
uint64_t stable_hash
An opaque object representing a stable hash code.