[Support] Add mathematical constants
authorEvandro Menezes <e.menezes@samsung.com>
Wed, 9 Oct 2019 19:58:01 +0000 (19:58 +0000)
committerEvandro Menezes <e.menezes@samsung.com>
Wed, 9 Oct 2019 19:58:01 +0000 (19:58 +0000)
commite60415a0db2b1696c016ad21821cc2704ee18811
tree05680cdc96773d35d6f85c813ef3ae18195505a1
parent2e6f6b4dadbf2af58646bbddec45bd3233fe3d19
[Support] Add mathematical constants

Add own version of the mathematical constants from the upcoming C++20 `std::numbers`.

Differential revision: https://reviews.llvm.org/D68257

llvm-svn: 374207
llvm/include/llvm/Support/MathExtras.h
llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
llvm/lib/Transforms/Utils/SimplifyLibCalls.cpp