Move floating point related entities to namespace level
authorSerge Pavlov <sepavloff@gmail.com>
Thu, 29 Aug 2019 12:29:11 +0000 (19:29 +0700)
committerSerge Pavlov <sepavloff@gmail.com>
Fri, 15 Nov 2019 12:56:33 +0000 (19:56 +0700)
commite6584b2b7b2de06f1e59aac41971760cac1e1b79
tree7506796affad17479abef09b0a271e8547a80aa8
parent0df4a8f72a4fadc1e0978a0aa1786afa34945046
Move floating point related entities to namespace level

Enumerations that describe rounding mode and exception behavior were
defined inside ConstrainedFPIntrinsic. It makes sense to use the same
definitions to represent the same properties in other cases, not only
in constrained intrinsics. It was however inconvenient as required to
include constrained intrinsics definitions even if they were not needed.
Also using long scope prefix reduced readability.

This change moves these definitioins to the namespace llvm::fp.
No functional changes.

Differential Revision: https://reviews.llvm.org/D69552
clang/lib/CodeGen/CodeGenFunction.cpp
llvm/include/llvm/IR/FPEnv.h [new file with mode: 0644]
llvm/include/llvm/IR/IRBuilder.h
llvm/include/llvm/IR/IntrinsicInst.h
llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
llvm/lib/IR/CMakeLists.txt
llvm/lib/IR/FPEnv.cpp [new file with mode: 0644]
llvm/lib/IR/IntrinsicInst.cpp
llvm/unittests/IR/IRBuilderTest.cpp