LLVM
17.0.0git
lib
Support
Hashing.cpp
Go to the documentation of this file.
1
//===-------------- lib/Support/Hashing.cpp -------------------------------===//
2
//
3
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4
// See https://llvm.org/LICENSE.txt for license information.
5
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6
//
7
//===----------------------------------------------------------------------===//
8
//
9
// This file provides implementation bits for the LLVM common hashing
10
// infrastructure. Documentation and most of the other information is in the
11
// header file.
12
//
13
//===----------------------------------------------------------------------===//
14
15
#include "
llvm/ADT/Hashing.h
"
16
17
using namespace
llvm
;
18
19
// Provide a definition and static initializer for the fixed seed. This
20
// initializer should always be zero to ensure its value can never appear to be
21
// non-zero, even during dynamic initialization.
22
uint64_t
llvm::hashing::detail::fixed_seed_override
= 0;
23
24
// Implement the function for forced setting of the fixed seed.
25
// FIXME: Use atomic operations here so that there is no data race.
26
void
llvm::set_fixed_execution_hash_seed
(
uint64_t
fixed_value) {
27
hashing::detail::fixed_seed_override
= fixed_value;
28
}
Hashing.h
uint64_t
llvm::hashing::detail::fixed_seed_override
uint64_t fixed_seed_override
A global, fixed seed-override variable.
Definition:
Hashing.cpp:22
llvm
This is an optimization pass for GlobalISel generic memory operations.
Definition:
AddressRanges.h:18
llvm::set_fixed_execution_hash_seed
void set_fixed_execution_hash_seed(uint64_t fixed_value)
Override the execution seed with a fixed value.
Definition:
Hashing.cpp:26
Generated on Wed May 31 2023 12:22:16 for LLVM by
1.9.6