LLVM: include/llvm/ADT/StableHashing.h Source File (original) (raw)
Go to the documentation of this file.
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
35
40
46
52
53
54
56
57 StringRef S0 = Name.rsplit(".content.").second;
59 return S0;
60
61
62 StringRef P1 = Name.rsplit(".llvm.").first;
63 return P1.rsplit(".__uniq.").first;
64}
65
66
67
68
69
70
74
75}
76
77#endif
static GCRegistry::Add< ErlangGC > A("erlang", "erlang-compatible garbage collector")
static GCRegistry::Add< StatepointGC > D("statepoint-example", "an example strategy for statepoint")
static GCRegistry::Add< OcamlGC > B("ocaml", "ocaml 3.10-compatible GC")
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.
constexpr bool empty() const
empty - Check if the string is empty.
@ C
The default llvm calling convention, compatible with C.
This is an optimization pass for GlobalISel generic memory operations.
LLVM_ABI uint64_t xxh3_64bits(ArrayRef< uint8_t > data)
uint64_t stable_hash
An opaque object representing a stable hash code.
Definition StableHashing.h:28
StringRef get_stable_name(StringRef Name)
Definition StableHashing.h:55
stable_hash stable_hash_name(StringRef Name)
Definition StableHashing.h:71
stable_hash stable_hash_combine(ArrayRef< stable_hash > Buffer)
Definition StableHashing.h:30