[all-commits] [llvm/llvm-project] e6584b: Move floating point related entities to namespace ...

Serge Pavlov via All-commits all-commits at lists.llvm.org
Fri Nov 15 04:57:20 PST 2019


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: e6584b2b7b2de06f1e59aac41971760cac1e1b79
      https://github.com/llvm/llvm-project/commit/e6584b2b7b2de06f1e59aac41971760cac1e1b79
  Author: Serge Pavlov <sepavloff at gmail.com>
  Date:   2019-11-15 (Fri, 15 Nov 2019)

  Changed paths:
    M clang/lib/CodeGen/CodeGenFunction.cpp
    A llvm/include/llvm/IR/FPEnv.h
    M llvm/include/llvm/IR/IRBuilder.h
    M llvm/include/llvm/IR/IntrinsicInst.h
    M llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
    M llvm/lib/IR/CMakeLists.txt
    A llvm/lib/IR/FPEnv.cpp
    M llvm/lib/IR/IntrinsicInst.cpp
    M llvm/unittests/IR/IRBuilderTest.cpp

  Log Message:
  -----------
  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




More information about the All-commits mailing list