common: Decouple LLVM hashing dependencies from common/hashing.h (#7646)

- Move formatted printing to `hashing.cpp` instead of `hashing.h`
- Separate APInt and APFloat hashing specializations into a new
`hashing_llvm.h`
- Update toolchain/base dependencies and include sites that hash LLVM
data types to include `hashing_llvm.h`

Combined, this reduces the transitive includes caused by `hashing.h`.

Assisted-by: Antigravity with Gemini
This commit is contained in:
Chandler Carruth
2026-08-26 00:41:51 +00:00
committed by GitHub
parent c7dcc50768
commit 95fc6fae22
12 changed files with 103 additions and 44 deletions
+1
View File
@@ -13,6 +13,7 @@
#include <type_traits>
#include <utility>
#include "common/hashing_llvm.h"
#include "common/raw_string_ostream.h"
#include "llvm/ADT/Sequence.h"
#include "llvm/ADT/StringExtras.h"