[all-commits] [llvm/llvm-project] a6b0af: [NFC] Add missing <cmath> and <limits> includes ac...
Kyungtak Woo via All-commits
all-commits at lists.llvm.org
Thu Aug 6 07:30:11 PDT 2026
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: a6b0af7536ef0ae8383ec729c5fbf23c73243776
https://github.com/llvm/llvm-project/commit/a6b0af7536ef0ae8383ec729c5fbf23c73243776
Author: Kyungtak Woo <kevinwkt at google.com>
Date: 2026-08-06 (Thu, 06 Aug 2026)
Changed paths:
M bolt/lib/Passes/SplitFunctions.cpp
M flang/lib/Optimizer/CodeGen/Target.cpp
M lldb/source/Plugins/Language/ObjC/Cocoa.cpp
M llvm/lib/Transforms/Utils/Debugify.cpp
M llvm/lib/Transforms/Utils/LowerMemIntrinsics.cpp
M llvm/tools/llvm-dwarfdump/Statistics.cpp
M llvm/tools/llvm-exegesis/lib/Analysis.cpp
M llvm/tools/llvm-exegesis/lib/ResultAggregator.cpp
M llvm/tools/llvm-exegesis/lib/SchedClassResolution.cpp
M mlir/include/mlir/Dialect/Quant/Utils/UniformSupport.h
M mlir/lib/Dialect/LLVMIR/IR/NVVMDialect.cpp
M mlir/lib/Target/LLVMIR/Dialect/NVVM/NVVMToLLVMIRTranslation.cpp
Log Message:
-----------
[NFC] Add missing <cmath> and <limits> includes across llvm, mlir, lldb, flang, and bolt (#214410)
This is basically a continuation of
https://github.com/llvm/llvm-project/pull/214349...
This change adds missing `#include <cmath>` and `#include <limits>`
headers to several files across `llvm`, `mlir`, `lldb`, `flang`, and
`bolt`.
In commit
https://github.com/llvm/llvm-project/commit/ada3786e91ca2058f3ac8255a024c12ae7d263ee,
`<random>` stopped transitively pulling in the top-level `<cmath>`
header in favor of internal granular `<__math/...>` headers.
Multiple files across the codebase were implicitly relying on transitive
`<cmath>` inclusions from headers like
`llvm/Support/RandomNumberGenerator.h` and other headers that pull in
`<random>`. I'm explicitly adding the missing dependency.
### Affected Files
* **bolt**: `bolt/lib/Passes/SplitFunctions.cpp` (`std::pow`)
* **flang**: `flang/lib/Optimizer/CodeGen/Target.cpp` (`std::ceil`)
* **lldb**: `lldb/source/Plugins/Language/ObjC/Cocoa.cpp` (`std::floor`)
* **llvm**:
* `llvm/lib/Transforms/Utils/Debugify.cpp` (`std::log10`)
* `llvm/lib/Transforms/Utils/LowerMemIntrinsics.cpp` (`std::round`)
* `llvm/tools/llvm-dwarfdump/Statistics.cpp` (`std::round`,
`std::numeric_limits`)
* `llvm/tools/llvm-exegesis/lib/Analysis.cpp` (`std::sqrt`)
* `llvm/tools/llvm-exegesis/lib/ResultAggregator.cpp` (`std::ceil`)
* `llvm/tools/llvm-exegesis/lib/SchedClassResolution.cpp` (`std::round`)
* **mlir**:
* `mlir/include/mlir/Dialect/Quant/Utils/UniformSupport.h`
(`std::round`)
* `mlir/lib/Dialect/LLVMIR/IR/NVVMDialect.cpp` (`std::log2`)
* `mlir/lib/Target/LLVMIR/Dialect/NVVM/NVVMToLLVMIRTranslation.cpp`
(`std::log2`)
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list