[all-commits] [llvm/llvm-project] e7613c: [NFC] Make FPClassTest a bitmask enumeration

Serge Pavlov via All-commits all-commits at lists.llvm.org
Wed Feb 22 21:39:44 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: e7613c1d9b259bdf2b0b06b4169d9a10dd553406
      https://github.com/llvm/llvm-project/commit/e7613c1d9b259bdf2b0b06b4169d9a10dd553406
  Author: Serge Pavlov <sepavloff at gmail.com>
  Date:   2023-02-23 (Thu, 23 Feb 2023)

  Changed paths:
    M llvm/include/llvm/ADT/BitmaskEnum.h
    M llvm/include/llvm/ADT/FloatingPointMode.h
    M llvm/include/llvm/CodeGen/CodeGenCommonISel.h
    M llvm/include/llvm/CodeGen/TargetLowering.h
    M llvm/lib/CodeGen/CodeGenCommonISel.cpp
    M llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
    M llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
    M llvm/lib/IR/Verifier.cpp

  Log Message:
  -----------
  [NFC] Make FPClassTest a bitmask enumeration

This is recommit of 2e416cdd52, reverted in 8555ab2fcd, because GCC
complains on extra qualification. The macro LLVM_DECLARE_ENUM_AS_BITMASK
does not specify llvm:: anymore, so the macro must occur in the namespace
llvm. Documentation updated accordingly. 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




More information about the All-commits mailing list