[iwyu] Move <cmath> out of llvm/Support/MathExtras.h
authorserge-sans-paille <sguelton@redhat.com>
Wed, 28 Sep 2022 16:39:23 +0000 (18:39 +0200)
committerserge-sans-paille <sguelton@redhat.com>
Wed, 28 Sep 2022 18:49:01 +0000 (20:49 +0200)
commit16544cbe64b81a50800a88296ef37f4873a37b25
tree2cc9f1009abd93707537d375c23bba672250a3db
parent99c7f83b99bea43235cdaaaf955f2242a25b92bf
[iwyu] Move <cmath> out of llvm/Support/MathExtras.h

Interestingly, MathExtras.h doesn't use <cmath> declaration, so move it out of
that header and include it when needed.

No functional change intended, but there's no longer a transitive include
fromMathExtras.h to cmath.
19 files changed:
llvm/include/llvm/IR/FixedPointBuilder.h
llvm/include/llvm/Support/JSON.h
llvm/include/llvm/Support/MathExtras.h
llvm/lib/Analysis/HeatUtils.cpp
llvm/lib/BinaryFormat/MsgPackWriter.cpp
llvm/lib/CodeGen/GlobalISel/CombinerHelper.cpp
llvm/lib/CodeGen/MachineBasicBlock.cpp
llvm/lib/Support/APFixedPoint.cpp
llvm/lib/Support/NativeFormatting.cpp
llvm/lib/Support/Signals.cpp
llvm/lib/Transforms/Scalar/ConstraintElimination.cpp
llvm/lib/Transforms/Scalar/LowerExpectIntrinsic.cpp
llvm/lib/Transforms/Scalar/LowerMatrixIntrinsics.cpp
llvm/lib/Transforms/Utils/LibCallsShrinkWrap.cpp
llvm/lib/Transforms/Utils/SimplifyLibCalls.cpp
llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
llvm/tools/llvm-profdata/llvm-profdata.cpp
llvm/tools/llvm-xray/xray-account.cpp
llvm/tools/llvm-xray/xray-graph.cpp