[NFC] Make FPClassTest a bitmask enumeration
authorSerge Pavlov <sepavloff@gmail.com>
Fri, 24 Feb 2023 08:11:16 +0000 (15:11 +0700)
committerSerge Pavlov <sepavloff@gmail.com>
Fri, 24 Feb 2023 08:12:16 +0000 (15:12 +0700)
commit7f81dd4dd630790070698816f03597279da67d45
tree7d4a168b430b2e8ab6702b5775eafffb8df717ac
parent9683a9c9989a3ab40fde9afdcdc5ba7e203e3728
[NFC] Make FPClassTest a bitmask enumeration

This is recommit of 2e416cdd52, fixed to be accepatble by GCC.
The original commit message is below.

With this change bitwise operations are allowed for FPClassTest
enumeration, it must simplify using this type. Also some functions
changed to get argument of type FPClassTest instead of unsigned.

Differential Revision: https://reviews.llvm.org/D144241
llvm/include/llvm/ADT/BitmaskEnum.h
llvm/include/llvm/ADT/FloatingPointMode.h
llvm/include/llvm/CodeGen/CodeGenCommonISel.h
llvm/include/llvm/CodeGen/TargetLowering.h
llvm/lib/CodeGen/CodeGenCommonISel.cpp
llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
llvm/lib/IR/Verifier.cpp
llvm/unittests/ADT/BitmaskEnumTest.cpp